| java.lang.Object org.mmbase.core.AbstractDescriptor org.mmbase.core.AbstractField
All known Subclasses: org.mmbase.core.CoreField, org.mmbase.bridge.util.DataTypeField, org.mmbase.bridge.implementation.BasicField,
AbstractField | abstract public class AbstractField extends AbstractDescriptor implements Field(Code) | | author: Pierre van Rooden author: Michiel Meeuwissen since: MMBase-1.8 version: $Id: AbstractField.java,v 1.17 2008/02/16 22:13:53 nklasens Exp $ |
listItemType | protected int listItemType(Code) | | |
readOnly | protected boolean readOnly(Code) | | |
state | protected int state(Code) | | |
AbstractField | protected AbstractField(String name, Field field)(Code) | | Create a field object based on another field.
The newly created field shared the datatype of it's parent
(which means that any changes to the datatype affects both fields).
Parameters: name - the name of the field Parameters: field - the parent field |
AbstractField | protected AbstractField(String name, Field field, boolean cloneDataForRewrite)(Code) | | Create a field object based on another field.
Parameters: name - the name of the field Parameters: field - the parent field Parameters: cloneDataForRewrite - determines whether the datatype of the parent field is copied (which means it can be alteredwithout affecting the original datatype) |
AbstractField | protected AbstractField(String name, int type, int listItemType, int state, DataType<Object> dataType)(Code) | | Create a field object
Parameters: name - the name of the field Parameters: type - the identifier for the MMBase base type for this field Parameters: listItemType - If the type of this field is TYPE_LIST, then this is the MMBase base type for the list elements. Parameters: state - identifier (virtual, persistent, system, systemvirtual) Parameters: dataType - the data type of the field |
equals | public boolean equals(Object o)(Code) | | Whether data type equals to other data type. Only key and type are considered. DefaultValue and
required properties are only 'utilities'.
Parameters: o - the reference object with which to compare. true if o is a DataType of which key and type equal to this' key and type. |
getEditPosition | abstract public int getEditPosition()(Code) | | |
getListItemType | public int getListItemType()(Code) | | |
getListPosition | abstract public int getListPosition()(Code) | | |
getMaxLength | abstract public int getMaxLength()(Code) | | |
getSearchPosition | abstract public int getSearchPosition()(Code) | | |
getState | public int getState()(Code) | | |
getStoragePosition | abstract public int getStoragePosition()(Code) | | |
getType | public int getType()(Code) | | |
hasIndex | public boolean hasIndex()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isTemporary | public boolean isTemporary()(Code) | | Returns whether a field is a temporary field.
Temporary fields hold data needed by a builder to facilitate certain functionality,
such as holding node references in a transaction.
Temporary fields are never persistent and should normally be ignored.
true when temporary since: MMBase-1.8 |
isUnique | public boolean isUnique()(Code) | | Retrieve whether the field is a key and thus need be unique.
true when field is unique |
setState | protected void setState(int state)(Code) | | |
toString | public String toString()(Code) | | Returns a description for this field.
a string representation of the object. |
|
|