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


org.apache.derby.iapi.store.access.AccessFactory

All known Subclasses:   org.apache.derby.impl.store.access.RAMAccessManager,
AccessFactory
public interface AccessFactory (Code)
Module interface for an access manager. An access manager provides transactional access via access methods to data in a single storage manager.

An AccessFactory is typically obtained from the Monitor:

 // Get the current transaction controller.
 AccessFactory af;
 af = (AccessFactory) Monitor.findServiceModule(this, AccessFactory.MODULE);
 


Field Summary
final public static  StringMODULE
     Used to identify this interface when finding it with the Monitor.


Method Summary
public  voidbackup(String backupDir, boolean wait)
     Backup the database to backupDir.
public  voidbackupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait)
     Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup.
Parameters:
  backupDir - the directory name where the database backup should go.
public  voidcheckpoint()
     Checkpoints the database, that is, flushes all dirty data to disk.
public  voidcreateFinished()
     Database creation has finished.
public  voiddisableLogArchiveMode(boolean deleteOnlineArchivedLogFiles)
     disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery.
 MethodFactoryfindMethodFactoryByFormat(UUID format)
     Find an access method that implements a format type.
 MethodFactoryfindMethodFactoryByImpl(String impltype)
     Find an access method that implements an implementation type.
public  voidfreeze()
     Freeze the database temporarily so a backup can be taken.
 TransactionControllergetAndNameTransaction(ContextManager cm, String transName)
     Get a transaction.
public  LockFactorygetLockFactory()
     Get the LockFactory to use with this store.
 TransactionControllergetTransaction(ContextManager cm)
     Get a transaction controller with which to manipulate data within the access manager.
public  TransactionInfo[]getTransactionInfo()
     Return a snap shot of all transactions in the db.
public  ObjectgetXAResourceManager()
     Return the XAResourceManager associated with this AccessFactory.
public  booleanisReadOnly()
     Is the store read-only.
 voidregisterAccessMethod(MethodFactory factory)
     Register an access method that this access manager can use.
 ObjectstartXATransaction(ContextManager cm, int format_id, byte[] global_id, byte[] branch_id)
     Start a global transaction.

Get a transaction controller with which to manipulate data within the access manager.

public  voidunfreeze()
     Unfreeze the database after a backup has been taken.
public  voidwaitForPostCommitToFinishWork()
    

Field Detail
MODULE
final public static String MODULE(Code)
Used to identify this interface when finding it with the Monitor.





Method Detail
backup
public void backup(String backupDir, boolean wait) throws StandardException(Code)
Backup the database to backupDir.

Please see Derby on line documentation on backup and restore.
Parameters:
  backupDir - the name of the directory where the backup should bestored.
Parameters:
  wait - if true, waits for all the backup blocking operations in progress to finish.
exception:
  StandardException - Thrown on error




backupAndEnableLogArchiveMode
public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws StandardException(Code)
Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup.
Parameters:
  backupDir - the directory name where the database backup should go. This directory will be created if not itdoes not exist.
Parameters:
  deleteOnlineArchivedLogFiles - If true deletes online archived logfiles that exist before this backup,delete will occur only after backupis complete.
Parameters:
  wait - if true, waits for all thebackup blocking operations in progress to finish.
exception:
  StandardException - Thrown on error



checkpoint
public void checkpoint() throws StandardException(Code)
Checkpoints the database, that is, flushes all dirty data to disk. Records a checkpoint in the transaction log, if there is a log.
exception:
  StandardException - Thrown on error



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



disableLogArchiveMode
public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws StandardException(Code)
disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery.
Parameters:
  deleteOnlineArchivedLogFiles - If true deletes all online archivedlog files that exist before this call immediately; Only restore thatcan be performed after disabling logarchive mode is version recovery.
exception:
  StandardException - Thrown on error



findMethodFactoryByFormat
MethodFactory findMethodFactoryByFormat(UUID format)(Code)
Find an access method that implements a format type.



findMethodFactoryByImpl
MethodFactory findMethodFactoryByImpl(String impltype) throws StandardException(Code)
Find an access method that implements an implementation type.
exception:
  StandardException - Standard exception policy.



freeze
public void freeze() throws StandardException(Code)
Freeze the database temporarily so a backup can be taken.

Please see Derby on line documentation on backup and restore.
exception:
  StandardException - Thrown on error




getAndNameTransaction
TransactionController getAndNameTransaction(ContextManager cm, String transName) throws StandardException(Code)
Get a transaction. If a new transaction is implicitly created, give it name transName.
Parameters:
  cm - The context manager for the current context.
Parameters:
  transName - If a new transaction is started, it will be given this name. The name is displayed in the transactiontable VTI.
exception:
  StandardException - Standard exception policy.
See Also:   TransactionController
See Also:   AccessFactory.getTransaction



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



getTransaction
TransactionController getTransaction(ContextManager cm) throws StandardException(Code)
Get a transaction controller with which to manipulate data within the access manager. Implicitly creates an access context if one does not already exist.
Parameters:
  cm - The context manager for the current context.
exception:
  StandardException - Standard exception policy.
See Also:   TransactionController



getTransactionInfo
public TransactionInfo[] getTransactionInfo()(Code)
Return a snap shot of all transactions in the db.

Take a snap shot of all transactions currently in the database and make a record of their information. an array of TransactionInfo, or null if there is no transaction in the database.




getXAResourceManager
public Object getXAResourceManager() throws StandardException(Code)
Return the XAResourceManager associated with this AccessFactory.

Returns an object which can be used to implement the "offline" 2 phase commit interaction between the accessfactory and outstanding transaction managers taking care of in-doubt transactions. The XAResourceManager associated with this accessfactory.
exception:
  StandardException - Standard exception policy.




isReadOnly
public boolean isReadOnly()(Code)
Is the store read-only.



registerAccessMethod
void registerAccessMethod(MethodFactory factory)(Code)
Register an access method that this access manager can use.



startXATransaction
Object startXATransaction(ContextManager cm, int format_id, byte[] global_id, byte[] branch_id) throws StandardException(Code)
Start a global transaction.

Get a transaction controller with which to manipulate data within the access manager. Implicitly creates an access context.

Must only be called if no other transaction context exists in the current context manager. If another transaction exists in the context an exception will be thrown.

The (format_id, global_id, branch_id) triplet is meant to come exactly from a javax.transaction.xa.Xid. We don't use Xid so that the system can be delivered on a non-1.2 vm system and not require the javax classes in the path.

If the global transaction id given matches an existing in-doubt global transaction in the current system, then a StandardException will be thrown with a state of SQLState.STORE_XA_XAER_DUPID.


Parameters:
  cm - The context manager for the current context.
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()
exception:
  StandardException - Standard exception policy.
See Also:   TransactionController




unfreeze
public void unfreeze() throws StandardException(Code)
Unfreeze the database after a backup has been taken.

Please see Derby on line documentation on backup and restore.
exception:
  StandardException - Thrown on error




waitForPostCommitToFinishWork
public void waitForPostCommitToFinishWork()(Code)



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