|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The Storage interface defines a storage device - a location where MMBase objects are kept, typically a database. The interface contains methods that can be used to query the storage, insert, update, or remove objects, or to change object definitions (adding fields, etc.).
| Field Summary |
| Fields inherited from interface org.mmbase.storage.search.SearchQueryHandler |
FEATURE_MAX_NUMBER, FEATURE_OFFSET, SUPPORT_NONE, SUPPORT_NORMAL, SUPPORT_OPTIMAL, SUPPORT_WEAK |
| Method Summary | |
boolean |
addField(MMObjectBuilder builder,
java.lang.String fieldname)
Deprecated. Adds a field to the storage of this builder. |
boolean |
changeField(MMObjectBuilder builder,
java.lang.String fieldname)
Deprecated. Changes a field to the storage of this builder. |
boolean |
commit(MMObjectNode node)
Deprecated. Commit this node to the specified builder. |
boolean |
commit(MMObjectNode node,
Transaction trans)
Deprecated. Commit this node to the specified builder within a transaction. |
boolean |
create(MMObjectBuilder builder)
Deprecated. Create a storage for the specified builder. |
boolean |
create(MMObjectBuilder builder,
Transaction trans)
Deprecated. Create a storage for the specified builder. |
boolean |
created(MMObjectBuilder builder)
Deprecated. Tells if a storage for the builder already exists |
int |
createKey()
Deprecated. Gives an unique number for a node to be inserted. |
int |
createKey(Transaction trans)
Deprecated. Gives an unique number for a node to be inserted. |
boolean |
createObjectStorage()
Deprecated. Create the object storage (the storage where to register all objects). |
boolean |
createObjectStorage(Transaction trans)
Deprecated. Create the object storage (the storage where to register all objects) within a transaction |
Transaction |
createTransaction()
Deprecated. Returns a newly created transaction object. |
boolean |
delete(MMObjectNode node)
Deprecated. Delete a node |
boolean |
delete(MMObjectNode node,
Transaction trans)
Deprecated. Delete a node within a transaction |
boolean |
drop(MMObjectBuilder builder)
Deprecated. Drops the storage of this builder. |
byte[] |
getBytes(MMObjectNode node,
java.lang.String fieldname)
Deprecated. Retrieve a large binary object (byte array) for a specified object field. |
MMObjectNode |
getNode(MMObjectBuilder builder,
int number)
Deprecated. Select a node from a specified builder |
MMObjectNode |
getNode(MMObjectBuilder builder,
int number,
Transaction trans)
Deprecated. Select a node from a specified builder |
int |
getNodeType(int number)
Deprecated. Returns the nodetype for a specified nodereference |
int |
getNodeType(int number,
Transaction trans)
Deprecated. Returns the nodetype for a specified nodereference |
java.lang.String |
getText(MMObjectNode node,
java.lang.String fieldname)
Deprecated. Retrieve a large text for a specified object field. |
int |
insert(MMObjectNode node)
Deprecated. This method inserts a new object, and registers the change. |
int |
insert(MMObjectNode node,
Transaction trans)
Deprecated. This method inserts a new object within a transaction, and registers the change. |
boolean |
isAllowedParentBuilder(MMObjectBuilder builder)
Deprecated. Returns whether this storage layer allows for builder to be a parent builder (that is, other builders can 'extend' this builder and its storage device). |
void |
registerParentBuilder(MMObjectBuilder parent,
MMObjectBuilder child)
Deprecated. Registers a builder as a parent builder (that is, other builders can 'extend' this builder and its storage device). |
boolean |
removeField(MMObjectBuilder builder,
java.lang.String fieldname)
Deprecated. Deletes a field from the storage of this builder. |
int |
size(MMObjectBuilder builder)
Deprecated. Return number of objects in a builder |
boolean |
supportsRollback()
Deprecated. Returns whether rollback on storage level is supported. |
boolean |
updateStorage(MMObjectBuilder builder)
Deprecated. Changes the storage of a builder to match its new configuration. |
| Methods inherited from interface org.mmbase.storage.search.SearchQueryHandler |
getNodes, getSupportLevel, getSupportLevel |
| Method Detail |
public boolean isAllowedParentBuilder(MMObjectBuilder builder)
builder - the builder to test
public void registerParentBuilder(MMObjectBuilder parent,
MMObjectBuilder child)
throws StorageException
parent - the parent builder to registerchild - the builder to register as the parent's child
StorageException - when the support layer does not allow extension of this builderpublic boolean supportsRollback()
public java.lang.String getText(MMObjectNode node,
java.lang.String fieldname)
node - the node to retrieve the text fromfieldname - the name of the field to retrieve
public byte[] getBytes(MMObjectNode node,
java.lang.String fieldname)
node - the node to retrieve the byte array fromfieldname - the name of the field to retrieve
public Transaction createTransaction()
throws StorageException
StorageException - if the transaction could not be createdpublic int createKey()
public int createKey(Transaction trans)
throws StorageException
trans - the transaction to use for obtaining the key
StorageException - if an error occurred during key generationpublic int insert(MMObjectNode node)
node - The node to insert
public int insert(MMObjectNode node,
Transaction trans)
throws StorageException
node - The node to inserttrans - the transaction to perform the insert in
StorageException - if an error occurred during insertpublic boolean commit(MMObjectNode node)
node - The node to commit
public boolean commit(MMObjectNode node,
Transaction trans)
throws StorageException
node - The node to committrans - the transaction to perform the insert in
StorageException - if an error occurred during commitpublic boolean delete(MMObjectNode node)
node - The node to delete
true if succesful
public boolean delete(MMObjectNode node,
Transaction trans)
throws StorageException
node - The node to deletetrans - the transaction to perform the insert in
true if succesful
StorageException - if an error occurred during delete
public MMObjectNode getNode(MMObjectBuilder builder,
int number)
builder - The builder to select fromnumber - the number of the node
public MMObjectNode getNode(MMObjectBuilder builder,
int number,
Transaction trans)
throws StorageException
builder - The builder to select fromnumber - the number of the nodetrans - the transaction to perform the insert in
StorageException - if an error occurred during the getpublic int getNodeType(int number)
number - the number of the node
public int getNodeType(int number,
Transaction trans)
throws StorageException
number - the number of the nodetrans - the transaction to perform the insert in
StorageException - if an error occurred during selectionpublic boolean create(MMObjectBuilder builder)
builder - the builder to create the storage for
public boolean create(MMObjectBuilder builder,
Transaction trans)
throws StorageException
builder - the builder to create the storage fortrans - the transaction to perform the create in
StorageException - if an error occurred during the creation fo the tablepublic boolean createObjectStorage()
public boolean createObjectStorage(Transaction trans)
throws StorageException
trans - the transaction to perform the create in
StorageException - if an error occurred during the caretion of the object storagepublic boolean created(MMObjectBuilder builder)
builder - the builder to check
public int size(MMObjectBuilder builder)
builder - the builder whose objects to count
public boolean drop(MMObjectBuilder builder)
builder - the builder whose storage to drop
public boolean addField(MMObjectBuilder builder,
java.lang.String fieldname)
builder - the builder whose storage to changefieldname - the name fo the field to add
public boolean removeField(MMObjectBuilder builder,
java.lang.String fieldname)
builder - the builder whose storage to changefieldname - the name fo the field to delete
public boolean changeField(MMObjectBuilder builder,
java.lang.String fieldname)
builder - the builder whose storage to changefieldname - the name fo the field to change
public boolean updateStorage(MMObjectBuilder builder)
builder - the builder whose storage to change
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||