Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKColumnDefJDBC

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.dkAbstractAttrDef
        |
        +--com.ibm.mm.sdk.common.DKColumnDefJDBC
All Implemented Interfaces:
dkAttrDef, DKConstant, DKConstantJDBC, DKMessageId, DKMessageIdJDBC, java.io.Serializable

public class DKColumnDefJDBC
extends dkAbstractAttrDef
implements DKConstantJDBC, DKMessageIdJDBC, 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.DKConstantJDBC
DK_JDBC_AUTOCOMMIT_OFF, DK_JDBC_AUTOCOMMIT_ON, DK_JDBC_DATABASE_DEFAULT, DK_JDBC_DEFAULT_MIMETYPE, DK_JDBC_DSTYPE, DK_JDBC_HSTMT, DK_JDBC_OPT_AUTOCOMMIT_MODE, DK_JDBC_OPT_TXN_ISOLATION, DK_JDBC_PROPERTY_TABLE_NAME, DK_JDBC_PROPERTY_TABLE_SCHEMA, DK_JDBC_READ_COMMITTED, DK_JDBC_READ_UNCOMMITTED, DK_JDBC_REPEATABLE_READ, DK_JDBC_SERIALIZABLE, DK_JDBC_TABLE, DK_JDBC_VIEW
 
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.DKMessageIdJDBC
DK_JDBC_MSG_MSGID_ADD_FAILED, DK_JDBC_MSG_MSGID_DELETE_FAILED, DK_JDBC_MSG_MSGID_NOT_FOUND, DK_JDBC_MSG_MSGID_RETRIEVE_FAILED, DK_JDBC_MSG_MSGID_SQL_ERROR, DK_JDBC_MSG_MSGID_UPDATE_FAILED
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId
    For details, see the class or interface
 
Constructor Summary
DKColumnDefJDBC()
          Constructs the attribute def for JDBC
DKColumnDefJDBC(dkDatastore ds)
          Constructs the attribute def for JDBC
 
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

DKColumnDefJDBC

public DKColumnDefJDBC()
Constructs the attribute def for JDBC

DKColumnDefJDBC

public DKColumnDefJDBC(dkDatastore ds)
Constructs the attribute def for JDBC
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.