Java Doc for ImplementationExt.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) 


org.apache.ojb.odmg.ImplementationExt

All known Subclasses:   org.apache.ojb.odmg.ImplementationImpl,
ImplementationExt
public interface ImplementationExt extends Implementation(Code)
Offers useful none odmg-standard methods of the odmg org.odmg.Implementation interface.

Note: All listed methods are not part of the standard ODMG-api - they are special (proprietary) OJB extensions.


version:
   $Id: ImplementationExt.java,v 1.1.2.6 2005/12/21 22:29:21 tomdz Exp $




Method Summary
public  ClassgetOqlCollectionClass()
     The used collection type class returned by OQL queries.
public  booleanisImplicitLocking()
     Returns true if the global implicit locking is enabled for this org.odmg.Implementation instance, else false.
public  booleanisImpliciteWriteLocks()
     Is true when implicite write locks are enabled.
public  booleanisOrdering()
     Returns true if OJB's ordering algorithm is enabled.
public  voidsetImplicitLocking(boolean impliciteLocking)
     Set the global property implicit locking.
public  voidsetImpliciteWriteLocks(boolean impliciteWriteLocks)
     If the OJB implicit locking feature (see TransactionExt.setImplicitLocking(boolean) ) is enabled, this define the lock type of all implicit locked objects.
public  voidsetOqlCollectionClass(Class oqlCollectionClass)
     Set the used collection type class returned by OQL queries.
public  voidsetOrdering(boolean ordering)
     Disable/enable OJB's ordering algorithm when insert, update, delete a bunch of objects within a transaction.



Method Detail
getOqlCollectionClass
public Class getOqlCollectionClass()(Code)
The used collection type class returned by OQL queries.
See Also:   org.apache.ojb.odmg.oql.EnhancedOQLQuery.execute
See Also:   org.odmg.OQLQuery.execute The collection class type



isImplicitLocking
public boolean isImplicitLocking()(Code)
Returns true if the global implicit locking is enabled for this org.odmg.Implementation instance, else false.
Important: The returned value is the global used setting for all org.odmg.Transaction.lock(Objectint) calls.
However it's possible to set this value only for the current used org.odmg.Transaction using TransactionExt.setImplicitLocking(boolean) and to detect the implicit locking state of the used transaction instance call TransactionExt.isImplicitLocking . true if the global property implicit lockingtrue is enabled.
See Also:   ImplementationExt.setImplicitLocking(boolean)



isImpliciteWriteLocks
public boolean isImpliciteWriteLocks()(Code)
Is true when implicite write locks are enabled. true when implicit write locks are enabled.
See Also:   ImplementationExt.setImpliciteWriteLocks(boolean)



isOrdering
public boolean isOrdering()(Code)
Returns true if OJB's ordering algorithm is enabled.
See Also:   ImplementationExt.setOrdering(boolean)



setImplicitLocking
public void setImplicitLocking(boolean impliciteLocking)(Code)
Set the global property implicit locking. This method can be used to activate or deactivate the global implicit locking mechanism.
If set true OJB implicitly locks objects to ODMG transactions after performing OQL queries. Also if implicit locking is used locking objects is recursive, that is associated objects are also locked. If ImplicitLocking is set to 'false', no locks are obtained in OQL queries, lookup objects and there is also no recursive locking.

However it's possible to set this value only for the current used org.odmg.Transaction using TransactionExt.setImplicitLocking(boolean) and to detect the implicit locking state of the used transaction instance call TransactionExt.isImplicitLocking .
Turning off implicit locking may improve performance but requires additional care to make sure that all changed objects are properly registered to the transaction.
Parameters:
  impliciteLocking - If set true implicit locking is enabled,if false, implicit locking is disabled.




setImpliciteWriteLocks
public void setImpliciteWriteLocks(boolean impliciteWriteLocks)(Code)
If the OJB implicit locking feature (see TransactionExt.setImplicitLocking(boolean) ) is enabled, this define the lock type of all implicit locked objects.

If set to true, acquiring a write-lock on a given object x implies write locks on all implicit locked objects.
If set to false, in any case implicit read-locks are acquired. Acquiring a read- or write lock on x thus allways results in implicit read-locks on all associated objects.
Parameters:
  impliciteWriteLocks - If true implicit write locks will enabled.




setOqlCollectionClass
public void setOqlCollectionClass(Class oqlCollectionClass)(Code)
Set the used collection type class returned by OQL queries.

NOTE: Each specified class must implement interface org.apache.ojb.broker.ManageableCollection to work proper with OJB.
Parameters:
  oqlCollectionClass - The collection class used in OQL queries.




setOrdering
public void setOrdering(boolean ordering)(Code)
Disable/enable OJB's ordering algorithm when insert, update, delete a bunch of objects within a transaction. The ordering algorithm try to calculate the correct order of the modified/new persistent objects to prevent problems on commit of the transaction.
If the used databases support 'deferred checks' it's recommended to use this feature and to disable OJB's object ordering.

However it's possible to set this value only for the current used org.odmg.Transaction using TransactionExt.setOrdering(boolean)
Parameters:
  ordering - If true OJB's ordering algorithm is used.




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