Java Doc for Version.java in  » Database-ORM » openjpa » org » apache » openjpa » jdbc » meta » 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 » openjpa » org.apache.openjpa.jdbc.meta 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openjpa.jdbc.meta.Version

Version
public class Version implements VersionStrategy,MetaDataContext,MetaDataModes(Code)
Handles optimistic lock versioning for a class.
author:
   Abe White



Constructor Summary
public  Version(ClassMapping mapping)
     Constructor.

Method Summary
public  voidafterLoad(OpenJPAStateManager sm, JDBCStore store)
    
public  booleancheckVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion)
    
public  voidclearMapping()
     Clear mapping information, including strategy.
public  intcompareVersion(Object v1, Object v2)
    
public  voidcustomDelete(OpenJPAStateManager sm, JDBCStore store)
    
public  voidcustomInsert(OpenJPAStateManager sm, JDBCStore store)
    
public  voidcustomUpdate(OpenJPAStateManager sm, JDBCStore store)
    
public  voiddelete(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
    
public  StringgetAlias()
    
public  MapgetBulkUpdateValues()
    
public  ClassMappinggetClassMapping()
     Return the owning mapping.
public  ColumnIOgetColumnIO()
     I/O information on the version columns.
public  Column[]getColumns()
     Columns used for versioning.
public  IndexgetIndex()
     Index on the version columns, or null if none.
public  VersionMappingInfogetMappingInfo()
     Raw mapping data.
public  MappingRepositorygetMappingRepository()
    
public  MetaDataRepositorygetRepository()
    
public  intgetResolve()
     Resolve mode.
public  VersionStrategygetStrategy()
     The strategy used for versioning.
public  voidinitialize()
    
public  voidinsert(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
    
public  BooleanisCustomDelete(OpenJPAStateManager sm, JDBCStore store)
    
public  BooleanisCustomInsert(OpenJPAStateManager sm, JDBCStore store)
    
public  BooleanisCustomUpdate(OpenJPAStateManager sm, JDBCStore store)
    
public  voidload(OpenJPAStateManager sm, JDBCStore store, Result res)
    
public  voidmap(boolean adapt)
    
public  voidrefSchemaComponents()
     Increment the reference count of used schema components.
public  booleanresolve(int mode)
     Resolve mapping information.
public  booleanselect(Select sel, ClassMapping mapping)
    
public  voidsetColumnIO(ColumnIO io)
     I/O information on the version columns.
public  voidsetColumns(Column[] cols)
     Columns used for versioning.
public  voidsetIndex(Index idx)
     Index on the version columns, or null if none.
public  voidsetResolve(int mode)
     Resolve mode.
public  voidsetResolve(int mode, boolean on)
     Resolve mode.
public  voidsetStrategy(VersionStrategy strategy, Boolean adapt)
     The strategy used for versioning.
public  voidsetVersion(Version owner)
    
public  voidsyncMappingInfo()
     Update MappingInfo with our current mapping information.
public  StringtoString()
    
public  voidupdate(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
    


Constructor Detail
Version
public Version(ClassMapping mapping)(Code)
Constructor. Supply owning mapping.




Method Detail
afterLoad
public void afterLoad(OpenJPAStateManager sm, JDBCStore store)(Code)



checkVersion
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException(Code)



clearMapping
public void clearMapping()(Code)
Clear mapping information, including strategy.



compareVersion
public int compareVersion(Object v1, Object v2)(Code)



customDelete
public void customDelete(OpenJPAStateManager sm, JDBCStore store) throws SQLException(Code)



customInsert
public void customInsert(OpenJPAStateManager sm, JDBCStore store) throws SQLException(Code)



customUpdate
public void customUpdate(OpenJPAStateManager sm, JDBCStore store) throws SQLException(Code)



delete
public void delete(OpenJPAStateManager sm, JDBCStore store, RowManager rm) throws SQLException(Code)



getAlias
public String getAlias()(Code)



getBulkUpdateValues
public Map getBulkUpdateValues()(Code)
a Map specifying how to update each versioncolumn in this instance during a bulk update.
since:
   1.0.0



getClassMapping
public ClassMapping getClassMapping()(Code)
Return the owning mapping.



getColumnIO
public ColumnIO getColumnIO()(Code)
I/O information on the version columns.



getColumns
public Column[] getColumns()(Code)
Columns used for versioning.



getIndex
public Index getIndex()(Code)
Index on the version columns, or null if none.



getMappingInfo
public VersionMappingInfo getMappingInfo()(Code)
Raw mapping data.



getMappingRepository
public MappingRepository getMappingRepository()(Code)



getRepository
public MetaDataRepository getRepository()(Code)



getResolve
public int getResolve()(Code)
Resolve mode.



getStrategy
public VersionStrategy getStrategy()(Code)
The strategy used for versioning.



initialize
public void initialize()(Code)



insert
public void insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm) throws SQLException(Code)



isCustomDelete
public Boolean isCustomDelete(OpenJPAStateManager sm, JDBCStore store)(Code)



isCustomInsert
public Boolean isCustomInsert(OpenJPAStateManager sm, JDBCStore store)(Code)



isCustomUpdate
public Boolean isCustomUpdate(OpenJPAStateManager sm, JDBCStore store)(Code)



load
public void load(OpenJPAStateManager sm, JDBCStore store, Result res) throws SQLException(Code)



map
public void map(boolean adapt)(Code)



refSchemaComponents
public void refSchemaComponents()(Code)
Increment the reference count of used schema components.



resolve
public boolean resolve(int mode)(Code)
Resolve mapping information.



select
public boolean select(Select sel, ClassMapping mapping)(Code)



setColumnIO
public void setColumnIO(ColumnIO io)(Code)
I/O information on the version columns.



setColumns
public void setColumns(Column[] cols)(Code)
Columns used for versioning.



setIndex
public void setIndex(Index idx)(Code)
Index on the version columns, or null if none.



setResolve
public void setResolve(int mode)(Code)
Resolve mode.



setResolve
public void setResolve(int mode, boolean on)(Code)
Resolve mode.



setStrategy
public void setStrategy(VersionStrategy strategy, Boolean adapt)(Code)
The strategy used for versioning. The adapt parameter determines whether to adapt when mapping the strategy; use null if the strategy should not be mapped.



setVersion
public void setVersion(Version owner)(Code)



syncMappingInfo
public void syncMappingInfo()(Code)
Update MappingInfo with our current mapping information.



toString
public String toString()(Code)



update
public void update(OpenJPAStateManager sm, JDBCStore store, RowManager rm) throws SQLException(Code)



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.