|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArchitectSessionContext
The ArchitectSessionContext interface specifies a set of properties and methods for creating new Architect Sessions. Additionally, the session context is the gateway to information that is specific to the current user's environment (as opposed to information that is attached to specific projects, which is stored in the session).
| Field Summary | |
|---|---|
static java.lang.String |
DRIVERS_URL
The URL where there is more information about finding and configuring JDBC drivers. |
| Method Summary | |
|---|---|
ArchitectSession |
createSession()
Creates a new session within this parent context. |
ArchitectSession |
createSession(java.io.InputStream in)
Creates a new session by loading the Architect XML project description from the given input stream. |
java.util.List<ca.sqlpower.sql.SPDataSource> |
getConnections()
|
ca.sqlpower.sql.DataSourceCollection |
getPlDotIni()
Tries to read the plDotIni if it hasn't been done already. |
java.lang.String |
getPlDotIniPath()
|
java.util.prefs.Preferences |
getPrefs()
Returns the user preferences node associated with this context. |
java.util.Collection<ArchitectSession> |
getSessions()
Returns a collection containing all the sessions from this context. |
void |
setPlDotIniPath(java.lang.String plDotIniPath)
Sets the plDotIniPath property, and nulls out the current plDotIni if the given value differs from the existing one. |
| Field Detail |
|---|
static final java.lang.String DRIVERS_URL
| Method Detail |
|---|
ArchitectSession createSession()
throws ArchitectException
ArchitectException
ArchitectSession createSession(java.io.InputStream in)
throws ArchitectException,
java.io.IOException
in - The input stream to read the XML data from
ArchitectException
java.io.IOExceptionjava.util.prefs.Preferences getPrefs()
java.util.Collection<ArchitectSession> getSessions()
java.lang.String getPlDotIniPath()
ca.sqlpower.sql.DataSourceCollection getPlDotIni()
#plDotIni.
java.util.List<ca.sqlpower.sql.SPDataSource> getConnections()
void setPlDotIniPath(java.lang.String plDotIniPath)
#plDotIniPath.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||