|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.AbstractDescriptor
org.mmbase.core.AbstractField
org.mmbase.core.CoreField
| Field Summary |
| Fields inherited from class org.mmbase.core.AbstractField |
dataType, listItemType, readOnly, state, type |
| Fields inherited from class org.mmbase.core.AbstractDescriptor |
description, guiName, key |
| Fields inherited from interface org.mmbase.bridge.Field |
STATE_PERSISTENT, STATE_SYSTEM, STATE_SYSTEM_VIRTUAL, STATE_UNKNOWN, STATE_VIRTUAL, TYPE_BINARY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_DATETIME, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LIST, TYPE_LONG, TYPE_NODE, TYPE_STRING, TYPE_UNKNOWN, TYPE_XML |
| Constructor Summary | |
|
CoreField(Field field)
Creates a CoreField object based on a more generic 'Field'. |
protected |
CoreField(String name,
CoreField coreField)
Copy constructor. |
protected |
CoreField(String name,
int type,
int listItemType,
int state,
DataType dataType)
Create a core object |
| Method Summary | |
Object |
clone()
|
Object |
clone(String name)
|
int |
compareTo(Object o)
Compare this object to the supplied one (should be a CoreField) |
boolean |
equals(Object o)
Whether data type equals to other data type. |
void |
finish()
|
int |
getEditPosition()
Retrieve the position of the field when editing. |
String |
getGUIType()
Retrieve the GUI type of the field. |
int |
getListPosition()
Retrieve the position of the field when listing. |
int |
getMaxLength()
Returns the (maximum) size of this field, as determined by the storage layer. |
NodeManager |
getNodeManager()
Returns the node manager this field belongs to. |
MMObjectBuilder |
getParent()
Retrieves the parent builder for this field |
int |
getSearchPosition()
Retrieve the position of the field when searching. |
Object |
getStorageIdentifier()
Returns a storage identifier for this object. This should return:
StorageManagerFactory.getStorageIdentifier() when it is first instantiated. |
int |
getStoragePosition()
Retrieve the position of the field in the database table. |
int |
getStorageType()
Retrieves the storage type. |
int |
hashCode()
|
boolean |
inStorage()
Returns whether an object is (or, for a new object, should be) defined in the storage. |
boolean |
isNotNull()
|
void |
rewrite()
|
void |
setDataType(DataType dataType)
Sets the datatype of a field. |
void |
setEditPosition(int i)
Set the position of the field when editing. |
void |
setListItemType(int listItemType)
|
void |
setListPosition(int i)
Set the position of the field when listing. |
void |
setMaxLength(int size)
|
void |
setNotNull(boolean nl)
|
void |
setParent(MMObjectBuilder parent)
Set the parent builder for this field |
void |
setReadOnly(boolean readOnly)
|
void |
setSearchPosition(int i)
Set the position of the field when searching. |
void |
setState(int state)
|
void |
setStoragePosition(int i)
Set the position of the field in the database table. |
void |
setStorageType(int type)
Sets the storage type. |
void |
setType(int type)
|
void |
setUnique(boolean unique)
|
boolean |
storageEquals(CoreField f)
Whether this CoreField is equal to another for storage purposes (so, ignoring gui and documentation fields) |
String |
toString()
Returns a description for this field. |
Collection |
validate(Object value)
Checks whether a given value is valid for this field. |
| Methods inherited from class org.mmbase.core.AbstractField |
clone, getDataType, getListItemType, getState, getType, hasIndex, isReadOnly, isRequired, isTemporary, isUnique, isVirtual |
| Methods inherited from class org.mmbase.core.AbstractDescriptor |
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.Field |
getDataType, getListItemType, getState, getType, hasIndex, isReadOnly, isRequired, isUnique, isVirtual |
| Methods inherited from interface org.mmbase.bridge.Descriptor |
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName |
| Constructor Detail |
public CoreField(Field field)
protected CoreField(String name,
int type,
int listItemType,
int state,
DataType dataType)
name - the name of the data typedataType - the data type for this field
protected CoreField(String name,
CoreField coreField)
name - the name of the data typecoreField - | Method Detail |
public NodeManager getNodeManager()
Field
getNodeManager in interface FieldgetNodeManager in class AbstractFieldpublic Object clone()
clone in class AbstractFieldpublic Object clone(String name)
clone in class AbstractDescriptorpublic void setReadOnly(boolean readOnly)
public void setNotNull(boolean nl)
public boolean isNotNull()
public int getSearchPosition()
getSearchPosition in interface FieldgetSearchPosition in class AbstractFieldpublic void setSearchPosition(int i)
getSearchPosition()public int getListPosition()
getListPosition in interface FieldgetListPosition in class AbstractFieldpublic void setListPosition(int i)
getListPosition()public int getEditPosition()
getEditPosition in interface FieldgetEditPosition in class AbstractFieldpublic void setEditPosition(int i)
getEditPosition()public int getStoragePosition()
getStoragePosition in interface FieldgetStoragePosition in class AbstractFieldpublic void setStoragePosition(int i)
public MMObjectBuilder getParent()
public void setParent(MMObjectBuilder parent)
parent - the parent builderpublic void setState(int state)
setState in class AbstractFieldpublic void setType(int type)
public void setListItemType(int listItemType)
public Collection validate(Object value)
Field
validate in interface Fieldpublic boolean storageEquals(CoreField f)
public boolean equals(Object o)
AbstractField
equals in class AbstractFieldObject.equals(java.lang.Object)public int hashCode()
hashCode in class AbstractFieldObject.hashCode()public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class AbstractFieldo - the object to compare to
public void finish()
public void rewrite()
public int getMaxLength()
getMaxLength in interface FieldgetMaxLength in class AbstractFieldpublic void setMaxLength(int size)
public void setDataType(DataType dataType)
throws IllegalArgumentException
AbstractField
setDataType in class AbstractFieldIllegalArgumentExceptionAbstractField.getType()public void setUnique(boolean unique)
public Object getStorageIdentifier()
throws StorageException
StorageManagerFactory.getStorageIdentifier() when it is first instantiated.
getStorageIdentifier in interface StorableStorageExceptionpublic int getStorageType()
Storable
getStorageType in interface Storablepublic void setStorageType(int type)
Storable
setStorageType in interface Storabletype - the value to setpublic boolean inStorage()
Storablefalse.
inStorage in interface Storabletrue if the object is kept in the storagepublic String getGUIType()
getGUIType in interface FieldgetGUIType in class AbstractFieldpublic String toString()
AbstractField
toString in class AbstractField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||