Java Doc for BasicTransaction.java in  » Database-ORM » MMBase » org » mmbase » bridge » implementation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » MMBase » org.mmbase.bridge.implementation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $


Field Summary
protected  BasicCloudparentCloud
    
protected  StringtransactionContext
     The id of the transaction for use with the transaction manager.
protected  StringtransactionName
     The name of the transaction as used by the user.

Constructor Summary
 BasicTransaction(String transactionName, BasicCloud cloud)
    

Method Summary
 voidadd(String currentObjectContext)
    
 intadd(BasicNode node)
    
public synchronized  voidcancel()
    
public synchronized  booleancommit()
    
 booleancontains(MMObjectNode node)
    
 voidcreateAlias(BasicNode node, String aliasName)
    
 voiddelete(String currentObjectContext, MMObjectNode node)
    
 voiddelete(String currentObjectContext)
    
protected  voidfinalize()
     If this Transaction is scheduled to be garbage collected, the transaction is canceled and cleaned up.
public  StringgetCloudName()
    
final protected  Collection<MMObjectNode>getCoreNodes()
    
public  NodeListgetNodes()
    
public  ObjectgetProperty(Object key)
    
public  booleanisCanceled()
    
public  booleanisCommitted()
    
 BasicNodemakeNode(MMObjectNode node, String nodeNumber)
    
 voidremove(String currentObjectContext)
    
 voidremove(MMObjectNode node)
    
public  StringtoString()
    

Field Detail
parentCloud
protected BasicCloud parentCloud(Code)



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.




Constructor Detail
BasicTransaction
BasicTransaction(String transactionName, BasicCloud cloud)(Code)




Method Detail
add
void add(String currentObjectContext)(Code)



add
int add(BasicNode node)(Code)



cancel
public synchronized void cancel()(Code)



commit
public synchronized boolean commit()(Code)



contains
boolean contains(MMObjectNode node)(Code)



createAlias
void createAlias(BasicNode node, String aliasName)(Code)



delete
void delete(String currentObjectContext, MMObjectNode node)(Code)



delete
void delete(String currentObjectContext)(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.



getCloudName
public String getCloudName()(Code)

See Also:   org.mmbase.bridge.Transaction.getCloudName



getCoreNodes
final protected Collection<MMObjectNode> getCoreNodes()(Code)

since:
   MMBase 1.9



getNodes
public NodeList getNodes()(Code)



getProperty
public Object getProperty(Object key)(Code)



isCanceled
public boolean isCanceled()(Code)



isCommitted
public boolean isCommitted()(Code)



makeNode
BasicNode makeNode(MMObjectNode node, String nodeNumber)(Code)



remove
void remove(String currentObjectContext)(Code)



remove
void remove(MMObjectNode node)(Code)



toString
public String toString()(Code)



Fields inherited from org.mmbase.bridge.implementation.BasicCloud
protected String account(Code)(Java Doc)
final protected long count(Code)(Java Doc)
protected String description(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected Map<String, BasicNodeManager> nodeManagerCache(Code)(Java Doc)
protected Map<String, Transaction> transactions(Code)(Java Doc)
protected UserContext userContext(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.