Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKColumnDefDB2

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.dkAbstractAttrDef
        |
        +--com.ibm.mm.sdk.common.DKColumnDefDB2
All Implemented Interfaces:
dkAttrDef, DKConstant, DKConstantDB2, DKMessageId, DKMessageIdDB2, java.io.Serializable

public class DKColumnDefDB2
extends dkAbstractAttrDef
implements DKConstantDB2, DKMessageIdDB2, java.io.Serializable

This class defines methods to access attribute information as well as to create and delete attributes

See Also:
Serialized Form

Fields inherited from interface com.ibm.mm.sdk.common.DKConstantDB2
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageIdDB2
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId
    For details, see the class or interface
 
Constructor Summary
DKColumnDefDB2()
          Constructs the attribute def for DB2
DKColumnDefDB2(dkDatastore ds)
          Constructs the attribute def for DB2
 
Method Summary
 void add()
          Adds this attribute to become a persistent part of the entity meta-data it belongs to.
 void del()
          Removes this attribute from the persistent part of the entity meta-data it belongs to.
 boolean isForeignKey()
          Check to see if this column is a foreign key
 boolean isPrimaryKey()
          Check to see if this column is a primary key
 
Methods inherited from class com.ibm.mm.sdk.common.dkAbstractAttrDef
datastoreName, datastoreType, getDatastore, getDescription, getEntity, getEntityName, getMax, getMin, getName, getPrecision, getQualifiedName, getScale, getSize, getStringType, getType, isNullable, isQueryable, isTextSearchable, isUpdatable, parsedQualifiedName, setDatastore, setDescription, setEntity, setEntityName, setMax, setMin, setName, setNullable, setPrecision, setQualifiedName, setQueryable, setScale, setSize, setStringType, setTextSearchable, setType, setUpdatable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DKColumnDefDB2

public DKColumnDefDB2()
Constructs the attribute def for DB2

DKColumnDefDB2

public DKColumnDefDB2(dkDatastore ds)
Constructs the attribute def for DB2
Parameters:
ds - datastore
Method Detail

add

public void add()
         throws DKException,
                java.lang.Exception
Adds this attribute to become a persistent part of the entity meta-data it belongs to.
Overrides:
add in class dkAbstractAttrDef

del

public void del()
         throws DKException,
                java.lang.Exception
Removes this attribute from the persistent part of the entity meta-data it belongs to. The in memory copy of this attribute does not change.
Overrides:
del in class dkAbstractAttrDef

isPrimaryKey

public boolean isPrimaryKey()
                     throws DKException,
                            java.lang.Exception
Check to see if this column is a primary key
Returns:
true if this column is a primary key

isForeignKey

public boolean isForeignKey()
                     throws DKException,
                            java.lang.Exception
Check to see if this column is a foreign key
Returns:
true if this column is a foreign key

EIP Java APIs

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