public class DSTableFieldDef extends DataObjectDescription implements DSTableKeyIFace
| Modifier and Type | Field and Description |
|---|---|
protected int |
mKeyType |
protected DSTableIFace |
mTable |
dataType, definition, id, missingValueCode, namePRIMARYKEY, SECONDARYKEY, UNDEFINEDKEY| Constructor and Description |
|---|
DSTableFieldDef(java.lang.String aId,
java.lang.String aName,
java.lang.String aDataType,
int aKeyType,
java.util.Vector aMissingValueCode)
Construct a DSTableFieldDef.
|
DSTableFieldDef(java.lang.String aId,
java.lang.String aName,
java.lang.String aDataType,
java.util.Vector aMissingValueCode)
Construct a DSTableFieldDef.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyType()
Return whether it is a Primary or Secondary Key
|
DSTableIFace |
getTable()
Returns the table for the field
|
void |
setTable(DSTableIFace aTable)
Sets the Parent DSTableDef object
|
addMissingValueCode, appendElement, equals, getDataType, getDefinition, getId, getMissingValueCode, getName, setDataType, setDefinition, setId, setMissingValueCode, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMissingValueCode, getDataType, getMissingValueCode, getName, setMissingValueCodeprotected int mKeyType
protected DSTableIFace mTable
public DSTableFieldDef(java.lang.String aId, java.lang.String aName, java.lang.String aDataType, java.util.Vector aMissingValueCode)
aId - the id of the fieldaName - the name of the fieldaDataType - the datatype of the fieldpublic DSTableFieldDef(java.lang.String aId, java.lang.String aName, java.lang.String aDataType, int aKeyType, java.util.Vector aMissingValueCode)
aId - the id of the fieldaName - the name of the fieldaDataType - the datatype of the fieldaKeyType - the datatype of the fieldpublic void setTable(DSTableIFace aTable)
aTable - DSTableDef objectpublic DSTableIFace getTable()
public int getKeyType()
DSTableKeyIFacegetKeyType in interface DSTableKeyIFace