|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.WabitSessionImpl
public class WabitSessionImpl
| Constructor Summary | |
|---|---|
WabitSessionImpl(WabitSessionContext context)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
addSessionLifecycleListener(ca.sqlpower.swingui.event.SessionLifecycleListener<WabitSession> l)
|
boolean |
close()
Ends this session, disposing its frame and releasing any system resources that were obtained explicitly by this session. |
ca.sqlpower.util.UserPrompter |
createUserPrompter(java.lang.String question,
ca.sqlpower.util.UserPrompterFactory.UserPromptType responseType,
ca.sqlpower.util.UserPrompter.UserPromptOptions optionType,
ca.sqlpower.util.UserPrompter.UserPromptResponse defaultResponseType,
java.lang.Object defaultResponse,
java.lang.String... buttonNames)
|
WabitSessionContext |
getContext()
Returns the context this session belongs to. |
ca.sqlpower.sql.DataSourceCollection<ca.sqlpower.sql.SPDataSource> |
getDataSources()
Returns a collection of all the data sources that are available to this session. |
WabitWorkspace |
getSystemWorkspace()
This method might return a WabitWorkspace, the system one, located on the Wabit server, if the current session is backed by a remote server session. |
WabitWorkspace |
getWorkspace()
Returns the workspace associated with this session. |
boolean |
isEnterpriseServerSession()
Returns true if the current session is in fact a remote session with the wabit enterprise server. |
boolean |
isForegroundThread()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
removeSessionLifecycleListener(ca.sqlpower.swingui.event.SessionLifecycleListener<WabitSession> l)
|
void |
runInBackground(java.lang.Runnable runner)
|
void |
runInForeground(java.lang.Runnable runner)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WabitSessionImpl(WabitSessionContext context)
| Method Detail |
|---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in interface WabitSessionpublic void addSessionLifecycleListener(ca.sqlpower.swingui.event.SessionLifecycleListener<WabitSession> l)
addSessionLifecycleListener in interface WabitSessionpublic boolean close()
WabitSession
close in interface WabitSession
public ca.sqlpower.util.UserPrompter createUserPrompter(java.lang.String question,
ca.sqlpower.util.UserPrompterFactory.UserPromptType responseType,
ca.sqlpower.util.UserPrompter.UserPromptOptions optionType,
ca.sqlpower.util.UserPrompter.UserPromptResponse defaultResponseType,
java.lang.Object defaultResponse,
java.lang.String... buttonNames)
public WabitSessionContext getContext()
WabitSession
getContext in interface WabitSessionpublic WabitWorkspace getWorkspace()
WabitSession
getWorkspace in interface ca.sqlpower.util.SPSessiongetWorkspace in interface WabitSessionpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in interface WabitSessionpublic void removeSessionLifecycleListener(ca.sqlpower.swingui.event.SessionLifecycleListener<WabitSession> l)
removeSessionLifecycleListener in interface WabitSessionpublic ca.sqlpower.sql.DataSourceCollection<ca.sqlpower.sql.SPDataSource> getDataSources()
WabitSession
getDataSources in interface WabitSessionpublic void runInBackground(java.lang.Runnable runner)
runInBackground in interface ca.sqlpower.util.SPSessionpublic void runInForeground(java.lang.Runnable runner)
runInForeground in interface ca.sqlpower.util.SPSessionpublic boolean isForegroundThread()
isForegroundThread in interface ca.sqlpower.util.SPSessionpublic boolean isEnterpriseServerSession()
WabitSession
isEnterpriseServerSession in interface WabitSessionpublic WabitWorkspace getSystemWorkspace()
WabitSession
getSystemWorkspace in interface WabitSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||