com.ibm.gcs.db.component
Class DefaultDB2AnnotationFactory
java.lang.Object
|
+--com.ibm.gcs.db.component.DefaultDB2AnnotationFactory
- All Implemented Interfaces:
- DB2AnnotationFactory
- public class DefaultDB2AnnotationFactory
- extends java.lang.Object
- implements DB2AnnotationFactory
DefaultDB2AnnotationFactory provides methods to produce DB2Annotation
objects from data retrieved from the
database.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
UNKNOWN
public static final int UNKNOWN
DESCRIPTION_ANNOTATION
public static final int DESCRIPTION_ANNOTATION
DICTIONARY_ANNOTATION
public static final int DICTIONARY_ANNOTATION
DefaultDB2AnnotationFactory
public DefaultDB2AnnotationFactory()
- DefaultConstructor
createDB2Annotation
public DB2Annotation createDB2Annotation(java.util.Hashtable h,
int type)
throws java.lang.Exception
- Constructs the appropriate DB2Annotation object from
the given hashtable of data from a loaded db2 row.
Does not add the annotator or annotatee
- Specified by:
createDB2Annotation
in interface DB2AnnotationFactory
- Parameters:
h
- The hastable containing the db2 data for the
given annotation.type
- The annotation type to construct- Returns:
- DB2Annotation The proper DB2Annotation
- Throws:
java.lang.Exception
- if construction fails
createDB2Annotation
public DB2Annotation createDB2Annotation(com.ibm.gcs.urlpool.Annotation ann)
- Constructs the appropriate DB2Annotation object from
the given annotation. Does not add annotator or annotatee.
- Specified by:
createDB2Annotation
in interface DB2AnnotationFactory
- Parameters:
ann
- Annotation- Returns:
- DB2Annotation The proper DB2Annotation
- Throws:
java.lang.Exception
- if construction fails
getAnnotationType
public int getAnnotationType(DB2Annotation ann)
- Processes the data to determine the annotation type
- Specified by:
getAnnotationType
in interface DB2AnnotationFactory
- Parameters:
ann
- DB2Annotation.- Returns:
- int Type as specified by contants in this class
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.