|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.db2.wrapper.SqlqgBaseClass
com.ibm.db2.wrapper.Server
The Server class is the abstract base class for all server functionality. The Server class maps to a specific data source that is supported by the wrapper. The class maintains the following information:
ServerInfo
object that contains information for this data source server.
This information is stored in the federated server's system catalog after you issue the
DDL statements.
FencedGenericServer
class
and the UnfencedGenericServer
class.
Method Summary | |
protected Nickname |
createNickname(java.lang.String schemaName,
java.lang.String nickname)
Instantiate an appropriate Nickname subclass for this data source server. |
protected RemoteUser |
createRemoteUser(java.lang.String userName)
Instantiate an appropriate RemoteUser subclass for this data source server. |
protected void |
destroy()
Destroys this server object and frees any resources associated with it. |
RemoteUser |
findRemoteUser(java.lang.String userName)
Search for a remote user mapping with the local name that is specified in the federated server's system catalog. |
ServerInfo |
getInfo()
Retrieve the data source server information that is stored in the federated server's system catalog as a result of running DDL statements. |
java.lang.String |
getName()
Retrieve the name of the data source server. |
java.lang.String |
getType()
Retrieve the data source server type. |
java.lang.String |
getVersion()
Retrieve the version of the data source server. |
Wrapper |
getWrapper()
Retrieve the wrapper object that this data source server belongs to. |
protected void |
initializeMyServer(ServerInfo serverInfo)
Initialize the data source server with valid federated server's system catalog information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected Nickname createNickname(java.lang.String schemaName, java.lang.String nickname) throws java.lang.Exception
schemaName
- The local schema name of the nickname
to be created.nickname
- The local name of the nickname to be created.
java.lang.Exception
- if a new Nickname instance cannot be created.Nickname
protected RemoteUser createRemoteUser(java.lang.String userName) throws java.lang.Exception
userName
- The name of the remote user mapping to be created as
specified in the CREATE USER MAPPING statement.
java.lang.Exception
- if a new RemoteUser instance cannot be created.RemoteUser
protected void destroy() throws java.lang.Exception
UnfencedGenericServer
and FencedGenericServer
.
java.lang.Exception
- if the processing fails.public final RemoteUser findRemoteUser(java.lang.String userName)
userName
- The name of the remote user mapping.
RemoteUser
public final ServerInfo getInfo()
ServerInfo
public final java.lang.String getName()
public java.lang.String getType()
public java.lang.String getVersion()
public final Wrapper getWrapper()
Wrapper
protected void initializeMyServer(ServerInfo serverInfo) throws java.lang.Exception
serverInfo
- The ServerInfo instance that contains the data source server information.
java.lang.Exception
- if the initialization process fails.WrapperInfo
|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.