| |
|
| java.lang.Object org.mmbase.core.AbstractDescriptor org.mmbase.core.AbstractField org.mmbase.core.CoreField
All known Subclasses: org.mmbase.module.corebuilders.FieldDefs,
CoreField | public CoreField(Field field)(Code) | | Creates a CoreField object based on a more generic 'Field'.
since: MMBase-1.8.1 |
CoreField | protected CoreField(String name, int type, int listItemType, int state, DataType dataType)(Code) | | Create a core object
Parameters: name - the name of the data type Parameters: dataType - the data type for this field |
CoreField | protected CoreField(String name, CoreField coreField)(Code) | | Copy constructor.
Parameters: name - the name of the data type Parameters: coreField - |
compareTo | public int compareTo(Field o)(Code) | | Compare this object to the supplied one (should be a CoreField)
Parameters: o - the object to compare to -1,1, or 0 according to wether this object is smaller, greater, or equalto the supplied one. |
finish | public void finish()(Code) | | |
getEditPosition | public int getEditPosition()(Code) | | Retrieve the position of the field when editing.
A value of -1 indicates the field cannot be edited.
|
getGUIType | public String getGUIType()(Code) | | Retrieve the GUI type of the field.
|
getListPosition | public int getListPosition()(Code) | | Retrieve the position of the field when listing.
A value of -1 indicates the field is unavailable in a list.
|
getMaxLength | public int getMaxLength()(Code) | | Returns the (maximum) size of this field, as determined by the storage layer.
For example if a field contains characters the size indicates the
maximum number of characters it can contain.
If the field is a numeric field (such as an integer), the result is -1.
the maximum size of data this field can contain |
getSearchPosition | public int getSearchPosition()(Code) | | Retrieve the position of the field when searching.
A value of -1 indicates the field is unavailable during search.
|
getStoragePosition | public int getStoragePosition()(Code) | | Retrieve the position of the field in the database table.
|
getStorageType | public int getStorageType()(Code) | | |
inStorage | public boolean inStorage()(Code) | | |
isNotNull | public boolean isNotNull()(Code) | | |
rewrite | public void rewrite()(Code) | | |
setListItemType | public void setListItemType(int listItemType)(Code) | | |
setMaxLength | public void setMaxLength(int size)(Code) | | |
setNotNull | public void setNotNull(boolean nl)(Code) | | |
setParent | public void setParent(MMObjectBuilder parent)(Code) | | Set the parent builder for this field
Parameters: parent - the parent builder |
setReadOnly | public void setReadOnly(boolean readOnly)(Code) | | |
setState | public void setState(int state)(Code) | | |
setStoragePosition | public void setStoragePosition(int i)(Code) | | Set the position of the field in the database table.
|
setStorageType | public void setStorageType(int type)(Code) | | |
setType | public void setType(int type)(Code) | | |
setUnique | public void setUnique(boolean unique)(Code) | | |
storageEquals | public boolean storageEquals(CoreField f)(Code) | | Whether this CoreField is equal to another for storage purposes (so, ignoring gui and documentation fields)
since: MMBase-1.7 |
|
|
|