|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiscriminatorStrategy
Handles determining the object class of database records.
Method Summary | |
---|---|
Class |
getClass(JDBCStore store,
ClassMapping base,
Result result)
Return the class for the current result row. |
SQLBuffer |
getClassConditions(Select sel,
Joins joins,
ClassMapping base,
boolean subs)
Return SQL to limit the classes selected as much as possible to the given base class, and optionally its subclasses. |
void |
loadSubclasses(JDBCStore store)
Load all subclasses of the owning class mapping into the JVM. |
boolean |
select(Select sel,
ClassMapping mapping)
Select the data for this Discriminator. |
void |
setDiscriminator(Discriminator owner)
Set the Discriminator that uses this strategy. |
Methods inherited from interface org.apache.openjpa.jdbc.meta.Strategy |
---|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update |
Method Detail |
---|
void setDiscriminator(Discriminator owner)
boolean select(Select sel, ClassMapping mapping)
mapping
- the known base class being selected; this may
not be the base class in the inheritance hierarchy
void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException
SQLException
ClassNotFoundException
Class getClass(JDBCStore store, ClassMapping base, Result result) throws SQLException, ClassNotFoundException
SQLException
ClassNotFoundException
SQLBuffer getClassConditions(Select sel, Joins joins, ClassMapping base, boolean subs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |