com.ds.fw.database
Class FwDBTable

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.database.FwDBBaseTable
              |
              +--com.ds.fw.database.FwDBTable
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDBTable
extends FwDBBaseTable

See Also:
Serialized Form

Field Summary
 com.ds.fw.types.FwHashVector hTableData
          Contains the table data
 
Fields inherited from class com.ds.fw.database.FwDBBaseTable
dataBase, o, tName, tPrefix
 
Constructor Summary
FwDBTable()
           
FwDBTable(java.lang.String n)
           
FwDBTable(java.lang.String n, java.lang.String p)
           
 
Method Summary
 void clear()
          Clear the FwHashVector hDBData
 com.ds.fw.database.FwDBFieldInfo getField(int i)
          Gets a field by its number
 com.ds.fw.database.FwDBFieldInfo getField(java.lang.String key)
          Gets a field by its name
 int getNBFields()
          Gets the number of the fields
 com.ds.fw.types.FwHashVector getTableData()
          Return the table data
 void setField(com.ds.fw.database.FwDBFieldInfo data)
          Sets a field
 void setField(java.lang.String key, com.ds.fw.database.FwDBFieldInfo data)
          Sets a field
 void setField(java.lang.String fieldName, int fieldType)
          Sets a field
 void setTableData(com.ds.fw.types.FwHashVector h)
          Sets the table data
 
Methods inherited from class com.ds.fw.database.FwDBBaseTable
getDataBase, getTableName, getTablePrefix, setDataBase, setTableName, setTablePrefix
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hTableData

public com.ds.fw.types.FwHashVector hTableData
Contains the table data

Constructor Detail

FwDBTable

public FwDBTable()

FwDBTable

public FwDBTable(java.lang.String n)

FwDBTable

public FwDBTable(java.lang.String n,
                 java.lang.String p)
Method Detail

getField

public com.ds.fw.database.FwDBFieldInfo getField(java.lang.String key)
Gets a field by its name

Parameters:
key - - the field name
Returns:
FwDBFieldInfo object containing the requested field, null if the key is not mapped to any value in the data table.

getField

public com.ds.fw.database.FwDBFieldInfo getField(int i)
Gets a field by its number

Parameters:
i - index of element to return.
Returns:
the field (as FwDBFieldInfo object) at the specified position in the data table.

setField

public void setField(java.lang.String key,
                     com.ds.fw.database.FwDBFieldInfo data)
Sets a field

Parameters:
key - - the key for this field
data - - the field data

setField

public void setField(com.ds.fw.database.FwDBFieldInfo data)
Sets a field

Parameters:
data - - the field data

setField

public void setField(java.lang.String fieldName,
                     int fieldType)
Sets a field

Parameters:
fieldName - - the field name
fieldType - - the field type

getTableData

public com.ds.fw.types.FwHashVector getTableData()
Return the table data

Returns:
the table data

setTableData

public void setTableData(com.ds.fw.types.FwHashVector h)
Sets the table data

Parameters:
h - - the new data

getNBFields

public int getNBFields()
Gets the number of the fields

Returns:
the number of the fields

clear

public void clear()
Clear the FwHashVector hDBData