Java Doc for LogicalDatabase.java in  » J2EE » Enhydra-Application-Framework » com » lutris » appserver » server » sql » 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 » J2EE » Enhydra Application Framework » com.lutris.appserver.server.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.lutris.appserver.server.sql.LogicalDatabase

LogicalDatabase
public interface LogicalDatabase (Code)
Interface for a logical database. Each logical database must provide services for connection and object id allocation.
author:
   Paul Morgan
since:
   LBS1.8
version:
   $Revision: 1.1 $




Method Summary
public  DBConnectionallocateConnection()
     Return a connection to this logical database.
public  ObjectIdallocateObjectId()
     Return an object id for this logical database.
public  voidcheckOId(ObjectId oid)
    
public  DBQuerycreateQuery()
     Return a query for use on this logical database.
public  DBTransactioncreateTransaction()
     Return a transaction for use on this logical database.
public  intgetActiveConnectionCount()
     Return the number of currently active connections.
public  intgetMaxConnectionCount()
     Return the maximum number of connections active at one time.
public  DategetMaxConnectionCountDate()
     Return the time when the maximum connection count occured.
public  StringgetName()
     Return the symbolic name of this logical database.
public  longgetRequestCount()
     Return the number of database requests.
public  StringgetType()
     Return a description of the logical database type.
public  voidinit(String dbName, Config dbConfig)
     Initialize the logical database.
public  voidresetMaxConnectionCount()
     Reset the maximum connection count and date.
public  voidshutdown()
     Immediately shutdown the logical database.



Method Detail
allocateConnection
public DBConnection allocateConnection() throws SQLException(Code)
Return a connection to this logical database. The connection.
exception:
  SQLException - if a SQL error occurs.



allocateObjectId
public ObjectId allocateObjectId() throws ObjectIdException(Code)
Return an object id for this logical database. The object id.
exception:
  ObjectIdException - if an object id cannot be allocated.



checkOId
public void checkOId(ObjectId oid) throws ObjectIdException(Code)
Check does oid belong to Object id's range [minOId, currentOId]
Parameters:
  oid - oid which will be checked.
exception:
  ObjectIdException - If a oid does't belong to range.



createQuery
public DBQuery createQuery() throws SQLException(Code)
Return a query for use on this logical database. The query object.
exception:
  SQLException - if a SQL error occurs.



createTransaction
public DBTransaction createTransaction() throws SQLException(Code)
Return a transaction for use on this logical database. The transaction object.
exception:
  SQLException - if a SQL error occurs.



getActiveConnectionCount
public int getActiveConnectionCount()(Code)
Return the number of currently active connections. The number of connections.



getMaxConnectionCount
public int getMaxConnectionCount()(Code)
Return the maximum number of connections active at one time. The number of connections.



getMaxConnectionCountDate
public Date getMaxConnectionCountDate()(Code)
Return the time when the maximum connection count occured. The Date when the maximum connectioncount occured.



getName
public String getName()(Code)
Return the symbolic name of this logical database. The symbolic name.



getRequestCount
public long getRequestCount()(Code)
Return the number of database requests. The number of database requests (queries or transactions).



getType
public String getType()(Code)
Return a description of the logical database type. The type.



init
public void init(String dbName, Config dbConfig) throws ConfigException, SQLException(Code)
Initialize the logical database.
exception:
  ConfigException - if there is an error in the configuration.
exception:
  SQLException - if a SQL error occurs.



resetMaxConnectionCount
public void resetMaxConnectionCount()(Code)
Reset the maximum connection count and date.



shutdown
public void shutdown()(Code)
Immediately shutdown the logical database. All connections should be closed and any other cleanup performed.



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