public interface DiscriminatorStrategy extends Strategy
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
hasClassConditions(ClassMapping base,
boolean subs)
Whether any class conditions are necessary.
|
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.
|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update
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 hierarchyvoid loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException
SQLException
ClassNotFoundException
Class<?> getClass(JDBCStore store, ClassMapping base, Result result) throws SQLException, ClassNotFoundException
SQLException
ClassNotFoundException
boolean hasClassConditions(ClassMapping base, boolean subs)
SQLBuffer getClassConditions(Select sel, Joins joins, ClassMapping base, boolean subs)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.