| java.lang.Object org.mmbase.bridge.implementation.BasicCloud org.mmbase.bridge.implementation.BasicTransaction
BasicTransaction | public class BasicTransaction extends BasicCloud implements Transaction(Code) | | The basic implementation for a Transaction cLoud.
A Transaction cloud is a cloud which buffers allc hanegs made to nodes -
which means that chanegs are committed only if you commit the transaction itself.
This mechanism allows you to rollback changes if something goes wrong.
author: Pierre van Rooden version: $Id: BasicTransaction.java,v 1.36 2008/01/09 10:56:36 michiel Exp $ |
transactionContext | protected String transactionContext(Code) | | The id of the transaction for use with the transaction manager.
|
transactionName | protected String transactionName(Code) | | The name of the transaction as used by the user.
|
cancel | public synchronized void cancel()(Code) | | |
commit | public synchronized boolean commit()(Code) | | |
finalize | protected void finalize()(Code) | | If this Transaction is scheduled to be garbage collected, the transaction is canceled and cleaned up.
Unless it has already been committed/canceled, ofcourse, and
unless the parentcloud of a transaction is a transaction itself.
In that case, the parent transaction should cancel!
This means that a transaction is always cleared - if it 'times out', or is not properly removed, it will
eventually be removed from the MMBase cache.
|
isCanceled | public boolean isCanceled()(Code) | | |
isCommitted | public boolean isCommitted()(Code) | | |
Methods inherited from org.mmbase.bridge.implementation.BasicCloud | protected void _readObject(ObjectInputStream in) throws IOException, ClassNotFoundException(Code)(Java Doc) protected void _writeObject(ObjectOutputStream out) throws IOException(Code)(Java Doc) void add(String currentObjectContext)(Code)(Java Doc) int add(BasicNode node)(Code)(Java Doc) boolean check(Operation operation, int nodeID)(Code)(Java Doc) boolean check(Operation operation, int nodeID, int srcNodeID, int dstNodeID)(Code)(Java Doc) protected void checkAlias(String aliasName)(Code)(Java Doc) void checkNodes(BasicNodeList resultNodeList, Query query)(Code)(Java Doc) public int compareTo(Cloud o)(Code)(Java Doc) boolean contains(MMObjectNode node)(Code)(Java Doc) public Query createAggregatedQuery()(Code)(Java Doc) void createAlias(BasicNode node, String aliasName)(Code)(Java Doc) public NodeList createNodeList()(Code)(Java Doc) public NodeManagerList createNodeManagerList()(Code)(Java Doc) public NodeQuery createNodeQuery()(Code)(Java Doc) public Query createQuery()(Code)(Java Doc) public RelationList createRelationList()(Code)(Java Doc) public RelationManagerList createRelationManagerList()(Code)(Java Doc) public Transaction createTransaction()(Code)(Java Doc) public Transaction createTransaction(String name) throws AlreadyExistsException(Code)(Java Doc) public Transaction createTransaction(String name, boolean overwrite) throws AlreadyExistsException(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) String getAccount()(Code)(Java Doc) BasicNodeManager getBasicNodeManager(MMObjectBuilder bul) throws NotFoundException(Code)(Java Doc) BasicNodeManager getBasicNodeManager(String nodeManagerName) throws NotFoundException(Code)(Java Doc) public int getByteSize()(Code)(Java Doc) public int getByteSize(SizeOf sizeof)(Code)(Java Doc) public CloudContext getCloudContext()(Code)(Java Doc) protected List<MMObjectNode> getClusterNodes(Query query)(Code)(Java Doc) public String getDescription()(Code)(Java Doc) public Function getFunction(String setName, String functionName)(Code)(Java Doc) public Collection<Function<?>> getFunctions(String setName)(Code)(Java Doc) protected NodeList getLastStepList(Query query)(Code)(Java Doc) public NodeList getList(Query query)(Code)(Java Doc) public NodeList getList(String startNodes, String nodePath, String fields, String constraints, String orderby, String directions, String searchDir, boolean distinct)(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Node getNode(String nodeNumber) throws NotFoundException(Code)(Java Doc) final public Node getNode(int nodeNumber) throws NotFoundException(Code)(Java Doc) final public Node getNodeByAlias(String aliasname) throws NotFoundException(Code)(Java Doc) final public NodeManager getNodeManager(String nodeManagerName) throws NotFoundException(Code)(Java Doc) public NodeManager getNodeManager(int nodeManagerId) throws NotFoundException(Code)(Java Doc) public NodeManagerList getNodeManagers()(Code)(Java Doc) public StringList getPossibleContexts()(Code)(Java Doc) public Map<Object, Object> getProperties()(Code)(Java Doc) public Object getProperty(Object key)(Code)(Java Doc) final public Relation getRelation(int nodeNumber) throws NotFoundException(Code)(Java Doc) final public Relation getRelation(String nodeNumber) throws NotFoundException(Code)(Java Doc) RelationManager getRelationManager(int sourceManagerId, int destinationManagerId, int roleId)(Code)(Java Doc) public RelationManager getRelationManager(int number) throws NotFoundException(Code)(Java Doc) public RelationManager getRelationManager(String sourceManagerName, String destinationManagerName, String roleName) throws NotFoundException(Code)(Java Doc) public RelationManager getRelationManager(NodeManager source, NodeManager destination, String roleName) throws NotFoundException(Code)(Java Doc) public RelationManager getRelationManager(String roleName) throws NotFoundException(Code)(Java Doc) public RelationManagerList getRelationManagers()(Code)(Java Doc) public RelationManagerList getRelationManagers(String sourceManagerName, String destinationManagerName, String roleName) throws NotFoundException(Code)(Java Doc) public RelationManagerList getRelationManagers(NodeManager sourceManager, NodeManager destinationManager, String roleName) throws NotFoundException(Code)(Java Doc) protected NodeList getResultNodeList(Query query)(Code)(Java Doc) protected NodeList getSecureList(Query query)(Code)(Java Doc) public Transaction getTransaction(String name)(Code)(Java Doc) public UserContext getUser()(Code)(Java Doc) public boolean hasNode(int nodeNumber)(Code)(Java Doc) public boolean hasNode(String nodeNumber)(Code)(Java Doc) public boolean hasNodeManager(String nodeManagerName)(Code)(Java Doc) public boolean hasRelation(int nodeNumber)(Code)(Java Doc) public boolean hasRelation(String nodeNumber)(Code)(Java Doc) public boolean hasRelationManager(String sourceManagerName, String destinationManagerName, String roleName)(Code)(Java Doc) public boolean hasRelationManager(NodeManager source, NodeManager destination, String roleName)(Code)(Java Doc) public boolean hasRelationManager(String roleName)(Code)(Java Doc) public boolean hasRole(String roleName)(Code)(Java Doc) static boolean isTemporaryId(int id)(Code)(Java Doc) BasicNode makeNode(MMObjectNode node, String nodeNumber)(Code)(Java Doc) public boolean may(org.mmbase.security.Action action, org.mmbase.util.functions.Parameters parameters)(Code)(Java Doc) public boolean mayRead(int nodeNumber)(Code)(Java Doc) public boolean mayRead(String nodeNumber)(Code)(Java Doc) void remove(String currentObjectContext)(Code)(Java Doc) void remove(MMObjectNode node)(Code)(Java Doc) public void setLocale(Locale l)(Code)(Java Doc) public void setProperty(Object key, Object value)(Code)(Java Doc) boolean setSecurityConstraint(Query query)(Code)(Java Doc) public String toString()(Code)(Java Doc) static synchronized int uniqueId()(Code)(Java Doc) void verify(Operation operation, int nodeID)(Code)(Java Doc) void verify(Operation operation, int nodeID, int srcNodeID, int dstNodeID)(Code)(Java Doc)
|
|
|