com.ibm.dse.tools.workbench.base
Class Workspace
java.lang.Object
|
+--com.ibm.dse.tools.workbench.base.DefaultRepository
|
+--com.ibm.dse.tools.workbench.base.Workspace
- public class Workspace
- extends DefaultRepository
This class implements the user workspace.
The source of information provided by this class isn't shared and only is visible for
a specific user.
Field Summary |
protected boolean |
isShared
This is not a shared repository |
Fields inherited from class com.ibm.dse.tools.workbench.base.DefaultRepository |
classDriver,
cnnPwd,
cnnUser,
connection,
DEFAULT_DRIVER,
modified,
password,
tables,
URLpath,
user,
userName |
Constructor Summary |
protected |
Workspace()
This constructor creates a WorkSpace object |
|
Workspace(java.lang.String URLpath,
java.lang.String user,
java.lang.String password)
This constructor creates a WorkSpace object, with a given url, user and password. |
Method Summary |
void |
connect()
This method creates a connection to the database. |
protected void |
createTables()
This method creates all the defined tables. |
Methods inherited from class com.ibm.dse.tools.workbench.base.DefaultRepository |
add,
commit,
create,
create,
disconnect,
establishSession,
exportToFile,
findUser,
getCnnPassword,
getCnnUser,
getConnection,
getTable,
getTableList,
getURLpath,
getUser,
getUserCode,
getUserName,
importFromFile,
isModified,
markAsModified,
rollback,
setClassDriver,
setConnectData,
setUser |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
isShared
protected boolean isShared
- This is not a shared repository
Workspace
protected Workspace()
throws WorkbenchException
- This constructor creates a WorkSpace object
- Throws:
- WorkbenchException - When an exception is throw creating the object.
Workspace
public Workspace(java.lang.String URLpath,
java.lang.String user,
java.lang.String password)
throws WorkbenchException
- This constructor creates a WorkSpace object, with a given url, user and password.
- Parameters:
URLpath
- java.lang.Stringuser
- java.lang.Stringpassword
- java.lang.String- Throws:
- WorkbenchException - When an exception is throw creating the object.
connect
public void connect()
throws RpConnectionException
- This method creates a connection to the database.
If the driver isn't loaded, then load it.
- Overrides:
- connect in class DefaultRepository
- Throws:
- RpConnectionException - When the connection can't be established.
createTables
protected void createTables()
throws WorkbenchException
- This method creates all the defined tables.
For future extensions, remember create here the new tables.
- Overrides:
- createTables in class DefaultRepository
- Throws:
- WorkbenchException - The exception description.