Java Doc for TransactionFactory.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » store » raw » xact » 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 DBMS » db derby 10.2 » org.apache.derby.iapi.store.raw.xact 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.store.raw.xact.TransactionFactory

All known Subclasses:   org.apache.derby.impl.store.raw.xact.XactFactory,
TransactionFactory
public interface TransactionFactory extends Corruptable(Code)
This module is intended to be used only within the RawStore. RawStore functionality is accessed only through the RawStoreFactory interface. The transaction manager is responsible for:
  • Generating unique transaction identifiers.
  • Keeping a list of all open transactions within the raw store.

See Also:   RawStoreFactory
See Also:   Transaction


Field Summary
public static  StringMODULE
    


Method Summary
public  booleanblockBackupBlockingOperations(boolean wait)
     Checks if there any backup blocking operations are in progress and prevents new ones from starting until the backup is finished.
public  voidcreateFinished()
    
public  booleanfindTransaction(TransactionId id, RawTransaction tran)
     Find a transaction using a transactionId and make the passed in transaction assume the identity and properties of that transaction.
public  RawTransactionfindUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName)
     Find a user transaction within the given raw store and the given contextMgr.
public  LogInstantfirstUpdateInstant()
     The first log instant that belongs to a transaction that is still active in the raw store.
public  LockFactorygetLockFactory()
     Get the LockFactory to use with this store.
public  TransactionInfo[]getTransactionInfo()
    
public  FormatablegetTransactionTable()
     Return the transaction table so it can get logged with the checkpoint log record.
public  ObjectgetXAResourceManager()
    
public  voidhandlePreparedXacts(RawStoreFactory rsf)
     Run through all prepared transactions known to this factory and restore their state such that they remain after recovery, and can be found and handled by a XA transaction manager.
public  booleanhasPreparedXact()
     Check if there are any prepared transanctions.
public  booleannoActiveUpdateTransaction()
    
public  voidresetTranId()
    
public  voidrollbackAllTransactions(RawTransaction recoveryTransaction, RawStoreFactory rsf)
     Rollback and close all transactions known to this factory using a passed in transaction.
public  voidsetRawStoreFactory(RawStoreFactory rsf)
    
public  RawTransactionstartGlobalTransaction(RawStoreFactory rsf, ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id)
     Start a new transaction within the given raw store.
public  RawTransactionstartInternalTransaction(RawStoreFactory rsf, ContextManager contextMgr)
     Start a new internal transaction within the given raw store.
public  RawTransactionstartNestedReadOnlyUserTransaction(RawStoreFactory rsf, Object compatibilitySpace, ContextManager contextMgr, String transName)
     Start a new read only transaction within the given raw store.
public  RawTransactionstartNestedTopTransaction(RawStoreFactory rsf, ContextManager contextMgr)
     Start a new nested top transaction within the given raw store.
public  RawTransactionstartNestedUpdateUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName)
     Start a new update transaction within the given raw store.
public  RawTransactionstartTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName)
     Start a new transaction within the given raw store.
public  booleansubmitPostCommitWork(Serviceable work)
     Submit a post commit work to the post commit daemon.
public  voidunblockBackupBlockingOperations()
     Backup completed.
public  voiduseTransactionTable(Formatable transactionTable)
     Use this transaction table, which is gotten from a checkpoint operation.

Field Detail
MODULE
public static String MODULE(Code)





Method Detail
blockBackupBlockingOperations
public boolean blockBackupBlockingOperations(boolean wait) throws StandardException(Code)
Checks if there any backup blocking operations are in progress and prevents new ones from starting until the backup is finished.
Parameters:
  wait - if true, waits for the current backup blocking operations in progress to finish. true if there are no backup blocking operations in progress.false otherwise.
exception:
  StandardException - if interrupted or a runtime exception occurs.



createFinished
public void createFinished() throws StandardException(Code)
Database creation finished
exception:
  StandardException - Standard cloudscape exception policy.



findTransaction
public boolean findTransaction(TransactionId id, RawTransaction tran)(Code)
Find a transaction using a transactionId and make the passed in transaction assume the identity and properties of that transaction. Used in recovery only.



findUserTransaction
public RawTransaction findUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName) throws StandardException(Code)
Find a user transaction within the given raw store and the given contextMgr. If no user transaction exist, then start one with name transName. This method will push a transaction context as described in RawStoreFactory.startTransaction
See Also:   RawStoreFactory.findUserTransaction
See Also:   RawStoreFactory.startTransaction
exception:
  StandardException - Standard Cloudscape error policy.



firstUpdateInstant
public LogInstant firstUpdateInstant()(Code)
The first log instant that belongs to a transaction that is still active in the raw store. This is the first log record of the longest running transaction at this moment.



getLockFactory
public LockFactory getLockFactory()(Code)
Get the LockFactory to use with this store.



getTransactionInfo
public TransactionInfo[] getTransactionInfo()(Code)

See Also:   org.apache.derby.iapi.store.access.AccessFactory.getTransactionInfo



getTransactionTable
public Formatable getTransactionTable()(Code)
Return the transaction table so it can get logged with the checkpoint log record.



getXAResourceManager
public Object getXAResourceManager() throws StandardException(Code)



handlePreparedXacts
public void handlePreparedXacts(RawStoreFactory rsf) throws StandardException(Code)
Run through all prepared transactions known to this factory and restore their state such that they remain after recovery, and can be found and handled by a XA transaction manager. This includes creating a context manager for each, pushing a xact context, and reclaiming update locks on all data changed by the transaction. Used only in recovery.
exception:
  StandardException - Cloudscape Standard Error policy



hasPreparedXact
public boolean hasPreparedXact()(Code)
Check if there are any prepared transanctions.

MT - unsafe, called during boot, which is single threaded. true if prepared transactions exist,false otherwise.




noActiveUpdateTransaction
public boolean noActiveUpdateTransaction()(Code)
Returns true if the transaction factory has no active updating transaction



resetTranId
public void resetTranId() throws StandardException(Code)
Reset any resettable transaction Id
exception:
  StandardException - Standard Cloudscape error policy.



rollbackAllTransactions
public void rollbackAllTransactions(RawTransaction recoveryTransaction, RawStoreFactory rsf) throws StandardException(Code)
Rollback and close all transactions known to this factory using a passed in transaction. Used only in recovery.
Parameters:
  recoveryTransaction - the transaction used to rollback
exception:
  StandardException - Cloudscape Standard Error policy



setRawStoreFactory
public void setRawStoreFactory(RawStoreFactory rsf) throws StandardException(Code)
make Transaction factory aware of which raw store factory it belongs to



startGlobalTransaction
public RawTransaction startGlobalTransaction(RawStoreFactory rsf, ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id) throws StandardException(Code)
Start a new transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startTransaction
Parameters:
  format_id - the format id part of the Xid - ie. Xid.getFormatId().
Parameters:
  global_id - the global transaction identifier part of XID - ie.Xid.getGlobalTransactionId().
Parameters:
  branch_id - The branch qualifier of the Xid - ie.Xid.getBranchQaulifier()
Parameters:
  contextMgr - is the context manager to use. It must be the currentcontext manager.
See Also:   RawStoreFactory.startGlobalTransaction
exception:
  StandardException - Standard Cloudscape error policy.



startInternalTransaction
public RawTransaction startInternalTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException(Code)
Start a new internal transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startInternalTransaction
See Also:   RawStoreFactory.startTransaction
exception:
  StandardException - Standard Cloudscape error policy.



startNestedReadOnlyUserTransaction
public RawTransaction startNestedReadOnlyUserTransaction(RawStoreFactory rsf, Object compatibilitySpace, ContextManager contextMgr, String transName) throws StandardException(Code)
Start a new read only transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startNestedTransaction
Parameters:
  compatibilitySpace - compatibility space to use for locks.
Parameters:
  contextMgr - is the context manager to use. It must be the current context manager.
Parameters:
  transName - is the transaction name. It will be displayed in the transactiontable VTI.
See Also:   RawStoreFactory.startNestedReadOnlyUserTransaction
exception:
  StandardException - Standard Cloudscape error policy.



startNestedTopTransaction
public RawTransaction startNestedTopTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException(Code)
Start a new nested top transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startNestedTopTransaction
See Also:   RawStoreFactory.startTransaction(ContextManagerString)
exception:
  StandardException - Standard Cloudscape error policy.



startNestedUpdateUserTransaction
public RawTransaction startNestedUpdateUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName) throws StandardException(Code)
Start a new update transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startNestedTransaction
Parameters:
  contextMgr - is the context manager to use. It must be the current context manager.
Parameters:
  transName - is the transaction name. It will be displayed in the transactiontable VTI.
See Also:   RawStoreFactory.startNestedUpdateUserTransaction
exception:
  StandardException - Standard Cloudscape error policy.



startTransaction
public RawTransaction startTransaction(RawStoreFactory rsf, ContextManager contextMgr, String transName) throws StandardException(Code)
Start a new transaction within the given raw store. This method will push a transaction context as described in RawStoreFactory.startTransaction
Parameters:
  contextMgr - is the context manager to use. It must be the currentcontext manager.
Parameters:
  transName - is the transaction name. It will be displayed in thetransactiontable VTI.
See Also:   RawStoreFactory.startTransaction
exception:
  StandardException - Standard Cloudscape error policy.



submitPostCommitWork
public boolean submitPostCommitWork(Serviceable work)(Code)
Submit a post commit work to the post commit daemon. The work is always added to the deamon, regardless of the state it returns. true if the daemon indicates it is being overloaded,false it's happy. must be MT-safe



unblockBackupBlockingOperations
public void unblockBackupBlockingOperations()(Code)
Backup completed. Allow backup blocking operations.



useTransactionTable
public void useTransactionTable(Formatable transactionTable) throws StandardException(Code)
Use this transaction table, which is gotten from a checkpoint operation. Use ONLY during recovery.
exception:
  StandardException - Standard cloudscape exception policy.



w___w_w__.__j___a__v__a__2_s___.c__om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.