public class Ranks extends MMObjectBuilder
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Ranks() |
| Modifier and Type | Method and Description |
|---|---|
static Ranks |
getBuilder()
Returns the Ranks builder.
|
Rank |
getRank(MMObjectNode node)
Converts this MMObjectNode to a real rank.
|
MMObjectNode |
getRankNode(Rank rank)
Gets the rank node with given rank, or if no such node, the node with the highest rank
smaller than given rank.
|
boolean |
init()
Initializes this builder
The property 'mmb' needs to be set for the builder before this method can be called.
|
int |
insert(String owner,
MMObjectNode node)
If a rank is inserted, it must be registered
|
void |
removeNode(MMObjectNode node)
A rank may only be removed if there are no users of that rank.
|
void |
setDefaults(MMObjectNode node)
Sets defaults for a node.
|
boolean |
setValue(MMObjectNode node,
String field,
Object originalValue)
Only the description of a rarnk may be changed.
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setVersion, setXMLPath, shutdown, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValuepublic static Ranks getBuilder()
public boolean init()
MMObjectBuilderinit in class MMObjectBuilderMMObjectBuilder.create()public int insert(String owner, MMObjectNode node)
insert in class MMObjectBuilderowner - The administrator creating the nodenode - The object to insert. The object need be of the same type as the current builder.int value which is the new object's unique number, -1 if the insert failed.public void removeNode(MMObjectNode node)
removeNode in class MMObjectBuildernode - The node to remove.public Rank getRank(MMObjectNode node)
public MMObjectNode getRankNode(Rank rank)
public boolean setValue(MMObjectNode node, String field, Object originalValue)
setValue in class MMObjectBuildernode - The node on which to change the field (the new value is in this node)field - the name of the field to changeoriginalValue - the value which was original in the fieldtrue When an update is required(when changed),
false if original value was set back into the field.public void setDefaults(MMObjectNode node)
MMObjectBuildersetDefaults in class MMObjectBuildernode - The node to set the defaults of.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}