public class ValueMapDiscriminatorStrategy extends InValueDiscriminatorStrategy
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
disc, isFinal
Constructor and Description |
---|
ValueMapDiscriminatorStrategy() |
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 |
map(boolean adapt)
Map the owning mapping using this strategy.
|
getClass, getClassConditions, hasClassConditions, insert, select
loadSubclasses, 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 map(boolean adapt)
Strategy
map
in interface Strategy
map
in class InValueDiscriminatorStrategy
adapt
- if true, use the owning mapping's raw mapping info
to set its ORM data; if false, ORM data will already be setCopyright © 2006–2022 Apache Software Foundation. All rights reserved.