|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.bridge.util.AbstractDescriptor
org.mmbase.bridge.util.AbstractField<Object>
org.mmbase.core.CoreField
public class CoreField
| Field Summary |
|---|
| Fields inherited from class org.mmbase.bridge.util.AbstractField |
|---|
dataType, listItemType, readOnly, state, type |
| Fields inherited from class org.mmbase.bridge.util.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_DECIMAL, 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 | |
|---|---|
CoreField |
clone()
|
CoreField |
clone(String name)
|
int |
compareTo(Field o)
Compare this object to the supplied one (should be a CoreField) |
boolean |
equals(Object o)
|
void |
finish()
Finishes this encapsulated DataType with current field. |
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()
|
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. |
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)
|
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()
|
Collection<String> |
validate(Object value)
|
| Methods inherited from class org.mmbase.bridge.util.AbstractField |
|---|
clone, getDataType, getListItemType, getState, getType, hasIndex, isReadOnly, isRequired, isTemporary, isUnique, isVirtual |
| Methods inherited from class org.mmbase.bridge.util.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()
getNodeManager in interface FieldgetNodeManager in class AbstractField<Object>public final CoreField clone()
clone in interface PublicCloneable<AbstractDescriptor>clone in class AbstractField<Object>public CoreField 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 AbstractField<Object>public void setSearchPosition(int i)
getSearchPosition()public int getListPosition()
getListPosition in interface FieldgetListPosition in class AbstractField<Object>public void setListPosition(int i)
getListPosition()public int getEditPosition()
getEditPosition in interface FieldgetEditPosition in class AbstractField<Object>public void setEditPosition(int i)
getEditPosition()public int getStoragePosition()
getStoragePosition in interface FieldgetStoragePosition in class AbstractField<Object>public void setStoragePosition(int i)
public MMObjectBuilder getParent()
public void setParent(MMObjectBuilder parent)
parent - the parent builderpublic void setState(int state)
setState in class AbstractField<Object>public void setType(int type)
public void setListItemType(int listItemType)
public Collection<String> validate(Object value)
validate in interface Fieldpublic boolean storageEquals(CoreField f)
public boolean equals(Object o)
equals in class AbstractField<Object>Object.equals(java.lang.Object)public int hashCode()
hashCode in class AbstractField<Object>Object.hashCode()public int compareTo(Field o)
compareTo in interface Comparable<Field>compareTo in class AbstractField<Object>o - the object to compare to
public void finish()
IllegalStateException - If the datatype is already finishedpublic void rewrite()
public int getMaxLength()
getMaxLength in interface FieldgetMaxLength in class AbstractField<Object>public void setMaxLength(int size)
public void setDataType(DataType dataType)
throws IllegalArgumentException
setDataType in class AbstractField<Object>IllegalArgumentExceptionpublic 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 AbstractField<Object>public String toString()
toString in class AbstractField<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||