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


org.apache.derby.iapi.store.access.conglomerate.TransactionManager

All known Subclasses:   org.apache.derby.impl.store.access.RAMTransaction,
TransactionManager
public interface TransactionManager extends TransactionController(Code)
The TransactionManager interface provides methods on the transaction needed by an access method implementer, but should not be visible to clients of a TransactionController.


See Also:   TransactionController



Field Summary
final public static  intLOCK_COMMIT_DURATION
     hold lock until end of transaction.
final public static  intLOCK_INSTANT_DURATION
     release lock immediately after getting lock.
final public static  intLOCK_MANUAL_DURATION
     Allow lock to be released manually prior to end transaction.
final static  intMODE_NONE
     Constant used for the lock_level argument to openConglomerate() and openScan() calls.


Method Summary
public  voidaddPostCommitWork(Serviceable work)
     Add to the list of post commit work.

Add to the list of post commit work that may be processed after this transaction commits.

public  voidcloseMe(ScanManager scan)
     The ScanManager.close() method has been called on "scan".

Take whatever cleanup action is appropriate to a closed scan.

public  voidcloseMe(ConglomerateController conglom_control)
     The ConglomerateController.close() method has been called on "conglom_control".

Take whatever cleanup action is appropriate to a closed conglomerateController.

public  voidcloseMe(SortController sort_control)
     The SortController.close() method has been called on "sort_control".

Take whatever cleanup action is appropriate to a closed sortController.

public  AccessFactorygetAccessManager()
     Get reference to access factory which started this transaction.
public  TransactionManagergetInternalTransaction()
     Get an Internal transaction.

Start an internal transaction.

public  TransactiongetRawStoreXact()
     Get the Transaction from the Transaction manager.

Access methods often need direct access to the "Transaction" - ie.

public  voidsaveScanPositions(Conglomerate conglom, Page page)
     Do work necessary to maintain the current position in all the scans.

Field Detail
LOCK_COMMIT_DURATION
final public static int LOCK_COMMIT_DURATION(Code)
hold lock until end of transaction.



LOCK_INSTANT_DURATION
final public static int LOCK_INSTANT_DURATION(Code)
release lock immediately after getting lock.



LOCK_MANUAL_DURATION
final public static int LOCK_MANUAL_DURATION(Code)
Allow lock to be released manually prior to end transaction.



MODE_NONE
final static int MODE_NONE(Code)
Constant used for the lock_level argument to openConglomerate() and openScan() calls. Pass in MODE_NONE if you want no table or row locks. This is currently only supported from within access.





Method Detail
addPostCommitWork
public void addPostCommitWork(Serviceable work)(Code)
Add to the list of post commit work.

Add to the list of post commit work that may be processed after this transaction commits. If this transaction aborts, then the post commit work list will be thrown away. No post commit work will be taken out on a rollback to save point.

This routine simply delegates the work to the Rawstore transaction.
Parameters:
  work - The post commit work to do.




closeMe
public void closeMe(ScanManager scan)(Code)
The ScanManager.close() method has been called on "scan".

Take whatever cleanup action is appropriate to a closed scan. It is likely this routine will remove references to the scan object that it was maintaining for cleanup purposes.




closeMe
public void closeMe(ConglomerateController conglom_control)(Code)
The ConglomerateController.close() method has been called on "conglom_control".

Take whatever cleanup action is appropriate to a closed conglomerateController. It is likely this routine will remove references to the ConglomerateController object that it was maintaining for cleanup purposes.




closeMe
public void closeMe(SortController sort_control)(Code)
The SortController.close() method has been called on "sort_control".

Take whatever cleanup action is appropriate to a closed sortController. It is likely this routine will remove references to the SortController object that it was maintaining for cleanup purposes.




getAccessManager
public AccessFactory getAccessManager()(Code)
Get reference to access factory which started this transaction.

The AccessFactory which started this transaction.




getInternalTransaction
public TransactionManager getInternalTransaction() throws StandardException(Code)
Get an Internal transaction.

Start an internal transaction. An internal transaction is a completely separate transaction from the current user transaction. All work done in the internal transaction must be physical (ie. it can be undone physically by the rawstore at the page level, rather than logically undone like btree insert/delete operations). The rawstore guarantee's that in the case of a system failure all open Internal transactions are first undone in reverse order, and then other transactions are undone in reverse order.

Internal transactions are meant to implement operations which, if interupted before completion will cause logical operations like tree searches to fail. This special undo order insures that the state of the tree is restored to a consistent state before any logical undo operation which may need to search the tree is performed.

The new internal transaction.
exception:
  StandardException - Standard exception policy.




getRawStoreXact
public Transaction getRawStoreXact() throws StandardException(Code)
Get the Transaction from the Transaction manager.

Access methods often need direct access to the "Transaction" - ie. the raw store transaction, so give access to it. The raw store transaction.
exception:
  StandardException - Standard exception policy.




saveScanPositions
public void saveScanPositions(Conglomerate conglom, Page page) throws StandardException(Code)
Do work necessary to maintain the current position in all the scans.

The latched page in the conglomerate "congomid" is changing, do whatever is necessary to maintain the current position of all the scans open in this transaction.

For some conglomerates this may be a no-op.


Parameters:
  conglom - Conglomerate object of the conglomerate being changed.
Parameters:
  page - Page in the conglomerate being changed.
exception:
  StandardException - Standard exception policy.




ww__w___._j_a___va_2__s__._co__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.