com.ibm.gcs.db.component
Class DB2DictionaryAnnotation
java.lang.Object
|
+--com.ibm.gcs.urlpool.Annotation
|
+--com.ibm.gcs.urlpool.DictionaryAnnotation
|
+--com.ibm.gcs.db.component.DB2DictionaryAnnotation
- All Implemented Interfaces:
- DB2Annotation
- public class DB2DictionaryAnnotation
- extends com.ibm.gcs.urlpool.DictionaryAnnotation
- implements DB2Annotation
The DB2DictionaryAnnotation class extends DictrionaryAnnotation
by implementing methods that
enable it to be written to and read from a database table.
Method Summary |
static DB2DictionaryAnnotation |
createAnnotation(com.ibm.gcs.urlpool.DictionaryAnnotation ann)
Constructs a DB2DictionaryAnnotation from an DictionaryAnnotation
object. |
static DB2DictionaryAnnotation |
createAnnotation(java.util.Hashtable h)
|
int |
getPersistenceState()
The persistence state may be NOT_LOADED, EXISTS, or
NOT_EXISTS. |
java.lang.String |
getSQLKeys()
Returns a comma separated list of the sql keys. |
java.lang.String |
getSQLValueForKey(java.lang.String key)
Returns the SQL value for the given key |
java.lang.String |
getSQLValues()
Returns a comma separated list of the sql values
matching the SQL keys. |
static void |
main(java.lang.String[] args)
|
static void |
printUsage()
Outputs the string specifying how to use this function. |
void |
setPersistenceState(int state)
The persistence state may be NOT_LOADED, EXISTS, or
NOT_EXISTS. |
java.lang.String |
toString()
Print annotator, annotatee, text. |
Methods inherited from class com.ibm.gcs.urlpool.DictionaryAnnotation |
getDictionary, getText, put |
Methods inherited from class com.ibm.gcs.urlpool.Annotation |
getAnnotatee, getAnnotator, setAnnotatee, setAnnotator |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
debug
public static boolean debug
OTHER_KEY
public static final java.lang.String OTHER_KEY
getSQLKeys
public java.lang.String getSQLKeys()
- Returns a comma separated list of the sql keys.
Example: href,surroundingtext, anchor
- Specified by:
getSQLKeys
in interface DB2Annotation
- Returns:
- String a comma separated list of the sql keys
getSQLValues
public java.lang.String getSQLValues()
- Returns a comma separated list of the sql values
matching the SQL keys.
Example: 'http://www.foobar.com/',
'The surrounding text', 'foobar'
- Specified by:
getSQLValues
in interface DB2Annotation
- Returns:
- String a comma separated list of the sql values
getSQLValueForKey
public java.lang.String getSQLValueForKey(java.lang.String key)
- Returns the SQL value for the given key
- Specified by:
getSQLValueForKey
in interface DB2Annotation
- Returns:
- String SQL-formatted string for the given key.
getPersistenceState
public int getPersistenceState()
- Description copied from interface:
DB2Annotation
- The persistence state may be NOT_LOADED, EXISTS, or
NOT_EXISTS.
- Specified by:
getPersistenceState
in interface DB2Annotation
- Returns:
- int The state of this annotation object
setPersistenceState
public void setPersistenceState(int state)
- Description copied from interface:
DB2Annotation
- The persistence state may be NOT_LOADED, EXISTS, or
NOT_EXISTS.
- Specified by:
setPersistenceState
in interface DB2Annotation
- Parameters:
int
- The state of this annotation object
createAnnotation
public static DB2DictionaryAnnotation createAnnotation(com.ibm.gcs.urlpool.DictionaryAnnotation ann)
throws java.lang.Exception
- Constructs a DB2DictionaryAnnotation from an DictionaryAnnotation
object.
- Parameters:
DictionaryAnnotation
- - Returns:
- DB2DictionaryAnnotation
createAnnotation
public static DB2DictionaryAnnotation createAnnotation(java.util.Hashtable h)
throws java.lang.Exception
toString
public java.lang.String toString()
- Print annotator, annotatee, text.
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)
printUsage
public static void printUsage()
- Outputs the string specifying how to use this function.
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.