public class ClassNameDiscriminatorStrategy extends InValueDiscriminatorStrategy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALIAS |
disc, isFinal
Constructor and Description |
---|
ClassNameDiscriminatorStrategy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Return the alias of this strategy.
|
protected java.lang.Class |
getClass(java.lang.Object val,
JDBCStore store)
Convert the given discriminator value to the corresponding class.
|
protected java.lang.Object |
getDiscriminatorValue(ClassMapping cls)
Return the discriminator value for the given type.
|
protected int |
getJavaType()
Return the Java type code from
JavaTypes for the discriminator
values. |
void |
loadSubclasses(JDBCStore store)
By default, logs a warning that this discriminator cannot calculate
its list of subclasses on its own.
|
getClass, getClassConditions, hasClassConditions, insert, map, select
setDiscriminator
customDelete, customInsert, customUpdate, delete, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customDelete, customInsert, customUpdate, delete, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, update
public static final java.lang.String ALIAS
public java.lang.String getAlias()
Strategy
getAlias
in interface Strategy
getAlias
in class AbstractStrategy
protected int getJavaType()
InValueDiscriminatorStrategy
JavaTypes
for the discriminator
values. This method is only used during mapping installation.getJavaType
in class InValueDiscriminatorStrategy
protected java.lang.Object getDiscriminatorValue(ClassMapping cls)
InValueDiscriminatorStrategy
getDiscriminatorValue
in class InValueDiscriminatorStrategy
protected java.lang.Class getClass(java.lang.Object val, JDBCStore store) throws java.lang.ClassNotFoundException
InValueDiscriminatorStrategy
getClass
in class InValueDiscriminatorStrategy
java.lang.ClassNotFoundException
public void loadSubclasses(JDBCStore store) throws java.sql.SQLException, java.lang.ClassNotFoundException
AbstractDiscriminatorStrategy
loadSubclasses
in interface DiscriminatorStrategy
loadSubclasses
in class AbstractDiscriminatorStrategy
java.sql.SQLException
java.lang.ClassNotFoundException