| |
|
| java.lang.Object it.biobytes.ammentos.Field
Field | public class Field implements Comparable(Code) | | Represents an iformation field of a persistent object
author: davide |
position | protected int position(Code) | | |
generateValue | public Object generateValue() throws PersistenceException(Code) | | Generates an automatic value for this field in according with the field
type.
the generated value. Cannot be null. throws: SQLException - If the field is not automatic or its type cannot beautomatized. |
hashCode | public int hashCode()(Code) | | |
isAutomatic | public boolean isAutomatic()(Code) | | Indicates if this field is automatic
|
isDynamic | public boolean isDynamic()(Code) | | Indicates if this field is calculated at runtime. A dynamic field is never
loaded nor saved on the DATABASE.
|
isExternal | public boolean isExternal()(Code) | | Indicates if this field is external.
See Also: com.biobytes.sql.PersistentField.setExternallyManaged() |
isUseCache | public boolean isUseCache()(Code) | | |
isVisible | public boolean isVisible()(Code) | | |
setAutomatic | public void setAutomatic(boolean isAutomatic)(Code) | | Sets the field to be automatic or not. An automatic field is a field which
values are automatically generated from the FRAMEWORK (like a sequence in a
DATABASE). Automatic field values are generated the first time a
SqlPersistentObject is saved on the DATABASE and once created are not updatable.
An automatic field can be used as primary key for a SqlPersistentObject because
its value is guarantee to be unique.
By default a field is not automatic.
Parameters: isAutomatic - |
setDynamic | public void setDynamic(boolean b)(Code) | | Sets this field to be dynamically calculated or not.
Parameters: b - |
setExternal | public void setExternal(boolean isExternallyManaged)(Code) | | Sets the field to be external (f.e. from a different table) or
not. An external field of a persistent object will not be
updatable into the DATABASE. By default a field is not external.
|
setUseCache | public void setUseCache(boolean useCache)(Code) | | |
setVisible | public void setVisible(boolean visible)(Code) | | |
|
|
|