org.nci.dts.client
Class DbInfoServer

java.lang.Object
  |
  +--com.apelon.apelonserver.client.BasicQuery
        |
        +--org.nci.dts.client.DbInfoServer

public abstract class DbInfoServer
extends com.apelon.apelonserver.client.BasicQuery

A DbInfoServer provides common methods for getting database information.

Copyright: Copyright (c) 2002

Company: Apelon Inc.

Version:
DTS 3.0
Author:
Apelon Inc.

Constructor Summary
DbInfoServer()
           
 
Method Summary
static DbInfoServer createInstance(com.apelon.apelonserver.client.ServerConnection sc)
          Creates an instance of DbInfoServer.
static DbInfoServer createInstance(com.apelon.apelonserver.client.ServerConnection sc, boolean isValidating)
          Creates an instance of DbInfoServer.
 DbInfo getDbInfo(java.lang.String dbname)
          Retrieves database infomation for the specified database name.
 DbInfo[] getDbInfos()
          Retrieves all database infomation.
 
Methods inherited from class com.apelon.apelonserver.client.BasicQuery
ping, setVersion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInfoServer

public DbInfoServer()
Method Detail

createInstance

public static DbInfoServer createInstance(com.apelon.apelonserver.client.ServerConnection sc)
                                   throws com.apelon.dts.client.DTSException
Creates an instance of DbInfoServer.
Depending on the type of ServerConnection object passed in the argument, the server may be local (JDBC), socket, or another implementation.

Parameters:
sc - server connectin type
Returns:
the created DbInfoServer
Throws:
com.apelon.dts.client.DTSException - error
Since:
DTS 2.4
See Also:
ServerConnectionJDBC, ServerConnectionSocket

createInstance

public static DbInfoServer createInstance(com.apelon.apelonserver.client.ServerConnection sc,
                                          boolean isValidating)
                                   throws com.apelon.dts.client.DTSException
Creates an instance of DbInfoServer.
Depending on the type of ServerConnection object passed in the argument, the server may be local (JDBC), socket, or another implementation.
The second argument is a boolean value for xml validation.

Parameters:
sc - server connectin type
isValidating - a boolean value. It is true if xml needs to be validated, otherwise it is false.
Returns:
the created DbInfoServer
Throws:
com.apelon.dts.client.DTSException - error
Since:
DTS 2.4
See Also:
ServerConnectionJDBC, ServerConnectionSocket

getDbInfo

public DbInfo getDbInfo(java.lang.String dbname)
                 throws com.apelon.dts.client.DTSException
Retrieves database infomation for the specified database name.

Parameters:
dbname - - the database name.
Returns:
DbInfo - A DbInfo object for the specified database name.
Throws:
com.apelon.dts.client.DTSException - error
Since:
DTS 2.4

getDbInfos

public DbInfo[] getDbInfos()
                    throws com.apelon.dts.client.DTSException
Retrieves all database infomation.

Returns:
DbInfo[] - An array of DbInfo object.
Throws:
com.apelon.dts.client.DTSException - error
Since:
DTS 2.4