public class DiscriminatorMappingInfo extends MappingInfo
SchemaGroup
used at runtime. Rather, they will be structs
with the relevant pieces of information filled in.MappingInfo.ForeignKeyDefaults, MappingInfo.TableDefaults
JOIN_FORWARD, JOIN_INVERSE, JOIN_NONE
Constructor and Description |
---|
DiscriminatorMappingInfo() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear(boolean canFlags)
Clear mapping information.
|
void |
copy(MappingInfo info)
Copy missing info from the instance to this one.
|
Column[] |
getColumns(Discriminator discrim,
Column[] tmplates,
boolean adapt)
Return the columns set for this discriminator, based on the given
templates.
|
Index |
getIndex(Discriminator discrim,
Column[] cols,
boolean adapt)
Return the index to set on the discriminator columns, or null if none.
|
String |
getValue()
Raw discriminator value string.
|
Object |
getValue(Discriminator discrim,
boolean adapt)
Return the discriminator value as an object of the right type.
|
void |
setValue(String value)
Raw discriminator value string.
|
void |
syncWith(Discriminator disc)
Synchronize internal information with the mapping data for the given
discriminator.
|
assertNoForeignKey, assertNoIndex, assertNoJoin, assertNoSchemaComponents, assertNoUnique, assertStrategy, canForeignKey, canIndex, canUnique, clear, createColumns, createForeignKey, createIndex, createTable, createTable, createUnique, getColumnIO, getColumns, getColumns, getColumns, getForeignKey, getIndex, getJoinDirection, getStrategy, getUnique, hasSchemaComponents, isImplicitRelation, mergeColumn, setCanForeignKey, setCanIndex, setCanUnique, setColumnIO, setColumns, setForeignKey, setImplicitRelation, setIndex, setJoinDirection, setStrategy, setUnique, syncColumn, syncColumns, syncForeignKey, syncIndex, syncUnique
public String getValue()
public void setValue(String value)
public Object getValue(Discriminator discrim, boolean adapt)
public Column[] getColumns(Discriminator discrim, Column[] tmplates, boolean adapt)
public Index getIndex(Discriminator discrim, Column[] cols, boolean adapt)
public void syncWith(Discriminator disc)
protected void clear(boolean canFlags)
MappingInfo
clear
in class MappingInfo
canFlags
- whether to clear information about whether we
can place indexed, foreign keys, etc on this mappingpublic void copy(MappingInfo info)
MappingInfo
copy
in class MappingInfo
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.