Java Doc for TransactionMetaData.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » controller » requestmanager » 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 JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.controller.requestmanager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.controller.requestmanager.TransactionMetaData

TransactionMetaData
public class TransactionMetaData implements Serializable(Code)
This class carry transaction metadata including the transaction state.

Metadata include a transaction id, a login and a timeout. The state is used to track if a transaction is read-only or read-write and what kind of write accesses have been made in the transaction in case invalidations are needed at commit or rollback time.

The type is made serializable only for unlog messages that have to be sent between controllers.
author:
   Emmanuel Cecchet
version:
   2.2




Constructor Summary
public  TransactionMetaData(long transactionId, long timeout, String login, boolean isPersistentConnection, long persistentConnectionId)
     Creates a new TransactionMetaData.

Method Summary
public synchronized  voidaddAcquiredLock(DatabaseBackend backend, TransactionLogicalLock lock)
    
public synchronized  voidaddAcquiredLocks(DatabaseBackend backend, List locks)
    
final public  booleanaltersAggregateList()
     Returns the altersAggregateList value.
final public  booleanaltersDatabaseCatalog()
     Returns the altersDatabaseCatalog value.
final public  booleanaltersDatabaseSchema()
     Returns the altersDatabaseSchema value.
final public  booleanaltersMetadataCache()
     Returns the altersMetadataCache value.
final public  booleanaltersQueryResultCache()
     Returns the altersQueryResultCache value.
final public  booleanaltersSomething()
     Returns the altersSomething value.
final public  booleanaltersStoredProcedureList()
     Returns the altersStoredProcedureList value.
final public  booleanaltersUserDefinedTypes()
     Returns the altersUserDefinedTypes value.
final public  booleanaltersUsers()
     Returns the altersUsers value.
public  booleanequals(Object obj)
    
public  ListgetAcquiredLocks(DatabaseBackend backend)
     Return the list of locks acquired by the given backend for this transaction or null if no lock has been acquired so far.
final public  longgetLogId()
     Returns the logId value.
public  StringgetLogin()
     Returns the login.
final public  longgetPersistentConnectionId()
     Returns the persistent connection id (only meaningful is isPersistentConnection is true).
public  longgetTimeout()
     Returns the timeout.
public  longgetTimestamp()
     Gets creation's timestamp of this TransactionMetaData.
public  longgetTransactionId()
     Returns the transactionId.
public  inthashCode()
    
public  booleanisLockedByBackends()
     Returns true if at least one backend is holding locks for this transactions.
final public  booleanisPersistentConnection()
     Returns true if the transaction executes on a persistent connection (retrieve the value using getPersistentConnectionId).
final public  booleanisReadOnly()
     Returns true if the transaction is read-only (true by default).
public  ListremoveBackendLocks(DatabaseBackend backend)
     Remove and return the lock list belonging to a backend.
final public  voidsetAltersAggregateList(boolean altersAggregateList)
     Sets the altersAggregateList value.
final public  voidsetAltersDatabaseCatalog(boolean altersDatabaseCatalog)
     Sets the altersDatabaseCatalog value.
final public  voidsetAltersDatabaseSchema(boolean altersDatabaseSchema)
     Sets the altersDatabaseSchema value.
final public  voidsetAltersMetadataCache(boolean altersMetadataCache)
     Sets the altersMetadataCache value.
final public  voidsetAltersQueryResultCache(boolean altersQueryResultCache)
     Sets the altersQueryResultCache value.
final public  voidsetAltersSomething(boolean altersSomething)
     Sets the altersSomething value.
final public  voidsetAltersStoredProcedureList(boolean altersStoredProcedureList)
     Sets the altersStoredProcedureList value.
final public  voidsetAltersUserDefinedTypes(boolean altersUserDefinedTypes)
     Sets the altersUserDefinedTypes value.
final public  voidsetAltersUsers(boolean altersUsers)
     Sets the altersUsers value.
final public  voidsetLogId(long logId)
     Sets the logId value.
public  voidsetLogin(String login)
     Sets the login.
final public  voidsetReadOnly(boolean isReadOnly)
     Sets the isReadOnly value.
public  voidsetTimeout(long timeout)
     Sets the timeout.


Constructor Detail
TransactionMetaData
public TransactionMetaData(long transactionId, long timeout, String login, boolean isPersistentConnection, long persistentConnectionId)(Code)
Creates a new TransactionMetaData.
Parameters:
  transactionId - the transaction identifier.
Parameters:
  timeout - the transaction timeout in seconds.
Parameters:
  login - the user login.
Parameters:
  isPersistentConnection - true if the transaction is started on apersistent connection
Parameters:
  persistentConnectionId - persistent connection id if the transactionmust be started on a persistent connection




Method Detail
addAcquiredLock
public synchronized void addAcquiredLock(DatabaseBackend backend, TransactionLogicalLock lock)(Code)
Add a lock to the list of locks acquired by the given backend on this transaction
Parameters:
  backend - backend acquiring the lock
Parameters:
  lock - the lock that has been acquired



addAcquiredLocks
public synchronized void addAcquiredLocks(DatabaseBackend backend, List locks)(Code)
Add locks to the list of locks acquired by the given backend on this transaction
Parameters:
  backend - backend acquiring the locks
Parameters:
  locks - the locks that have been acquired



altersAggregateList
final public boolean altersAggregateList()(Code)
Returns the altersAggregateList value. Returns the altersAggregateList.



altersDatabaseCatalog
final public boolean altersDatabaseCatalog()(Code)
Returns the altersDatabaseCatalog value. Returns the altersDatabaseCatalog.



altersDatabaseSchema
final public boolean altersDatabaseSchema()(Code)
Returns the altersDatabaseSchema value. Returns the altersDatabaseSchema.



altersMetadataCache
final public boolean altersMetadataCache()(Code)
Returns the altersMetadataCache value. Returns the altersMetadataCache.



altersQueryResultCache
final public boolean altersQueryResultCache()(Code)
Returns the altersQueryResultCache value. Returns the altersQueryResultCache.



altersSomething
final public boolean altersSomething()(Code)
Returns the altersSomething value. Returns the altersSomething.



altersStoredProcedureList
final public boolean altersStoredProcedureList()(Code)
Returns the altersStoredProcedureList value. Returns the altersStoredProcedureList.



altersUserDefinedTypes
final public boolean altersUserDefinedTypes()(Code)
Returns the altersUserDefinedTypes value. Returns the altersUserDefinedTypes.



altersUsers
final public boolean altersUsers()(Code)
Returns the altersUsers value. Returns the altersUsers.



equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getAcquiredLocks
public List getAcquiredLocks(DatabaseBackend backend)(Code)
Return the list of locks acquired by the given backend for this transaction or null if no lock has been acquired so far.
Parameters:
  backend - backend for which we want to retrieve to set of locks the list of acquired locks for the given backend



getLogId
final public long getLogId()(Code)
Returns the logId value. Returns the logId.



getLogin
public String getLogin()(Code)
Returns the login. String



getPersistentConnectionId
final public long getPersistentConnectionId()(Code)
Returns the persistent connection id (only meaningful is isPersistentConnection is true). Returns the persistent connection id.
See Also:   TransactionMetaData.isPersistentConnection()



getTimeout
public long getTimeout()(Code)
Returns the timeout. long



getTimestamp
public long getTimestamp()(Code)
Gets creation's timestamp of this TransactionMetaData. the timestamp corresponding to the creation of this TransactionMetaData.



getTransactionId
public long getTransactionId()(Code)
Returns the transactionId. int



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isLockedByBackends
public boolean isLockedByBackends()(Code)
Returns true if at least one backend is holding locks for this transactions. true if a backend has locks for the transactions



isPersistentConnection
final public boolean isPersistentConnection()(Code)
Returns true if the transaction executes on a persistent connection (retrieve the value using getPersistentConnectionId). Returns true if transaction uses a persistent connection.
See Also:   TransactionMetaData.getPersistentConnectionId()



isReadOnly
final public boolean isReadOnly()(Code)
Returns true if the transaction is read-only (true by default). Returns the isReadOnly.



removeBackendLocks
public List removeBackendLocks(DatabaseBackend backend)(Code)
Remove and return the lock list belonging to a backend.
Parameters:
  backend - backend which locks should be removed the lock list or null if no lock were found for this backend



setAltersAggregateList
final public void setAltersAggregateList(boolean altersAggregateList)(Code)
Sets the altersAggregateList value.
Parameters:
  altersAggregateList - The altersAggregateList to set.



setAltersDatabaseCatalog
final public void setAltersDatabaseCatalog(boolean altersDatabaseCatalog)(Code)
Sets the altersDatabaseCatalog value.
Parameters:
  altersDatabaseCatalog - The altersDatabaseCatalog to set.



setAltersDatabaseSchema
final public void setAltersDatabaseSchema(boolean altersDatabaseSchema)(Code)
Sets the altersDatabaseSchema value.
Parameters:
  altersDatabaseSchema - The altersDatabaseSchema to set.



setAltersMetadataCache
final public void setAltersMetadataCache(boolean altersMetadataCache)(Code)
Sets the altersMetadataCache value.
Parameters:
  altersMetadataCache - The altersMetadataCache to set.



setAltersQueryResultCache
final public void setAltersQueryResultCache(boolean altersQueryResultCache)(Code)
Sets the altersQueryResultCache value.
Parameters:
  altersQueryResultCache - The altersQueryResultCache to set.



setAltersSomething
final public void setAltersSomething(boolean altersSomething)(Code)
Sets the altersSomething value.
Parameters:
  altersSomething - The altersSomething to set.



setAltersStoredProcedureList
final public void setAltersStoredProcedureList(boolean altersStoredProcedureList)(Code)
Sets the altersStoredProcedureList value.
Parameters:
  altersStoredProcedureList - The altersStoredProcedureList to set.



setAltersUserDefinedTypes
final public void setAltersUserDefinedTypes(boolean altersUserDefinedTypes)(Code)
Sets the altersUserDefinedTypes value.
Parameters:
  altersUserDefinedTypes - The altersUserDefinedTypes to set.



setAltersUsers
final public void setAltersUsers(boolean altersUsers)(Code)
Sets the altersUsers value.
Parameters:
  altersUsers - The altersUsers to set.



setLogId
final public void setLogId(long logId)(Code)
Sets the logId value.
Parameters:
  logId - The logId to set.



setLogin
public void setLogin(String login)(Code)
Sets the login.
Parameters:
  login - the login to set.



setReadOnly
final public void setReadOnly(boolean isReadOnly)(Code)
Sets the isReadOnly value.
Parameters:
  isReadOnly - The isReadOnly to set.



setTimeout
public void setTimeout(long timeout)(Code)
Sets the timeout.
Parameters:
  timeout - the timeout to set.



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.