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


org.apache.ojb.broker.locking.IsolationLevels

All known Subclasses:   org.apache.ojb.broker.metadata.DescriptorRepository,  org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler,  org.apache.ojb.broker.ant.RepositoryVerifierHandler,  org.apache.ojb.broker.metadata.RepositoryXmlHandler,  org.apache.ojb.broker.metadata.ClassDescriptor,
IsolationLevels
public interface IsolationLevels (Code)
This interface defines the lock isolation level constants used by OJB locking api. It contains numeric constants and literal constants representing all known isolation levels.

NOTE: The lock isolation levels are labeled like the database transaction level but the definition of the levels is different - take care of that.
version:
   $Id: IsolationLevels.java,v 1.1.2.3 2005/12/21 22:25:32 tomdz Exp $



Field Summary
final public static  intIL_DEFAULT
     Numeric constant representing the default isolation level used by OJB - current used default level is IsolationLevels.IL_READ_UNCOMMITTED .
final public static  intIL_NONE
     Numeric constant representing an no-op isolation level.
final public static  intIL_OPTIMISTIC
     Numeric constant representing the optimistic locking isolation level.

The lock manager does not perform any pessimistic locking action.

final public static  intIL_READ_COMMITTED
     Numeric constant representing the commited read isolation level.
final public static  intIL_READ_UNCOMMITTED
     Numeric constant representing the uncommited read isolation level.

Obtaining two concurrent write locks on a given object is not allowed.

final public static  intIL_REPEATABLE_READ
     Numeric constant representing the repeatable read isolation level.
final public static  intIL_SERIALIZABLE
     Numeric constant representing the serializable transactions isolation level.
final public static  StringLITERAL_IL_NONE
     Literal constant representing the uncommited read isolation level.
final public static  StringLITERAL_IL_OPTIMISTIC
     Literal constant representing the optimistic locking isolation level.
final public static  StringLITERAL_IL_READ_COMMITTED
     Literal constant representing the commited read isolation level.
final public static  StringLITERAL_IL_READ_UNCOMMITTED
     Literal constant representing the uncommited read isolation level.
final public static  StringLITERAL_IL_REPEATABLE_READ
     Literal constant representing the repeatable read isolation level.
final public static  StringLITERAL_IL_SERIALIZABLE
     Literal constant representing the serializable transactions isolation level.



Field Detail
IL_DEFAULT
final public static int IL_DEFAULT(Code)
Numeric constant representing the default isolation level used by OJB - current used default level is IsolationLevels.IL_READ_UNCOMMITTED .



IL_NONE
final public static int IL_NONE(Code)
Numeric constant representing an no-op isolation level.

The lock manager completely ignores locking.

Allows:
all possible concurrent side-effects




IL_OPTIMISTIC
final public static int IL_OPTIMISTIC(Code)
Numeric constant representing the optimistic locking isolation level.

The lock manager does not perform any pessimistic locking action. Normally it's not needed to declare this isolation level in persistent object metadata, because OJB will automatically detect an enabled optimistic locking.
NOTE: Usage of this isolation level needs an specific optimistic locking declaration for the specified object. This declaration is not automatically handled by OJB and need setting of configuration properties - see OJB docs.




IL_READ_COMMITTED
final public static int IL_READ_COMMITTED(Code)
Numeric constant representing the commited read isolation level.

Obtaining two concurrent write locks on a given object is not allowed. Obtaining read locks is allowed only if there is no write lock on the given object.

Allows:
Non-Repeatable Reads
Phantom Reads




IL_READ_UNCOMMITTED
final public static int IL_READ_UNCOMMITTED(Code)
Numeric constant representing the uncommited read isolation level.

Obtaining two concurrent write locks on a given object is not allowed. Obtaining read locks is allowed even if another transaction is writing to that object (Thats why this level is also called "dirty reads").

Allows:
Dirty Reads
Non-Repeatable Reads
Phantom Reads




IL_REPEATABLE_READ
final public static int IL_REPEATABLE_READ(Code)
Numeric constant representing the repeatable read isolation level.

As commited reads, but obtaining a write lock on an object that has been locked for reading by another transaction is not allowed.

Allows:
Phantom Reads




IL_SERIALIZABLE
final public static int IL_SERIALIZABLE(Code)
Numeric constant representing the serializable transactions isolation level.

As Repeatable Reads, but it is even not allowed to have multiple read locks on a given object.

Allows:
-




LITERAL_IL_NONE
final public static String LITERAL_IL_NONE(Code)
Literal constant representing the uncommited read isolation level.



LITERAL_IL_OPTIMISTIC
final public static String LITERAL_IL_OPTIMISTIC(Code)
Literal constant representing the optimistic locking isolation level.



LITERAL_IL_READ_COMMITTED
final public static String LITERAL_IL_READ_COMMITTED(Code)
Literal constant representing the commited read isolation level.



LITERAL_IL_READ_UNCOMMITTED
final public static String LITERAL_IL_READ_UNCOMMITTED(Code)
Literal constant representing the uncommited read isolation level.



LITERAL_IL_REPEATABLE_READ
final public static String LITERAL_IL_REPEATABLE_READ(Code)
Literal constant representing the repeatable read isolation level.



LITERAL_IL_SERIALIZABLE
final public static String LITERAL_IL_SERIALIZABLE(Code)
Literal constant representing the serializable transactions isolation level.





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