| java.lang.Object helma.objectmodel.db.WrappedNodeManager
WrappedNodeManager | final public class WrappedNodeManager (Code) | | A wrapper around NodeManager that catches most Exceptions, or rethrows them as RuntimeExceptions.
The idea behind this is that we don't care a lot about Exception classes, since Hop programming is done
in JavaScript which doesn't know about them (except for the exception message).
|
WrappedNodeManager | public WrappedNodeManager(NodeManager nmgr)(Code) | | Creates a new WrappedNodeManager object.
Parameters: nmgr - ... |
countNodes | public int countNodes(Node home, Relation rel)(Code) | | Count the nodes contained in the given Node's collection
specified by the given Relation.
Parameters: home - Parameters: rel - |
deleteNode | public void deleteNode(Node node)(Code) | | Delete a node from the database
Parameters: node - |
evictKey | public void evictKey(Key key)(Code) | | Evict the object with the given key from the object cache
Parameters: key - |
evictNode | public void evictNode(Node node)(Code) | | Evict a node from the object cache
Parameters: node - |
evictNodeByKey | public void evictNodeByKey(Key key)(Code) | | Completely evict the object with the given key from the object cache
Parameters: key - |
generateID | public String generateID(DbMapping map)(Code) | | Generate a new id for an object specified by the DbMapping
Parameters: map - the DbMapping to generate an id for a new unique id |
getCacheEntries | public Object[] getCacheEntries()(Code) | | Get an array of all objects in the object cache
|
getDbMapping | public DbMapping getDbMapping(String name)(Code) | | Get the DbMapping corresponding to a type name
Parameters: name - a type name the corresponding DbMapping |
getNode | public Node getNode(String id, DbMapping dbmap)(Code) | | Get a node given its id and DbMapping
Parameters: id - Parameters: dbmap - |
getNode | public Node getNode(Key key)(Code) | | Get a node given its key
Parameters: key - |
getNode | public Node getNode(Node home, String id, Relation rel)(Code) | | Get the node specified by the given id and Relation.
Parameters: home - Parameters: id - Parameters: rel - |
getNodeIDs | public SubnodeList getNodeIDs(Node home, Relation rel)(Code) | | Get a list of IDs of nodes contained in the given Node's
collection specified by the given Relation.
Parameters: home - Parameters: rel - |
getNodes | public SubnodeList getNodes(Node home, Relation rel)(Code) | | Get the list of nodes contained in the collection of the given
Node specified by the given Relation.
Parameters: home - Parameters: rel - |
getPropertyNames | public Vector getPropertyNames(Node home, Relation rel)(Code) | | Get a list of property names from the given node.
TODO: this retrieves access names of child nodes, not property names
Parameters: home - Parameters: rel - |
getRootNode | public Node getRootNode()(Code) | | Gets the application's root node.
|
isRootNode | public boolean isRootNode(Node node)(Code) | | Checks if the given node is the application's root node.
|
logEvent | public void logEvent(String msg)(Code) | | Write an entry to the application's event log
Parameters: msg - event message |
registerNode | public void registerNode(Node node)(Code) | | Register a node with the object cache using its primary key.
Parameters: node - |
registerNode | public void registerNode(Node node, Key key)(Code) | | Register a node with the object cache using the given key.
Parameters: node - |
|
|