public class VirtualBuilder 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, maintainer, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, TMP_FIELD_RESOLVED, virtual, WRAP_PARAMETERS, wrapFunction, xmlPathmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Modifier | Constructor and Description |
|---|---|
|
VirtualBuilder(MMBase m)
Creates an instance of a Virtual builder.
|
protected |
VirtualBuilder(MMBase m,
String tableName)
Creates an instance of a Virtual builder and registers it in MMBase.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
create()
Creates a new builder table in the current database.
|
int |
getDBState(String fieldName)
Return a field's database state.
|
Map<String,CoreField> |
getFields(MMObjectNode node)
Get text from a blob field from a database.
|
String |
getGUIIndicator(MMObjectNode node)
What should a GUI display for this node.
|
MMObjectNode |
getNewNode(String owner)
Get a new node, using this builder as its parent.
|
protected byte[] |
getShortedByte(String fieldName,
MMObjectNode node)
Get binary data of a blob field.
|
protected String |
getShortedText(String fieldName,
MMObjectNode node)
Get text from a blob field.
|
boolean |
init()
Initializes this builder.
|
int |
insert(String owner,
MMObjectNode node)
Insert a new object (content provided) in the cloud, including an entry for the object alias (if provided).
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getFunctionValue, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedInputStream, 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, putTmpNode, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, removeTmpNode, replace, safeCache, safeCommit, safeInsert, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setInitParameters, setMaintainer, setParentBuilder, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, 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 VirtualBuilder(MMBase m)
m - the MMbase cloud creating the nodepublic boolean init()
init in class MMObjectBuildercreate()public boolean create()
create in class MMObjectBuilderpublic int insert(String owner, MMObjectNode node)
insert in class MMObjectBuilderowner - The administrator creating the nodenode - The object to insertpublic MMObjectNode getNewNode(String owner)
getNewNode in class MMObjectBuilderowner - The administrator creating the new node.VirtualNode.public String getGUIIndicator(MMObjectNode node)
MMObjectBuilder.getNodeGUIIndicator(org.mmbase.module.core.MMObjectNode, org.mmbase.util.functions.Parameters) for more flexibility.
The default behavior of a virtual node is to display the content of
the 'name' field (if present).
XXX: should be changed to something bettergetGUIIndicator in class MMObjectBuildernode - The node to displaypublic int getDBState(String fieldName)
DBSTATE_VIRTUAL.getDBState in class MMObjectBuilderfieldName - the requested field's nameDBSTATE_VIRTUALprotected String getShortedText(String fieldName, MMObjectNode node)
getShortedText in class MMObjectBuilderfieldName - name of the fieldnode - nullprotected byte[] getShortedByte(String fieldName, MMObjectNode node)
getShortedByte in class MMObjectBuilderfieldName - name of the fieldnode - nullpublic Map<String,CoreField> getFields(MMObjectNode node)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}