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

Discriminator
public class Discriminator implements DiscriminatorStrategy,MetaDataContext,MetaDataModes(Code)
Handles determining the object class of database records.
author:
   Abe White


Field Summary
final public static  ObjectNULL
     Null discriminator value marker.

Constructor Summary
public  Discriminator(ClassMapping mapping)
     Constructor.

Method Summary
public  booleanaddClassConditions(Select sel, boolean subs, Joins joins)
     Add WHERE conditions to the given select limiting the returned results to our mapping type, possibly including subclasses.
public  voidclearMapping()
     Clear mapping information, including strategy.
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  ClassgetClass(JDBCStore store, ClassMapping base, Result result)
    
public  SQLBuffergetClassConditions(Select sel, Joins joins, ClassMapping base, boolean subs)
    
public  ClassMappinggetClassMapping()
     Return the owning mapping.
public  ColumnIOgetColumnIO()
     I/O information on the discriminator columns.
public  Column[]getColumns()
     Columns used by this Discriminator.
public  IndexgetIndex()
     Index on the Discriminator columns, or null if none.
public  intgetJavaType()
    
public  DiscriminatorMappingInfogetMappingInfo()
     Raw mapping data.
public  MappingRepositorygetMappingRepository()
    
public  MetaDataRepositorygetRepository()
    
public  intgetResolve()
     Resolve mode.
public  DiscriminatorStrategygetStrategy()
     The strategy used for class discrimination.
public  booleangetSubclassesLoaded()
     Whether this Discriminator has loaded subclasses yet.
public  ObjectgetValue()
     The discriminator value.
public  booleanhasClassConditions(ClassMapping base, boolean subs)
    
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  voidloadSubclasses(JDBCStore store)
    
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 discriminator columns.
public  voidsetColumns(Column[] cols)
     Columns used by this Discriminator.
public  voidsetDiscriminator(Discriminator owner)
    
public  voidsetIndex(Index idx)
     Index on the Discriminator columns, or null if none.
public  voidsetJavaType(int javaType)
    
public  voidsetResolve(int mode)
     Resolve mode.
public  voidsetResolve(int mode, boolean on)
     Resolve mode.
public  voidsetStrategy(DiscriminatorStrategy strategy, Boolean adapt)
     The strategy used for class discrimination.
public  voidsetSubclassesLoaded(boolean loaded)
     Whether this Discriminator has loaded subclasses yet.
public  voidsetValue(Object value)
     The discriminator value.
public  voidsyncMappingInfo()
     Update MappingInfo with our current mapping information.
public  StringtoString()
    
public  voidupdate(OpenJPAStateManager sm, JDBCStore store, RowManager rm)
    

Field Detail
NULL
final public static Object NULL(Code)
Null discriminator value marker.




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




Method Detail
addClassConditions
public boolean addClassConditions(Select sel, boolean subs, Joins joins)(Code)
Add WHERE conditions to the given select limiting the returned results to our mapping type, possibly including subclasses.



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



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)



getClass
public Class getClass(JDBCStore store, ClassMapping base, Result result) throws SQLException, ClassNotFoundException(Code)



getClassConditions
public SQLBuffer getClassConditions(Select sel, Joins joins, ClassMapping base, boolean subs)(Code)



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



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



getColumns
public Column[] getColumns()(Code)
Columns used by this Discriminator.



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



getJavaType
public int getJavaType()(Code)



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



getMappingRepository
public MappingRepository getMappingRepository()(Code)



getRepository
public MetaDataRepository getRepository()(Code)



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



getStrategy
public DiscriminatorStrategy getStrategy()(Code)
The strategy used for class discrimination.



getSubclassesLoaded
public boolean getSubclassesLoaded()(Code)
Whether this Discriminator has loaded subclasses yet.



getValue
public Object getValue()(Code)
The discriminator value.



hasClassConditions
public boolean hasClassConditions(ClassMapping base, boolean subs)(Code)



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)



loadSubclasses
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException(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 discriminator columns.



setColumns
public void setColumns(Column[] cols)(Code)
Columns used by this Discriminator.



setDiscriminator
public void setDiscriminator(Discriminator owner)(Code)



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



setJavaType
public void setJavaType(int javaType)(Code)



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



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



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



setSubclassesLoaded
public void setSubclassesLoaded(boolean loaded)(Code)
Whether this Discriminator has loaded subclasses yet.



setValue
public void setValue(Object value)(Code)
The discriminator value.



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.