CoreFieldpublic class FieldDefs extends CoreField
Field| Modifier and Type | Class and Description |
|---|---|
protected class |
FieldDefs.LocaleToStringMap
Deprecated.
Temporary implementation for backwards-compatibility.
|
| Modifier and Type | Field and Description |
|---|---|
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.
|
dataType, listItemType, readOnly, state, typedescription, guiName, keySTATE_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 and Description |
|---|
FieldDefs(String name,
int type,
int listItemType,
int state,
DataType<? extends Object> 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDBName()
Deprecated.
|
boolean |
getDBNotNull()
Deprecated.
|
int |
getDBPos()
Deprecated.
|
int |
getDBSize()
Deprecated.
|
int |
getDBState()
Deprecated.
|
int |
getDBType()
Deprecated.
to access type constraints, use
AbstractField.getDataType() |
String |
getDescription(String lang)
Deprecated.
|
Map<String,String> |
getDescriptions()
Deprecated.
|
int |
getGUIList()
Deprecated.
|
String |
getGUIName(String lang)
Deprecated.
|
Map<String,String> |
getGUINames()
Deprecated.
|
int |
getGUIPos()
Deprecated.
|
int |
getGUISearch()
Deprecated.
|
boolean |
isKey()
Deprecated.
use
AbstractField.isUnique() to determine if a field is unique,
use getIndexes() to return set of Index objects to which this key belongs |
void |
setDBKey(boolean value)
Deprecated.
use
CoreField.setUnique(boolean) to make a field unique. |
void |
setDBNotNull(boolean value)
Deprecated.
to access type constraints, use
AbstractField.getDataType() |
void |
setDBPos(int value)
Deprecated.
|
void |
setDBSize(int value)
Deprecated.
|
void |
setDBState(int i)
Deprecated.
|
void |
setDBState(String value)
Deprecated.
|
void |
setDescription(String lang,
String value)
Deprecated.
|
void |
setGUIList(int value)
Deprecated.
|
void |
setGUIName(String lang,
String value)
Deprecated.
to access type constraints, use
AbstractField.getDataType() |
void |
setGUIPos(int value)
Deprecated.
|
void |
setGUISearch(int value)
Deprecated.
|
static void |
sort(List<CoreField> fielddefs,
int order)
|
static void |
sort(List<FieldDefs> fielddefs)
Deprecated.
use Collections.sort
|
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, validateclone, getDataType, getListItemType, getState, getType, hasIndex, isReadOnly, isRequired, isTemporary, isUnique, isVirtualgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUINamefinalize, getClass, notify, notifyAll, wait, wait, waitgetDataType, getListItemType, getState, getType, hasIndex, isReadOnly, isRequired, isUnique, isVirtualgetDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUINamepublic 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
public FieldDefs(String name, int type, int listItemType, int state, DataType<? extends Object> 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 fieldpublic 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.)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 belongspublic String getGUIName(String lang)
AbstractDescriptor.getGUIName(Locale locale)public Map<String,String> getGUINames()
AbstractDescriptor.getGUIName()public Map<String,String> 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 setpublic 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)
fielddefs - the list to sortMMBase 1.9-SNAPSHOT - ${javadoctimestamp}