|
||||||||||
| 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
org.mmbase.module.corebuilders.FieldDefs
CoreField
One of the core objects. It is not itself a builder, but is used by builders. Defines one field of a object type / builder.
Field| Nested Class Summary | |
protected class |
FieldDefs.LocaleToStringMap
Deprecated. Temporary implementation for backwards-compatibility. |
| Field Summary | |
static int |
DBSTATE_PERSISTENT
Deprecated. |
static int |
DBSTATE_SYSTEM
Deprecated. |
static int |
DBSTATE_UNKNOWN
Deprecated. |
static int |
DBSTATE_VIRTUAL
Deprecated. |
static int |
ORDER_CREATE
Deprecated. |
static int |
ORDER_EDIT
Deprecated. |
static int |
ORDER_LIST
Deprecated. |
static int |
ORDER_SEARCH
Deprecated. |
| 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 | |
FieldDefs(String name,
int type,
int listItemType,
int state,
DataType dataType)
Deprecated. |
|
FieldDefs(String guiName,
String guiType,
int searchPos,
int listPos,
String name,
int type)
Deprecated. Constructor for FieldDefs with partially initialized fields. |
|
FieldDefs(String guiName,
String guiType,
int searchPos,
int listPos,
String name,
int type,
int guiPos,
int state)
Deprecated. Constructor for FieldDefs with partially initialized fields. |
|
| Methods inherited from class org.mmbase.core.CoreField |
clone, clone, compareTo, equals, finish, getEditPosition, getGUIType, getListPosition, getMaxLength, getNodeManager, getParent, getSearchPosition, getStorageIdentifier, getStoragePosition, getStorageType, hashCode, inStorage, isNotNull, rewrite, setDataType, setEditPosition, setListItemType, setListPosition, setMaxLength, setNotNull, setParent, setReadOnly, setSearchPosition, setState, setStoragePosition, setStorageType, setType, setUnique, storageEquals, toString, validate |
| 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 |
| Field Detail |
public static final int DBSTATE_VIRTUAL
public static final int DBSTATE_PERSISTENT
public static final int DBSTATE_SYSTEM
public static final int DBSTATE_UNKNOWN
public static final int ORDER_CREATE
public static final int ORDER_EDIT
public static final int ORDER_LIST
public static final int ORDER_SEARCH
| Constructor Detail |
public FieldDefs(String name,
int type,
int listItemType,
int state,
DataType dataType)
public FieldDefs(String guiName,
String guiType,
int searchPos,
int listPos,
String name,
int type)
guiName - the default GUIName for a fieldguiType - the GUI type (i.e. "integer' or 'field')searchPos - position in the editor for this field when searchinglistPos - position in the editor for this field when listingname - the actual name of the field in the databasetype - the basic MMBase type of the field
public FieldDefs(String guiName,
String guiType,
int searchPos,
int listPos,
String name,
int type,
int guiPos,
int state)
guiName - the default GUIName for a fieldguiType - the GUI type (i.e. "integer' or 'field')searchPos - position in the editor for this field when searchinglistPos - position in the editor for this field when listingname - the actual name of the field in the databasetype - the basic MMBase type of the fieldguiPos - position in the editor for this field when editingstate - the state of the field (persistent, virtual, etc.)| Method Detail |
public String getDBName()
AbstractDescriptor.getName()
public int getDBType()
AbstractField.getDataType()
public int getDBSize()
CoreField.getMaxLength()
public boolean getDBNotNull()
AbstractField.isRequired()
public boolean isKey()
AbstractField.isUnique() to determine if a field is unique,
use getIndexes() to return set of Index objects to which this key belongs
public String getGUIName(String lang)
AbstractDescriptor.getGUIName(Locale locale)
public Map getGUINames()
AbstractDescriptor.getGUIName()
public Map getDescriptions()
AbstractDescriptor.getDescription()
public String getDescription(String lang)
AbstractDescriptor.getDescription(Locale locale)
public int getDBState()
AbstractField.getState()
public void setGUIName(String lang,
String value)
AbstractField.getDataType()
lang - the language to set the name forvalue - the value to set
public void setDescription(String lang,
String value)
AbstractDescriptor.getLocalizedDescription()
lang - the language to set the description forvalue - the value to setpublic void setDBSize(int value)
CoreField.setMaxLength(int)
value - the value to setpublic void setDBPos(int value)
CoreField.setStoragePosition(int)
value - the value to setpublic int getDBPos()
CoreField.getStoragePosition()
public void setGUIList(int value)
CoreField.setListPosition(int)
value - the value to setpublic int getGUIList()
CoreField.getListPosition()
public void setGUIPos(int value)
CoreField.setEditPosition(int)
value - the value to setpublic int getGUIPos()
CoreField.getEditPosition()
public void setGUISearch(int value)
CoreField.setSearchPosition(int)
value - the value to setpublic int getGUISearch()
CoreField.getSearchPosition()
public void setDBState(String value)
CoreField.setState(int)
value - the name of the statepublic void setDBState(int i)
AbstractField.getState()
public void setDBKey(boolean value)
CoreField.setUnique(boolean) to make a field unique.
value - the value to setpublic void setDBNotNull(boolean value)
AbstractField.getDataType()
value - the value to setpublic static void sort(List fielddefs)
fielddefs - the list to sort
public static void sort(List fielddefs,
int order)
Fields.sort(java.util.List, int)
fielddefs - the list to sortorder - one of ORDER_CREATE, ORDER_EDIT, ORDER_LIST,ORDER_SEARCH
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||