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


java.lang.Object
   org.apache.derby.impl.db.BasicDatabase

BasicDatabase
public class BasicDatabase implements ModuleControl,ModuleSupportable,PropertySetCallback,Database,JarReader(Code)
The Database interface provides control over the physical database (that is, the stored data and the files the data are stored in), connections to the database, operations on the database such as backup and recovery, and all other things that are associated with the database itself.

The Database interface does not provide control over things that are part of the Domain, such as users.

I'm not sure what this will hold in a real system, for now it simply provides connection-creation for us. Perhaps when it boots, it creates the datadictionary object for the database, which all users will then interact with?
author:
   ames



Field Summary
protected  AccessFactoryaf
    
protected  PropertiesallParams
    
protected  ClassFactorycfDB
    
protected  booleanlastToBoot
    
protected  LanguageConnectionFactorylcf
    
protected  LanguageFactorylf
    
protected  PropertyFactorypf
    
protected  ObjectresourceAdapter
    

Constructor Summary
public  BasicDatabase()
    

Method Summary
public  Serviceableapply(String key, Serializable value, Dictionary p)
    
public  voidbackup(String backupDir, boolean wait)
    
public  voidbackupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait)
    
public  voidboot(boolean create, Properties startParams)
    
protected  AuthenticationServicebootAuthenticationService(boolean create, Properties props)
    
protected  voidbootClassFactory(boolean create, Properties startParams)
    
protected  voidbootResourceAdapter(boolean create, Properties startParams)
    
protected  voidbootStore(boolean create, Properties startParams)
    
protected  voidbootValidation(boolean create, Properties startParams)
    
public  booleancanSupport(Properties startParams)
    
public  voidcheckpoint()
    
protected  voidcreateFinished()
    
public  voiddisableLogArchiveMode(boolean deleteOnlineArchivedLogFiles)
    
public  voiddropAllJDBCMetaDataSPSes()
     Drop all Stored Prepared Statements that have been created for JDBC MetaData queries. Does NOT commit the current transaction upon completation.
public  voidfreeze()
    
protected  PropertiesgetAllDatabaseProperties()
    
final public  AuthenticationServicegetAuthenticationService()
    
protected  StringgetClasspath(Properties startParams)
    
public  RuleBasedCollatorgetCollator()
    
protected  TransactionControllergetConnectionTransaction(ContextManager cm)
    
public  LocalegetCurrentLocale()
    
public  DateFormatgetDateFormat()
    
public  intgetEngineType()
    
final public  UUIDgetId()
     Return the UUID of this database.
public  LocalegetLocale()
    
public  ObjectgetResourceAdapter()
    
public  DateFormatgetTimeFormat()
    
public  DateFormatgetTimestampFormat()
    
public  voidinit(boolean dbOnly, Dictionary p)
    
public  booleanisActive()
     Is the database active (open).
public  booleanisReadOnly()
    
protected  UUIDmakeDatabaseID(boolean create, Properties startParams)
    
public  Serializablemap(String key, Serializable value, Dictionary p)
    
protected  voidpushClassFactoryContext(ContextManager cm, ClassFactory cf)
    
public  voidpushDbContext(ContextManager cm)
    
public  ObjectreadJarFile(String schemaName, String sqlName)
    
public  voidsetLocale(Locale locale)
    
public  LanguageConnectionContextsetupConnection(ContextManager cm, String user, String drdaID, String dbname)
    
public  voidstop()
    
public  voidunfreeze()
    
public  booleanvalidate(String key, Serializable value, Dictionary p)
    

Field Detail
af
protected AccessFactory af(Code)



allParams
protected Properties allParams(Code)



cfDB
protected ClassFactory cfDB(Code)



lastToBoot
protected boolean lastToBoot(Code)



lcf
protected LanguageConnectionFactory lcf(Code)



lf
protected LanguageFactory lf(Code)



pf
protected PropertyFactory pf(Code)



resourceAdapter
protected Object resourceAdapter(Code)




Constructor Detail
BasicDatabase
public BasicDatabase()(Code)




Method Detail
apply
public Serviceable apply(String key, Serializable value, Dictionary p) throws StandardException(Code)

See Also:   PropertySetCallback.apply
exception:
  StandardException - Thrown on error.



backup
public void backup(String backupDir, boolean wait) throws SQLException(Code)



backupAndEnableLogArchiveMode
public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws SQLException(Code)



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



bootAuthenticationService
protected AuthenticationService bootAuthenticationService(boolean create, Properties props) throws StandardException(Code)



bootClassFactory
protected void bootClassFactory(boolean create, Properties startParams) throws StandardException(Code)



bootResourceAdapter
protected void bootResourceAdapter(boolean create, Properties startParams)(Code)



bootStore
protected void bootStore(boolean create, Properties startParams) throws StandardException(Code)



bootValidation
protected void bootValidation(boolean create, Properties startParams) throws StandardException(Code)



canSupport
public boolean canSupport(Properties startParams)(Code)



checkpoint
public void checkpoint() throws SQLException(Code)



createFinished
protected void createFinished() throws StandardException(Code)



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



dropAllJDBCMetaDataSPSes
public void dropAllJDBCMetaDataSPSes() throws SQLException(Code)
Drop all Stored Prepared Statements that have been created for JDBC MetaData queries. Does NOT commit the current transaction upon completation.
exception:
  SQLException - on error, most likelya deadlock or timeout.



freeze
public void freeze() throws SQLException(Code)



getAllDatabaseProperties
protected Properties getAllDatabaseProperties() throws StandardException(Code)



getAuthenticationService
final public AuthenticationService getAuthenticationService()(Code)



getClasspath
protected String getClasspath(Properties startParams)(Code)



getCollator
public RuleBasedCollator getCollator() throws StandardException(Code)

exception:
  StandardException - Thrown on error



getConnectionTransaction
protected TransactionController getConnectionTransaction(ContextManager cm) throws StandardException(Code)



getCurrentLocale
public Locale getCurrentLocale() throws StandardException(Code)

exception:
  StandardException - Thrown on error



getDateFormat
public DateFormat getDateFormat() throws StandardException(Code)

exception:
  StandardException - Thrown on error



getEngineType
public int getEngineType()(Code)
one of the values from EngineType.java:



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



getLocale
public Locale getLocale()(Code)



getResourceAdapter
public Object getResourceAdapter()(Code)



getTimeFormat
public DateFormat getTimeFormat() throws StandardException(Code)

exception:
  StandardException - Thrown on error



getTimestampFormat
public DateFormat getTimestampFormat() throws StandardException(Code)

exception:
  StandardException - Thrown on error



init
public void init(boolean dbOnly, Dictionary p)(Code)



isActive
public boolean isActive()(Code)
Is the database active (open).



isReadOnly
public boolean isReadOnly()(Code)



makeDatabaseID
protected UUID makeDatabaseID(boolean create, Properties startParams) throws StandardException(Code)



map
public Serializable map(String key, Serializable value, Dictionary p)(Code)

See Also:   PropertySetCallback.map



pushClassFactoryContext
protected void pushClassFactoryContext(ContextManager cm, ClassFactory cf)(Code)



pushDbContext
public void pushDbContext(ContextManager cm)(Code)



readJarFile
public Object readJarFile(String schemaName, String sqlName) throws StandardException(Code)



setLocale
public void setLocale(Locale locale)(Code)



setupConnection
public LanguageConnectionContext setupConnection(ContextManager cm, String user, String drdaID, String dbname) throws StandardException(Code)



stop
public void stop()(Code)



unfreeze
public void unfreeze() throws SQLException(Code)



validate
public boolean validate(String key, Serializable value, Dictionary p) throws StandardException(Code)

See Also:   PropertySetCallback.validate
exception:
  StandardException - Thrown on error.



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.