|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.ArchitectSessionContextImpl
public class ArchitectSessionContextImpl
| Field Summary |
|---|
| Fields inherited from interface ca.sqlpower.architect.ArchitectSessionContext |
|---|
DRIVERS_URL |
| Constructor Summary | |
|---|---|
ArchitectSessionContextImpl()
Creates a new session context. |
|
ArchitectSessionContextImpl(java.lang.String PlDotIniPath)
Similar to the default constructor, but we can specify a pl.ini path ourselves. |
|
| 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()
See plDotIniPath. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArchitectSessionContextImpl()
throws ArchitectException
Important note: This constructor must be called on the Swing Event Dispatch Thread. See SwingUtilities.invokeLater() for a way of ensuring this method is called on the proper thread.
ArchitectException
public ArchitectSessionContextImpl(java.lang.String PlDotIniPath)
throws ArchitectException
ArchitectException| Method Detail |
|---|
public ArchitectSession createSession()
throws ArchitectException
ArchitectSessionContext
createSession in interface ArchitectSessionContextArchitectException
public ArchitectSession createSession(java.io.InputStream in)
throws ArchitectException,
java.io.IOException
ArchitectSessionContext
createSession in interface ArchitectSessionContextin - The input stream to read the XML data from
ArchitectException
java.io.IOExceptionpublic java.util.prefs.Preferences getPrefs()
ArchitectSessionContext
getPrefs in interface ArchitectSessionContextpublic java.util.Collection<ArchitectSession> getSessions()
ArchitectSessionContext
getSessions in interface ArchitectSessionContextpublic ca.sqlpower.sql.DataSourceCollection getPlDotIni()
plDotIni.
getPlDotIni in interface ArchitectSessionContextpublic java.lang.String getPlDotIniPath()
plDotIniPath.
getPlDotIniPath in interface ArchitectSessionContextpublic void setPlDotIniPath(java.lang.String plDotIniPath)
plDotIniPath.
setPlDotIniPath in interface ArchitectSessionContextpublic java.util.List<ca.sqlpower.sql.SPDataSource> getConnections()
getConnections in interface ArchitectSessionContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||