public class ClassNameDiscriminatorStrategy extends InValueDiscriminatorStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
disc, isFinal
Constructor and Description |
---|
ClassNameDiscriminatorStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Return the alias of this strategy.
|
protected Class |
getClass(Object val,
JDBCStore store)
Convert the given discriminator value to the corresponding class.
|
protected 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 String ALIAS
public 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 Object getDiscriminatorValue(ClassMapping cls)
InValueDiscriminatorStrategy
getDiscriminatorValue
in class InValueDiscriminatorStrategy
protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException
InValueDiscriminatorStrategy
getClass
in class InValueDiscriminatorStrategy
ClassNotFoundException
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException
AbstractDiscriminatorStrategy
loadSubclasses
in interface DiscriminatorStrategy
loadSubclasses
in class AbstractDiscriminatorStrategy
SQLException
ClassNotFoundException
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.