|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.apelonserver.client.BasicQuery com.apelon.dts.client.common.DTSCommonQuery
public abstract class DTSCommonQuery
This class provides method to get common DTS data.
It provides a method to retreive schema version for a DTS schema
Copyright: Copyright (c) 2004
Company: Apelon, Inc.
Field Summary |
---|
Fields inherited from class com.apelon.apelonserver.client.BasicQuery |
---|
ADMIN, queryHeader |
Constructor Summary | |
---|---|
protected |
DTSCommonQuery()
|
protected |
DTSCommonQuery(boolean isValidating)
|
Method Summary | |
---|---|
void |
cancelRequest(long requestId)
|
void |
checkDTSSchema()
Check that the correct DTS schema is installed. |
static DTSCommonQuery |
createInstance(ServerConnection sc)
Creates an instance of DTSCommonQuery . |
static DTSCommonQuery |
createInstance(ServerConnection sc,
boolean isValidating)
Creates an instance of DTSCommonQuery . |
String |
fetchStatus(long requestId)
|
long |
generateRequestId()
|
String[] |
getAllLicenses(String condition)
Gets all licenses from the server. |
String |
getLicense(String source)
Gets the license for a given source. |
String |
getSchemaVersion(String schemaName)
Returns the version of the given schema name. |
Methods inherited from class com.apelon.apelonserver.client.BasicQuery |
---|
executeQuery, executeQueryNoParse, getServerConnection, initializeDtds, initializeDtds, ping, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DTSCommonQuery()
protected DTSCommonQuery(boolean isValidating)
Method Detail |
---|
public static DTSCommonQuery createInstance(ServerConnection sc) throws IllegalArgumentException
DTSCommonQuery
. Depending on the
type of ServerConnection object passed in the argument, the server may be
local (JDBC), socket, or another implementation. When using a socket
connection, the Apelon DTS server must be configured with the following
query server to support DTSCommonQuery:
com.apelon.dts.server.DTSCommonServer
ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password, host, port, instance); DTSCommonQuery dtsQuery = DTSCommonQuery.createInstance(scJDBC); sc.setQueryServer(Class.forName("com.apelon.dts.server.DTSCommonServer"), DTSHeader.DTSCOMMONSERVER_HEADER);
sc
- the server connection
IllegalArgumentException
- if a null server connection is passedServerConnectionJDBC
,
ServerConnectionSocket
,
ServerConnectionSecureSocket
public static DTSCommonQuery createInstance(ServerConnection sc, boolean isValidating) throws IllegalArgumentException
DTSCommonQuery
. Depending on the
type of ServerConnection object passed in the argument, the server may be
local (JDBC), socket, or another implementation. When using a socket
connection, the Apelon DTS server must be configured with the following
query server to support DTSCommonQuery:
com.apelon.dts.server.DTSCommonServer
ServerConnection sc = new ServerConnectionJDBC(user, password, host, port, instance); DTSCommonQuery dtsQuery = DTSCommonQuery.createInstance(sc); sc.setQueryServer(Class.forName("com.apelon.dts.server.DTSCommonServer"), DTSHeader.DTSCOMMONSERVER_HEADER);
sc
- the server connectionisValidating
- true
if XML needs to be
validated, false
otherwise.
IllegalArgumentException
- if a null server connection is passedServerConnectionJDBC
,
ServerConnectionSocket
,
ServerConnectionSecureSocket
public void checkDTSSchema() throws DTSException, DTSValidationException
DTSException
- The exception if schema is not correct.
DTSValidationException
public String getSchemaVersion(String schemaName) throws DTSException
schemaName
- Schema Name
DTSException
public long generateRequestId() throws DTSException
DTSException
public void cancelRequest(long requestId) throws DTSException
DTSException
public String fetchStatus(long requestId) throws DTSException
DTSException
public String getLicense(String source) throws ApelonException, DTSException
getLicense
in interface com.apelon.common.license.client.LicenseQuery
source
- the Namespace ID for which the license is to be retrieved
DTSException
- error
ApelonException
- errorpublic String[] getAllLicenses(String condition) throws ApelonException, DTSException
getAllLicenses
in interface com.apelon.common.license.client.LicenseQuery
condition
- condition - if none exists, pass empty
DTSException
- error
ApelonException
- error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |