com.apelon.dts.client
Class DTSLicenseQuery

java.lang.Object
  extended by com.apelon.apelonserver.client.BasicQuery
      extended by com.apelon.dts.client.DTSLicenseQuery
All Implemented Interfaces:
com.apelon.common.license.client.LicenseQuery

Deprecated. Use DTSCommonQuery instead

public abstract class DTSLicenseQuery
extends BasicQuery
implements com.apelon.common.license.client.LicenseQuery

This is the DTSLicenseQuery class for retreiving license information from the DTS Server. It obtains the license(s) for a given source/namespace.

Copyright (c) 2003

Company: Apelon, Inc.

Version:
DTS 3.0.0
Author:
Apelon, Inc.

Field Summary
 
Fields inherited from class com.apelon.apelonserver.client.BasicQuery
ADMIN, queryHeader
 
Constructor Summary
DTSLicenseQuery()
          Deprecated.  
 
Method Summary
static DTSLicenseQuery createInstance(ServerConnection sc)
          Deprecated. Creates an instance of DTSLicenseQuery.
 String[] getAllLicenses(String condition)
          Deprecated. Use DTSCommonQuery.getAllLicenses(String) instead
 String getLicense(String source)
          Deprecated. Use DTSCommonQuery.getLicense(String) instead
 
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

DTSLicenseQuery

public DTSLicenseQuery()
Deprecated. 
Method Detail

createInstance

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

Parameters:
sc - the type of server connection
Returns:
com.apelon.dts.client.DTSLicenseQuery - the created DTSLicenseQuery
Throws:
DTSException - error
Since:
DTS 2.3.0
See Also:
ServerConnectionJDBC, ServerConnectionSocket

getLicense

public String getLicense(String source)
                  throws ApelonException,
                         DTSException
Deprecated. Use DTSCommonQuery.getLicense(String) instead

Gets the license for a given source.

Specified by:
getLicense in interface com.apelon.common.license.client.LicenseQuery
Parameters:
source - the source for which the license is to be retreived
Returns:
String the string describing the license text
Throws:
DTSException - error
ApelonException - error
Since:
DTS 2.3.0

getAllLicenses

public String[] getAllLicenses(String condition)
                        throws ApelonException,
                               DTSException
Deprecated. Use DTSCommonQuery.getAllLicenses(String) instead

Gets all licenses from the server. If no condition exists, then pass in a empty String.

Specified by:
getAllLicenses in interface com.apelon.common.license.client.LicenseQuery
Parameters:
condition - condition - if none exists, pass empty
Returns:
String [] an array of Strings describing the licenses
Throws:
DTSException - error
ApelonException - error
Since:
DTS 2.3.0


Copyright © 2011. All Rights Reserved.