com.objex.panywhere
Class DatabaseField

java.lang.Object
  extended by com.objex.panywhere.DatabaseField
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TableField

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

This class defines the properties of a Database field that may be part of a DataDictionary within the Progeny Anywhere control. Each field is identified by its fieldid and name, which link it to the actual database to which the DataDictionary refers.

See Also:
Serialized Form

Constructor Summary
DatabaseField()
          Constructor for databaseField class
 
Method Summary
 void addSubField(DatabaseField aSubField)
          Adss a new subfield to the list of subfields for this database field.
 DataType getDatatype()
          Getter for property datatype.
 int getFieldid()
           
 java.lang.String getFieldname()
          Getter for property fieldname.
 java.lang.String getID()
          Getter for property ID.
 java.util.List getLUValues()
          Return the List of Values list if the field is a lookup field of NULL if it is a not
 DatabaseField getSubField(int ai_subfieldid)
           
 java.util.Map getSubfields()
          Return the subfields list for this field if it is a table field or null if it of another type
 void setDatatype(DataType datatype)
          Setter for property datatype.
 void setFieldid(int ai_fieldid)
          Sets the new fieldid
 void setFieldname(java.lang.String rhs)
          Setter for property fieldname.
 void setID(java.lang.String rhs)
          Setter for property ID.
 void setSubfields(java.util.Map aSubFields)
          Set this field's new subfields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseField

public DatabaseField()
Constructor for databaseField class

Method Detail

getSubfields

public java.util.Map getSubfields()
Return the subfields list for this field if it is a table field or null if it of another type


setSubfields

public void setSubfields(java.util.Map aSubFields)
Set this field's new subfields


getLUValues

public java.util.List getLUValues()
Return the List of Values list if the field is a lookup field of NULL if it is a not


getFieldname

public java.lang.String getFieldname()
Getter for property fieldname.

Returns:
Value of property fieldname.

setFieldname

public void setFieldname(java.lang.String rhs)
Setter for property fieldname.

Parameters:
rhs - New value of property fieldname.

getID

public java.lang.String getID()
Getter for property ID.

Returns:
Value of property ID.

setID

public void setID(java.lang.String rhs)
Setter for property ID. This sets the field number or ID

Parameters:
rhs - New value of property ID.

getFieldid

public int getFieldid()
Returns:
The fieldid used as key for accessing this field from the dictionary.

setFieldid

public void setFieldid(int ai_fieldid)
Sets the new fieldid

Parameters:
ai_fieldid - The new ID for this database field

addSubField

public void addSubField(DatabaseField aSubField)
Adss a new subfield to the list of subfields for this database field.

Parameters:
aSubField - The new subfield to be added

getSubField

public DatabaseField getSubField(int ai_subfieldid)
Parameters:
ai_subfieldid - The id of the field to be retrieved
Returns:
The subfield whose fielid is specified or null if no such subfield exists for this field

setDatatype

public void setDatatype(DataType datatype)
Setter for property datatype. Data types will typically be String object types but a type of Object has been chosen just in case the other types are used in the future.

Parameters:
datatype - New value of property datatype.

getDatatype

public DataType getDatatype()
Getter for property datatype. Data types will typically be String object types but a type of Object has been chosen just in case the other types are used in the future.

Returns:
Value of property datatype.