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


java.lang.Object
   org.apache.derby.impl.store.raw.RawStore

RawStore
final public class RawStore implements RawStoreFactory,ModuleControl,ModuleSupportable,PrivilegedExceptionAction(Code)
A Raw store that implements the RawStoreFactory module by delegating all the work to the lower modules TransactionFactory, LogFactory and DataFactory.
 String TransactionFactoryId=
 

Class is final as it has methods with privilege blocks and implements PrivilegedExceptionAction.



Field Summary
final public static  StringTEST_REENCRYPT_CRASH_AFTER_CHECKPOINT
    
final public static  StringTEST_REENCRYPT_CRASH_AFTER_COMMT
    
final public static  StringTEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_LOGFILE_DELETE
    
final public static  StringTEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_REVERTING_KEY
    
final public static  StringTEST_REENCRYPT_CRASH_AFTER_SWITCH_TO_NEWKEY
    
final public static  StringTEST_REENCRYPT_CRASH_BEFORE_COMMT
     (re) encryption testing debug flags that are used to simulate error/crash conditions for testing purposes.
final public static  StringTEST_REENCRYPT_CRASH_BEFORE_RECOVERY_FINAL_CLEANUP
    
 StringdataDirectory
    
protected  DataFactorydataFactory
    
protected  LogFactorylogFactory
    
protected  DaemonServicerawStoreDaemon
    
protected  TransactionFactoryxactFactory
    

Constructor Summary
public  RawStore()
    

Method Summary
public  voidbackup(String backupDir, boolean wait)
     Backup the database to a backup directory.
Parameters:
  backupDir - the name of the directory where the backup should bestored.
public synchronized  voidbackup(Transaction t, File 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 name of the directory where the backup should bestored.
public  voidboot(boolean create, Properties properties)
    
public  booleancanSupport(Properties startParams)
     We use this RawStore for all databases.
public  SerializablechangeBootPassword(Properties properties, Serializable changePassword)
    
public  voidcheckpoint()
    
public  voidconfigureDatabaseForEncryption(Properties properties, CipherFactory newCipherFactory)
    
public  voidcreateFinished()
    
public  intdecrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset)
     Decrypt cleartext from ciphertext.
public  voiddisableLogArchiveMode(boolean deleteOnlineArchivedLogFiles)
    
public  intencrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset, boolean newEngine)
     Encrypt cleartext into ciphertext.
public  TransactionfindUserTransaction(ContextManager contextMgr, String transName)
    
public  voidfreeze()
    
public  voidfreezePersistentStore()
     Freeze persistent store.
public  DaemonServicegetDaemon()
    
public  StringgetDataFactoryModule()
    
public  intgetEncryptionBlockSize()
    
public  LockFactorygetLockFactory()
    
public  StringgetLogFactoryModule()
    
public  longgetMaxContainerId()
     Return an id which can be used to create a container.

Return an id number with is greater than any existing container in the current database.

public  voidgetRawStoreProperties(PersistentSet set)
    
public  StringgetTransactionFactoryModule()
    
public  TransactionInfo[]getTransactionInfo()
    
public  ObjectgetXAResourceManager()
    
public  TransactionFactorygetXactFactory()
     Get the Transaction Factory to use with this store.
public  voidhandleIncompleteDatabaseEncryption(Properties properties)
     Engine might have crashed during encryption of un-encrypted datbase or while re-encryptin an already encrypted database with a new key after all the containers or (re) encrypted.
public  voididle()
    
public  booleanisReadOnly()
     Is the store read-only.
public  StandardExceptionmarkCorrupt(StandardException originalError)
    
public  ScanHandleopenFlushedScan(DatabaseInstant start, int groupsIWant)
    
protected  booleanprivCopyDirectory(StorageFile from, File to)
    
protected  booleanprivCopyDirectory(File from, StorageFile to)
    
public  intrandom()
    
final public  Objectrun()
    
public  TransactionstartGlobalTransaction(ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id)
    
public  TransactionstartInternalTransaction(ContextManager contextMgr)
    
public  TransactionstartNestedReadOnlyUserTransaction(Object compatibilitySpace, ContextManager contextMgr, String transName)
    
public  TransactionstartNestedUpdateUserTransaction(ContextManager contextMgr, String transName)
    
public  TransactionstartTransaction(ContextManager contextMgr, String transName)
    
public  voidstop()
    
public  voidunfreeze()
    
public  voidunfreezePersistentStore()
     Freeze persistent store.

Field Detail
TEST_REENCRYPT_CRASH_AFTER_CHECKPOINT
final public static String TEST_REENCRYPT_CRASH_AFTER_CHECKPOINT(Code)



TEST_REENCRYPT_CRASH_AFTER_COMMT
final public static String TEST_REENCRYPT_CRASH_AFTER_COMMT(Code)



TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_LOGFILE_DELETE
final public static String TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_LOGFILE_DELETE(Code)



TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_REVERTING_KEY
final public static String TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_REVERTING_KEY(Code)



TEST_REENCRYPT_CRASH_AFTER_SWITCH_TO_NEWKEY
final public static String TEST_REENCRYPT_CRASH_AFTER_SWITCH_TO_NEWKEY(Code)



TEST_REENCRYPT_CRASH_BEFORE_COMMT
final public static String TEST_REENCRYPT_CRASH_BEFORE_COMMT(Code)
(re) encryption testing debug flags that are used to simulate error/crash conditions for testing purposes. When any one of the following flags are set to true in the debug mode, re-encryption will fail at that point.



TEST_REENCRYPT_CRASH_BEFORE_RECOVERY_FINAL_CLEANUP
final public static String TEST_REENCRYPT_CRASH_BEFORE_RECOVERY_FINAL_CLEANUP(Code)



dataDirectory
String dataDirectory(Code)



dataFactory
protected DataFactory dataFactory(Code)



logFactory
protected LogFactory logFactory(Code)



rawStoreDaemon
protected DaemonService rawStoreDaemon(Code)



xactFactory
protected TransactionFactory xactFactory(Code)




Constructor Detail
RawStore
public RawStore()(Code)




Method Detail
backup
public void backup(String backupDir, boolean wait) throws StandardException(Code)
Backup the database to a backup directory.
Parameters:
  backupDir - the name of the directory where the backup should bestored. This directory will be created if it does not exist.
Parameters:
  wait - if true, waits for all the backup blocking operations in progress to finish.
exception:
  StandardException - thrown on error



backup
public synchronized void backup(Transaction t, File backupDir) throws StandardException(Code)



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 name of the directory where the backup should bestored. This directory will be created if it does not exist.
Parameters:
  deleteOnlineArchivedLogFiles - If true deletes online archived log files that exist before this backup, delete will occur only after the backup is complete.
Parameters:
  wait - if true, waits for all the backup blocking operations in progress to finish.
exception:
  StandardException - thrown on error.



boot
public void boot(boolean create, Properties properties) throws StandardException(Code)



canSupport
public boolean canSupport(Properties startParams)(Code)
We use this RawStore for all databases.



changeBootPassword
public Serializable changeBootPassword(Properties properties, Serializable changePassword) throws StandardException(Code)



checkpoint
public void checkpoint() throws StandardException(Code)



configureDatabaseForEncryption
public void configureDatabaseForEncryption(Properties properties, CipherFactory newCipherFactory) throws StandardException(Code)



createFinished
public void createFinished() throws StandardException(Code)



decrypt
public int decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset) throws StandardException(Code)
Decrypt cleartext from ciphertext.
See Also:   CipherProvider.decrypt
exception:
  StandardException - Standard Cloudscape Error Policy



disableLogArchiveMode
public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws StandardException(Code)



encrypt
public int encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset, boolean newEngine) throws StandardException(Code)
Encrypt cleartext into ciphertext.
See Also:   CipherProvider.encrypt
exception:
  StandardException - Standard Cloudscape Error Policy



findUserTransaction
public Transaction findUserTransaction(ContextManager contextMgr, String transName) throws StandardException(Code)



freeze
public void freeze() throws StandardException(Code)



freezePersistentStore
public void freezePersistentStore() throws StandardException(Code)
Freeze persistent store. Reads can still happen, only cannot write.
exception:
  StandardException - Standard Cloudscape Error Policy



getDaemon
public DaemonService getDaemon()(Code)



getDataFactoryModule
public String getDataFactoryModule()(Code)



getEncryptionBlockSize
public int getEncryptionBlockSize()(Code)
Returns the encryption block size used by the algorithm at time of creation of an encrypted database



getLockFactory
public LockFactory getLockFactory()(Code)



getLogFactoryModule
public String getLogFactoryModule()(Code)



getMaxContainerId
public long getMaxContainerId() throws StandardException(Code)
Return an id which can be used to create a container.

Return an id number with is greater than any existing container in the current database. Caller will use this to allocate future container numbers - most likely caching the value and then incrementing it as it is used.

The an id which can be used to create a container.
exception:
  StandardException - Standard exception policy.




getRawStoreProperties
public void getRawStoreProperties(PersistentSet set) throws StandardException(Code)
Get JBMS properties relavent to raw store
exception:
  StandardException - Standard Cloudscape Error Policy



getTransactionFactoryModule
public String getTransactionFactoryModule()(Code)



getTransactionInfo
public TransactionInfo[] getTransactionInfo()(Code)



getXAResourceManager
public Object getXAResourceManager() throws StandardException(Code)



getXactFactory
public TransactionFactory getXactFactory()(Code)
Get the Transaction Factory to use with this store.



handleIncompleteDatabaseEncryption
public void handleIncompleteDatabaseEncryption(Properties properties) throws StandardException(Code)
Engine might have crashed during encryption of un-encrypted datbase or while re-encryptin an already encrypted database with a new key after all the containers or (re) encrypted. If crash has occured before all containers are encrypted, recovery wil un-do re-encryption using the transaction log, nothing to be done here. If crash has occured after database encryption status flag (RawStoreFactory.DB_ENCRYPTION_STATUS) is set, this method will do any cleanup necessary for the recovery to correctly perform the rollback if required.
Parameters:
  properties - properties related to this database.
exception:
  StandardException - Standard Derby Error Policy



idle
public void idle() throws StandardException(Code)



isReadOnly
public boolean isReadOnly()(Code)
Is the store read-only.
See Also:   RawStoreFactory.isReadOnly



markCorrupt
public StandardException markCorrupt(StandardException originalError)(Code)



openFlushedScan
public ScanHandle openFlushedScan(DatabaseInstant start, int groupsIWant) throws StandardException(Code)



privCopyDirectory
protected boolean privCopyDirectory(StorageFile from, File to)(Code)



privCopyDirectory
protected boolean privCopyDirectory(File from, StorageFile to)(Code)



random
public int random()(Code)



run
final public Object run() throws IOException(Code)



startGlobalTransaction
public Transaction startGlobalTransaction(ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id) throws StandardException(Code)



startInternalTransaction
public Transaction startInternalTransaction(ContextManager contextMgr) throws StandardException(Code)



startNestedReadOnlyUserTransaction
public Transaction startNestedReadOnlyUserTransaction(Object compatibilitySpace, ContextManager contextMgr, String transName) throws StandardException(Code)



startNestedUpdateUserTransaction
public Transaction startNestedUpdateUserTransaction(ContextManager contextMgr, String transName) throws StandardException(Code)



startTransaction
public Transaction startTransaction(ContextManager contextMgr, String transName) throws StandardException(Code)



stop
public void stop()(Code)



unfreeze
public void unfreeze() throws StandardException(Code)



unfreezePersistentStore
public void unfreezePersistentStore() throws StandardException(Code)
Freeze persistent store. Reads can still happen, only cannot write.
exception:
  StandardException - Standard Cloudscape Error Policy



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.