public class DSTableKeyDef extends java.lang.Object implements DSTableKeyIFace
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
mFields |
protected java.util.Vector |
mMissingValueCode |
protected DSTableDef |
mTable |
PRIMARYKEY, SECONDARYKEY, UNDEFINEDKEY| Constructor and Description |
|---|
DSTableKeyDef()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DSTableFieldDef aFieldDef)
Adds a DSTableFieldDef object to the Key
|
void |
addMissingValueCode(java.lang.String code)
Method to add missing value code into a vector.
|
java.lang.String |
getDataType()
Passes back one or more types in human readable string may want to change
this to an array of type or a vector
|
java.util.Vector |
getFields()
Get Vector of DSTableFieldDef objects
|
int |
getKeyType()
Return whether it is a Primary or Secondary Key
|
java.util.Vector |
getMissingValueCode()
Method to return the vector which store the missing value code.
|
java.lang.String |
getName()
Returns one or more names.
|
DSTableIFace |
getTable()
Returns the table for the field
|
void |
setMissingValueCode(java.util.Vector missingValueVector)
Method to return the vector which store the missing value code.
|
void |
setTable(DSTableDef aTable)
Sets the Parent DSTableDef object
|
protected java.util.Vector mFields
protected DSTableDef mTable
protected java.util.Vector mMissingValueCode
public DSTableKeyDef()
public void add(DSTableFieldDef aFieldDef)
aFieldDef - Object to be addedpublic java.util.Vector getFields()
public java.lang.String getName()
getName in interface DSTableFieldIFacepublic java.lang.String getDataType()
getDataType in interface DSTableFieldIFacepublic int getKeyType()
DSTableKeyIFacegetKeyType in interface DSTableKeyIFacepublic void setTable(DSTableDef aTable)
aTable - DSTableDef objectpublic DSTableIFace getTable()
public java.util.Vector getMissingValueCode()
getMissingValueCode in interface DSTableFieldIFacepublic void addMissingValueCode(java.lang.String code)
addMissingValueCode in interface DSTableFieldIFacecode - public void setMissingValueCode(java.util.Vector missingValueVector)
setMissingValueCode in interface DSTableFieldIFace