Java Doc for DatabaseImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » odmg » 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 ORM » db ojb » org.apache.ojb.odmg 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.odmg.DatabaseImpl

DatabaseImpl
public class DatabaseImpl implements org.odmg.Database(Code)
Implementation class of the org.odmg.Database interface.
author:
   Thomas Mahler
author:
  
Matthew Baird
author:
   Armin Waibel
version:
   $Id: DatabaseImpl.java,v 1.26.2.9 2005/12/21 22:29:21 tomdz Exp $



Constructor Summary
public  DatabaseImpl(ImplementationImpl ojb)
    

Method Summary
public  voidbind(Object object, String name)
     Associate a name with an object and make it persistent.
public  voidclose()
     Close the database.
public  voiddeletePersistent(Object object)
     Deletes an object from the database.
public  PBKeygetPBKey()
     Return the org.apache.ojb.broker.PBKey associated with this Database.
public  booleanisOpen()
    
public  Objectlookup(String name)
     Lookup an object via its name.
Parameters:
  name - The name of an object.
public  voidmakePersistent(Object object)
     Make a transient object durable in the database.
public synchronized  voidopen(String name, int accessMode)
     Open the named database with the specified access mode.
public  voidunbind(String name)
    


Constructor Detail
DatabaseImpl
public DatabaseImpl(ImplementationImpl ojb)(Code)




Method Detail
bind
public void bind(Object object, String name) throws ObjectNameNotUniqueException(Code)
Associate a name with an object and make it persistent. An object instance may be bound to more than one name. Binding a previously transient object to a name makes that object persistent.
Parameters:
  object - The object to be named.
Parameters:
  name - The name to be given to the object.
exception:
  org.odmg.ObjectNameNotUniqueException - If an attempt is made to bind a name to an object and that name is already boundto an object.



close
public void close() throws ODMGException(Code)
Close the database. After you have closed a database, further attempts to access objects in the database will cause the exception DatabaseClosedException to be thrown. Some implementations may throw additional exceptions that are also derived from ODMGException.
exception:
  ODMGException - Unable to close the database.



deletePersistent
public void deletePersistent(Object object)(Code)
Deletes an object from the database. It must be executed in the context of an open transaction. If the object is not persistent, then ObjectNotPersistent is thrown. If the transaction in which this method is executed commits, then the object is removed from the database. If the transaction aborts, then the deletePersistent operation is considered not to have been executed, and the target object is again in the database.
Parameters:
  object - The object to delete.



getPBKey
public PBKey getPBKey()(Code)
Return the org.apache.ojb.broker.PBKey associated with this Database.



isOpen
public boolean isOpen()(Code)



lookup
public Object lookup(String name) throws ObjectNameNotFoundException(Code)
Lookup an object via its name.
Parameters:
  name - The name of an object. The object with that name.
exception:
  ObjectNameNotFoundException - There is no object with the specified name.ObjectNameNotFoundException



makePersistent
public void makePersistent(Object object)(Code)
Make a transient object durable in the database. It must be executed in the context of an open transaction. If the transaction in which this method is executed commits, then the object is made durable. If the transaction aborts, then the makePersistent operation is considered not to have been executed, and the target object is again transient. ClassNotPersistenceCapableException is thrown if the implementation cannot make the object persistent because of the type of the object.
Parameters:
  object - The object to make persistent.
throws:
  TransactionNotInProgressException - if there is no current transaction.



open
public synchronized void open(String name, int accessMode) throws ODMGException(Code)
Open the named database with the specified access mode. Attempts to open a database when it has already been opened will result in the throwing of the exception DatabaseOpenException. A DatabaseNotFoundException is thrown if the database does not exist. Some implementations may throw additional exceptions that are also derived from ODMGException.
Parameters:
  name - The name of the database.
Parameters:
  accessMode - The access mode, which should be one of the static fields:OPEN_READ_ONLY, OPEN_READ_WRITE,or OPEN_EXCLUSIVE.
exception:
  ODMGException - The database could not be opened.



unbind
public void unbind(String name) throws ObjectNameNotFoundException(Code)
Disassociate a name with an object
Parameters:
  name - The name of an object.
exception:
  ObjectNameNotFoundException - No object exists in the database with that name.



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.