Enterprise Information Portal APIs

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.


Field Summary
static boolean debug
           
static int DESCRIPTION_ANNOTATION
           
static int DICTIONARY_ANNOTATION
           
static int UNKNOWN
           
 
Fields inherited from interface com.ibm.gcs.db.component.DB2AnnotationFactory
copyright
 
Constructor Summary
DefaultDB2AnnotationFactory()
          DefaultConstructor
 
Method Summary
 DB2Annotation createDB2Annotation(com.ibm.gcs.urlpool.Annotation ann)
          Constructs the appropriate DB2Annotation object from the given annotation.
 DB2Annotation createDB2Annotation(java.util.Hashtable h, int type)
          Constructs the appropriate DB2Annotation object from the given hashtable of data from a loaded db2 row.
 int getAnnotationType(DB2Annotation ann)
          Processes the data to determine the annotation type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultDB2AnnotationFactory

public DefaultDB2AnnotationFactory()
DefaultConstructor
Method Detail

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

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.