com.objex.panywhere
Class DatabaseTable

java.lang.Object
  extended by com.objex.panywhere.DatabaseTable
All Implemented Interfaces:
java.io.Serializable

public class DatabaseTable
extends java.lang.Object
implements java.io.Serializable

A database table defines a table that is defined in the database that is the data source for the application wrapping the Progeny Anywhere control.

See Also:
Serialized Form

Constructor Summary
DatabaseTable()
          Constructor for database table
 
Method Summary
 void addField(DatabaseField aField)
          Adds a new field to the list of fields for this database table
 void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
          Enables users of the Legend Bean to add property listeners
 DatabaseField getField(int ai_fieldid)
           
 DatabaseField getField(java.lang.String fieldid)
          Returns the database field whose fieldname is specified.
 java.util.Map<java.lang.Integer,DatabaseField> getFields()
          Getter for property fields.
 int getNumberOfFields()
          Returns the number of fields in this DatabaseTable
 int getTableid()
          Getter for property tableid.
 java.lang.String getTablename()
          Getter for property tablename.
 void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
          Enables users of the Legend Bean to add property listeners
 void setField(DatabaseField field)
          Add the database filed specified to the list of database Fields
 void setFields(java.util.Map aFields)
          Setter for property fields.
 void setTableid(int ai_id)
          Setter for property tableid.
 void setTablename(java.lang.String tablename)
          Setter for property tablename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTable

public DatabaseTable()
Constructor for database table

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables users of the Legend Bean to add property listeners


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables users of the Legend Bean to add property listeners


getTableid

public int getTableid()
Getter for property tableid.

Returns:
Value of property tableid.

setTableid

public void setTableid(int ai_id)
Setter for property tableid.

Parameters:
ai_id - New value of property tableid.

getTablename

public java.lang.String getTablename()
Getter for property tablename.

Returns:
Value of property tablename.

setTablename

public void setTablename(java.lang.String tablename)
Setter for property tablename.

Parameters:
tablename - New value of property tablename.

getFields

public java.util.Map<java.lang.Integer,DatabaseField> getFields()
Getter for property fields.

Returns:
Value of property fields.

setFields

public void setFields(java.util.Map aFields)
Setter for property fields.

Parameters:
aFields - New value of property fields.

setField

public void setField(DatabaseField field)
Add the database filed specified to the list of database Fields


getField

public DatabaseField getField(java.lang.String fieldid)
Returns the database field whose fieldname is specified. Null may be returned if the database field with specified name does not exist


getNumberOfFields

public int getNumberOfFields()
Returns the number of fields in this DatabaseTable


addField

public void addField(DatabaseField aField)
Adds a new field to the list of fields for this database table

Parameters:
aField - The new field to be added

getField

public DatabaseField getField(int ai_fieldid)
Parameters:
ai_fieldid - The fieldid of the field to be retrieved
Returns:
The DatabaseField object whose fieldid is specified or null if no such field exists in this table