org.formaria.data.sql
Class DatabaseFieldModel

java.lang.Object
  extended by org.formaria.aria.data.DataModel
      extended by org.formaria.aria.data.table.FieldModel
          extended by org.formaria.data.sql.DatabaseFieldModel

public class DatabaseFieldModel
extends FieldModel

Provides a model for table field. The field will have no children. As a Java object the fields and rows indices are zero based in contrast to the JDBC indexing setup.

The class is not intended to be used directly except in rare circumstances, instead most access will be via the model and bindings or via the DatabaseTableModel class

Copyright (c) Formaria Ltd. 2008

$Revision: 2.2 $ License: see license.txt


Field Summary
 
Fields inherited from class org.formaria.aria.data.table.FieldModel
fieldIdx, rowIdx, sourceData
 
Fields inherited from class org.formaria.aria.data.DataModel
parentModel, tagName
 
Constructor Summary
DatabaseFieldModel()
          Create a new field model node
DatabaseFieldModel(DatabaseTableModel table, int row, int field)
          Create a new field model node
 
Method Summary
 
Methods inherited from class org.formaria.aria.data.table.FieldModel
append, append, get, get, getAttribName, getAttribute, getAttribValue, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getAttribValueAsString, getFieldIndex, getId, getTable, getTagName, getValue, getValueAsDouble, getValueAsInt, getValueAsString, hashCode, remove, set, set, setAttribValue, setAttribValue, setCellReference, toString
 
Methods inherited from class org.formaria.aria.data.DataModel
addModelListener, clear, fireModelUpdated, get, getNumAttributes, getNumChildren, getParent, hasAutoId, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setId, setNumAttributes, setNumChildren, setParent, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseFieldModel

public DatabaseFieldModel()
Create a new field model node


DatabaseFieldModel

public DatabaseFieldModel(DatabaseTableModel table,
                          int row,
                          int field)
Create a new field model node

Parameters:
table - the table model
row - the row index
field - the field index