org.kaiwitte.workbench.data
Interface DataColumn


public interface DataColumn

An interface to represent a data column.

Implementation note: Will be backed up by a column in an SQL table.


Method Summary
 DataScheme getAssociatedDataScheme()
          Returns the associated DataScheme or null if there is none.
 java.lang.String[] getChoices()
           
 java.lang.String getName()
          Returns the name of this column.
 java.lang.String getNameInAssociatedDataScheme()
          Returns the name in the associated DataScheme.
 java.lang.Class getType()
          Returns the Java type of the column.
 boolean isRequiredForUpdate()
          Returns true iff updates can only be performed when this column is specified.
 

Method Detail

getType

java.lang.Class getType()
Returns the Java type of the column.

Returns:
the Java type of the column.

isRequiredForUpdate

boolean isRequiredForUpdate()
Returns true iff updates can only be performed when this column is specified.

Returns:
wether or not this column is required to perform an update.
See Also:
DataManager.update(Record)

getName

java.lang.String getName()
Returns the name of this column.

Returns:
the name of this column

getAssociatedDataScheme

DataScheme getAssociatedDataScheme()
Returns the associated DataScheme or null if there is none. The latter is the general case.

Example: This column represents a customer id, and it is part of a DataScheme that represents repair orders. Then this method returns an other DataScheme which represents a customer.

Returns:
the associated DataScheme or null if there is none.

getNameInAssociatedDataScheme

java.lang.String getNameInAssociatedDataScheme()
Returns the name in the associated DataScheme.

Example: customerid

Returns:
the name in the associated DataScheme; null iff getAssociatedDataScheme() returns null.

getChoices

java.lang.String[] getChoices()