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


org.apache.derby.database.Database

Database
public interface Database (Code)
The Database interface provides control over a database (that is, the stored data and the files the data are stored in), operations on the database such as backup and recovery, and all other things that are associated with the database itself.
See Also:   org.apache.derby.iapi.db.Factory




Method Summary
public  voidbackup(String backupDir, boolean wait)
     Backup the database to a backup directory.
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  voiddisableLogArchiveMode(boolean deleteOnlineArchivedLogFiles)
     Disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery.
public  voiddropAllJDBCMetaDataSPSes()
     Delete all stored prepared statements that were created for JDBC MetaData queries.
public  voidfreeze()
     Freeze the database temporarily so a backup can be taken.
public  UUIDgetId()
     Return the UUID of this database.
public  LocalegetLocale()
     Get the Locale for this database.
public  booleanisReadOnly()
     Tells whether the Database is configured as read-only, or the Database was started in read-only mode.
public  voidunfreeze()
     Unfreeze the database after a backup has been taken.



Method Detail
backup
public void backup(String backupDir, boolean wait) throws SQLException(Code)
Backup the database to a backup directory. See online documentation for more detail about how to use this feature.
Parameters:
  backupDir - the directory name where the database backup shouldgo. This directory will be created if not it does not exist.
Parameters:
  wait - if true, waits for all the backup blocking operations in progress to finish.
exception:
  SQLException - Thrown on error



backupAndEnableLogArchiveMode
public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws SQLException(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 it does not exist.
Parameters:
  deleteOnlineArchivedLogFiles - If true deletes online archived logfiles that exist before this backup;otherwise they will not be deleted. Deletion will occur only after backup is complete.
Parameters:
  wait - if true, waits for all the backup blocking operations in progress to finish.
exception:
  SQLException - Thrown on error



checkpoint
public void checkpoint() throws SQLException(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:
  SQLException - Thrown on error



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



dropAllJDBCMetaDataSPSes
public void dropAllJDBCMetaDataSPSes() throws SQLException(Code)
Delete all stored prepared statements that were created for JDBC MetaData queries.
exception:
  SQLException - thrown on error deletingthe stored prepared statements, most likelya deadlock or timeout.



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

Please see Cloudscape on line documentation on backup and restore.
exception:
  SQLException - Thrown on error




getId
public UUID getId()(Code)
Return the UUID of this database.



getLocale
public Locale getLocale()(Code)
Get the Locale for this database.



isReadOnly
public boolean isReadOnly()(Code)
Tells whether the Database is configured as read-only, or the Database was started in read-only mode. TRUE means the Database is read-only, FALSE means it isnot read-only.



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

Please see Cloudscape on line documentation on backup and restore.
exception:
  SQLException - Thrown on error




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