|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.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.
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, nodeCache, obj2type, 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). |
| Methods inherited from class org.mmbase.module.core.MMTable |
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 insertpublic 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 displaypublic int getDBState(java.lang.String fieldName)
DBSTATE_VIRTUAL.getDBState in class MMObjectBuilderthe - requested field's nameDBSTATE_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 tablenull
public byte[] getShortedByte(java.lang.String fieldname,
int number)
getShortedByte in class MMObjectBuilderfieldname - name of the fieldnumber - number of the object in the tablenull
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||