|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.dts.client.common.CodeAndIDGenerator
public abstract class CodeAndIDGenerator
Base class for Apelon DTS Server code and ID generators.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Field Summary | |
|---|---|
static String |
CODE_AND_ID_GENERATOR_FILE_PATH
Used to find location of code and ID generators in local file system. |
static String |
CODE_AND_ID_GENERATOR_PACKAGE_PATH
Used to identify the standard, required package location of all CodeAndIdGenerator class files. |
static String |
RELATIVE_CODE_AND_ID_GENERATOR_FILE_PATH
Use to indicate relative location of code and ID generator class files in file system. |
| Constructor Summary | |
|---|---|
CodeAndIDGenerator(ServerConnection sc)
Constructs CodeAndIDGenerator. |
|
| Method Summary | |
|---|---|
abstract String |
getCode(DTSObject conceptOrTerm)
Implement to create a code for a new concept or term. |
static String |
getCodeAndIDGeneratorFilePath()
Returns the path to the code and ID generators on this machine. |
static Class |
getDefaultImplClass()
Get default code and ID generator class. |
abstract String |
getDescription()
Implement to describe how a code and ID is assigned to a concept by this class. |
abstract int |
getId(DTSObject conceptOrTerm)
Implement to create an ID for a new concept or term. |
protected ServerConnection |
getServerConnection()
Gets server connection for the code and ID generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String CODE_AND_ID_GENERATOR_FILE_PATH
public static final String RELATIVE_CODE_AND_ID_GENERATOR_FILE_PATH
public static final String CODE_AND_ID_GENERATOR_PACKAGE_PATH
| Constructor Detail |
|---|
public CodeAndIDGenerator(ServerConnection sc)
sc - ServerConnection which may be used to
instantiate any of the DTS query classes| Method Detail |
|---|
protected ServerConnection getServerConnection()
public abstract String getCode(DTSObject conceptOrTerm)
conceptOrTerm - new concept or term, will be updated with
created code
public abstract int getId(DTSObject conceptOrTerm)
conceptOrTerm - new concept or term, will be updated with
created ID
public abstract String getDescription()
public static String getCodeAndIDGeneratorFilePath()
public static Class getDefaultImplClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||