|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.AbstractSystem
com.ibm.etools.iseries.core.ISeriesSystemToolbox
This wrappers an AS/400 Toolbox for Java AS400 object used for a live connection to an iSeries. Use this when connecting via the toolbox.
Field Summary | |
---|---|
static String |
Copyright
|
protected String |
lastVRM
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.AbstractSystem |
---|
connectResult, copyright, launchResult, shell |
Fields inherited from interface com.ibm.etools.systems.subsystems.ISystem |
---|
copyright |
Fields inherited from interface com.ibm.etools.systems.core.ISystemUserIdConstants |
---|
USERID_LOCATION_CONNECTION, USERID_LOCATION_DEFAULT_OVERALL, USERID_LOCATION_DEFAULT_SYSTEMTYPE, USERID_LOCATION_NOTSET, USERID_LOCATION_SUBSYSTEM |
Constructor Summary | |
---|---|
ISeriesSystemToolbox()
Constructor when we don't have a subsystem yet. |
|
ISeriesSystemToolbox(com.ibm.etools.systems.subsystems.SubSystem subsystem)
Default Constructor. |
Method Summary | |
---|---|
void |
connect(IProgressMonitor monitor)
Actually connect to remote system |
void |
disconnect()
Actually disconnect from remote system |
void |
disconnectJDBC()
Close all open jdbc connections. |
protected boolean |
forcePasswordToUpperCase()
|
com.ibm.as400.access.AS400 |
getAS400Object()
Return our AS400 toolbox object. |
int |
getCcsid()
|
com.ibm.etools.systems.dstore.core.model.DataStore |
getDataStoreObject()
Return the DataStore object used in communications layer. |
Connection |
getJDBCConnection(String properties,
boolean forceConnect)
Get a JDBC Connection object to DB2/400, pre-connected, for this connection. |
int |
getPort()
Override getPort to return 0 if using toolbox, as we want to only use default. |
String |
getVersionReleaseModification()
Return the version, release, modification of the remote system, if connected, if applicable and if available. |
int |
getVRM()
Get Version, Release, Modification level of remote system, as an integer value usable in algorithms. |
boolean |
isConnected()
Return true if currently connected. |
void |
reset()
The following is called whenever a system is redefined or disconnected. |
void |
setCcsid(int newCcsid)
|
void |
setPassword(String matchingUserId,
String pwd)
Set the password in our AS400 Toolbox object. |
void |
showWarningMsgs(Shell shell,
Vector warnings)
Show any warning messages returned by host api calls. |
boolean |
usingDataStore()
Return true if using datastore technology versus direct as/400 toolbox. |
Methods inherited from class com.ibm.etools.systems.subsystems.impl.AbstractSystem |
---|
addCommunicationsListener, clearCommunicationListeners, clearPasswordCache, clearPasswordCache, clearPasswordForOtherSystemsInConnection, clearUserIdCache, enableServerLaunchType, fireCommunicationsEvent, getCommunicationListenerCount, getConnectPort, getHomeDirectory, getHostName, getLocalUserId, getPasswordInformation, getPasswordPromptDialog, getPasswordValidator, getPrimarySubSystem, getRemoteServerLauncher, getSignonValidator, getSubSystem, getSystemType, getTempDirectory, getUserId, getUserIdValidator, inheritConnectionUserPassword, isEnabledServerLaunchType, isPasswordCached, isPasswordCached, isSuppressSignonPrompt, notifyConnection, notifyDisconnection, notifyError, promptForPassword, removeCommunicationsListener, setPassword, setPasswordInformation, setSubSystem, setSuppressSignonPrompt, shareUserPasswordWithConnection, updatePasswordForOtherSystemsInConnection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.subsystems.ISystem |
---|
addCommunicationsListener, clearPasswordCache, clearPasswordCache, clearUserIdCache, getHomeDirectory, getHostName, getSubSystem, getSystemType, getTempDirectory, getUserId, inheritConnectionUserPassword, isPasswordCached, isPasswordCached, isSuppressSignonPrompt, notifyConnection, notifyDisconnection, notifyError, promptForPassword, removeCommunicationsListener, setPassword, setSubSystem, setSuppressSignonPrompt, shareUserPasswordWithConnection |
Field Detail |
public static final String Copyright
protected String lastVRM
Constructor Detail |
public ISeriesSystemToolbox()
public ISeriesSystemToolbox(com.ibm.etools.systems.subsystems.SubSystem subsystem)
Method Detail |
public boolean usingDataStore()
public int getPort()
getPort
in interface com.ibm.etools.systems.subsystems.ISystem
public com.ibm.as400.access.AS400 getAS400Object()
getAS400Object
in interface IISeriesSystem
public com.ibm.etools.systems.dstore.core.model.DataStore getDataStoreObject()
getDataStoreObject
in interface IISeriesSystem
public int getCcsid()
public int getVRM() throws Exception
Exception
public String getVersionReleaseModification()
Up to each implementer to decide if this will be cached.
getVersionReleaseModification
in interface com.ibm.etools.systems.subsystems.ISystem
public void setCcsid(int newCcsid) throws Exception
Exception
public void setPassword(String matchingUserId, String pwd)
setPassword
in interface com.ibm.etools.systems.subsystems.ISystem
public Connection getJDBCConnection(String properties, boolean forceConnect) throws SQLException
Important notes:
properties
- A list of properties to append to the url, as per the
JDBC/400 getConnection(...) support. This string is appended to the
string "jdbc:as400://" + getHostName(), and so must start with a semicolon.
If null is passed, the following is used: ";prompt=false;big decimal=false"forceConnect
- whether to prompt user to signon if not already.
SQLException
public void disconnectJDBC()
public void connect(IProgressMonitor monitor) throws Exception
connect
in interface com.ibm.etools.systems.subsystems.ISystem
Exception
public void disconnect() throws Exception
disconnect
in interface com.ibm.etools.systems.subsystems.ISystem
Exception
public boolean isConnected()
isConnected
in interface com.ibm.etools.systems.subsystems.ISystem
public void reset()
reset
in interface com.ibm.etools.systems.subsystems.ISystem
public void showWarningMsgs(Shell shell, Vector warnings)
showWarningMsgs
in interface IISeriesSystem
shell
- Parent UIwarnings
- Vector of String or toString()'able messages.protected boolean forcePasswordToUpperCase()
AbstractSystem.forcePasswordToUpperCase()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |