public class DSTableDef extends java.lang.Object implements DSTableIFace
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
mFields |
protected java.lang.String |
mName |
protected DSTableKeyDef |
mPrimaryKey |
protected java.util.Vector |
mSecondaryKeys |
Constructor and Description |
---|
DSTableDef(java.lang.String aName)
Construct a DSTableDef
|
Modifier and Type | Method and Description |
---|---|
DSTableFieldDef |
addField(java.lang.String aName,
java.lang.String aDataType,
java.util.Vector aMissingValue)
Adds a field to the table
|
DSTableFieldDef |
addPrimaryKey(java.lang.String aName,
java.lang.String aDataType,
java.util.Vector aMissingValue)
Adds a Primary Key to the table
|
DSTableFieldDef |
addSecondaryKey(java.lang.String aName,
java.lang.String aDataType,
java.util.Vector aMissingValue)
Adds a secondary key to the table
|
java.util.Vector |
getFields()
Returns a Vector of all the fields in a table
|
java.lang.String |
getMappedName()
Gets the name of mapped table
|
java.lang.String |
getName()
Gets the name of table
|
DSTableKeyIFace |
getPrimaryKey()
Returns a DSTableKeyDef Object representing the Primary Key
|
java.util.Vector |
getSecondaryKeys()
Returns a Vector of DSTableFieldDef Objects where each object is a
secondary Key
|
void |
setName(java.lang.String aName)
Sets the nameof the table
|
java.lang.String |
toString()
Returns name of table as a string
|
protected java.lang.String mName
protected java.util.Vector mFields
protected DSTableKeyDef mPrimaryKey
protected java.util.Vector mSecondaryKeys
public DSTableDef(java.lang.String aName)
name
- name of the tablepublic java.util.Vector getFields()
getFields
in interface DSTableIFace
public DSTableKeyIFace getPrimaryKey()
getPrimaryKey
in interface DSTableIFace
public java.util.Vector getSecondaryKeys()
public java.lang.String getName()
getName
in interface DSTableIFace
public java.lang.String getMappedName()
getMappedName
in interface DSTableIFace
public void setName(java.lang.String aName)
aName
- The name to set.public DSTableFieldDef addField(java.lang.String aName, java.lang.String aDataType, java.util.Vector aMissingValue)
aName
- name of fieldaDataType
- data type of field as defined by the DataType classpublic DSTableFieldDef addPrimaryKey(java.lang.String aName, java.lang.String aDataType, java.util.Vector aMissingValue)
aName
- name of keyaDataType
- data type of field as defined by the DataType classpublic DSTableFieldDef addSecondaryKey(java.lang.String aName, java.lang.String aDataType, java.util.Vector aMissingValue)
aName
- name of keyaDataType
- data type of field as defined by the DataType classpublic java.lang.String toString()
toString
in class java.lang.Object