|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.core.VirtualBuilder
VirtualBuilder is a builder which creates 'virtual' nodes. This class is intended to facilitate practical creation of virtual builders by capturing events that migth otherwise lead to unexpected or faulty behavior.
| Field Summary |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
|
VirtualBuilder(MMBase m)
Creates an instance of a Virtual builder. |
protected |
VirtualBuilder(MMBase m,
java.lang.String tableName)
Creates an instance of a Virtual builder and registers it in MMBase. |
| Method Summary | |
boolean |
create()
Creates a new builder table in the current database. |
int |
getDBState(java.lang.String fieldName)
Return a field's database state. |
java.lang.String |
getGUIInicator(MMObjectNode node)
What should a GUI display for this node. |
MMObjectNode |
getNewNode(java.lang.String owner)
Get a new node, using this builder as its parent. |
byte[] |
getShortedByte(java.lang.String fieldname,
int number)
Get binary data of a blob field from a database. |
java.lang.String |
getShortedText(java.lang.String fieldname,
int number)
Get text from a blob field from a database. |
boolean |
init()
Initializes this builder. |
int |
insert(java.lang.String owner,
MMObjectNode node)
Insert a new object (content provided) in the cloud, including an entry for the object alias (if provided). |
void |
processSearchResults(java.util.List results)
Performs some necessary postprocessing on nodes retrieved from a search query. |
| Methods inherited from class org.mmbase.module.core.MMTable |
created, getFullTableName, getTableName, size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VirtualBuilder(MMBase m)
m - the MMbase cloud creating the node
protected VirtualBuilder(MMBase m,
java.lang.String tableName)
m - the MMbase cloud creating the nodetableName - the name of the builder as known in the MMbase system| Method Detail |
public boolean init()
init in class MMObjectBuildercreate()public boolean create()
create in class MMObjectBuilder
public int insert(java.lang.String owner,
MMObjectNode node)
insert in class MMObjectBuilderowner - The administrator creating the nodenode - The object to insert
public MMObjectNode getNewNode(java.lang.String owner)
getNewNode in class MMObjectBuilderowner - The administrator creating the new node.
VirtualNode.public java.lang.String getGUIInicator(MMObjectNode node)
node - The node to display
public int getDBState(java.lang.String fieldName)
DBSTATE_VIRTUAL.
getDBState in class MMObjectBuilderDBSTATE_VIRTUAL
public java.lang.String getShortedText(java.lang.String fieldname,
int number)
getShortedText in class MMObjectBuilderfieldname - name of the fieldnumber - number of the object in the table
null
public byte[] getShortedByte(java.lang.String fieldname,
int number)
getShortedByte in class MMObjectBuilderfieldname - name of the fieldnumber - number of the object in the table
nullpublic void processSearchResults(java.util.List results)
MMObjectBuilder.
processSearchResults in class MMObjectBuilderresults - The (virtual) nodes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||