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, selectsetDiscriminatorcustomDelete, customInsert, customUpdate, delete, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomDelete, customInsert, customUpdate, delete, initialize, isCustomDelete, isCustomInsert, isCustomUpdate, updatepublic static final String ALIAS
public String getAlias()
StrategygetAlias in interface StrategygetAlias in class AbstractStrategyprotected int getJavaType()
InValueDiscriminatorStrategyJavaTypes for the discriminator
values. This method is only used during mapping installation.getJavaType in class InValueDiscriminatorStrategyprotected Object getDiscriminatorValue(ClassMapping cls)
InValueDiscriminatorStrategygetDiscriminatorValue in class InValueDiscriminatorStrategyprotected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException
InValueDiscriminatorStrategygetClass in class InValueDiscriminatorStrategyClassNotFoundExceptionpublic void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException
AbstractDiscriminatorStrategyloadSubclasses in interface DiscriminatorStrategyloadSubclasses in class AbstractDiscriminatorStrategySQLExceptionClassNotFoundExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.