public class ValueMappingInfo 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 |
---|
ValueMappingInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canIndicateNull()
Whether user has explicitly turned null indicator column off.
|
protected void |
clear(boolean canFlags)
Clear mapping information.
|
void |
copy(MappingInfo info)
Copy missing info from the instance to this one.
|
int |
findTargetField(Column[] tmplates,
String target)
Return the position of the template column with the given target field.
|
Column[] |
getColumns(ValueMapping val,
DBIdentifier name,
Column[] tmplates,
Table table,
boolean adapt) |
Column[] |
getColumns(ValueMapping val,
String name,
Column[] tmplates,
Table table,
boolean adapt)
Deprecated.
|
Index |
getIndex(ValueMapping val,
DBIdentifier name,
boolean adapt) |
Index |
getIndex(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
ForeignKey |
getInverseTypeJoin(ValueMapping val,
DBIdentifier name,
boolean adapt) |
ForeignKey |
getInverseTypeJoin(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
List<Column> |
getMapsIdColumns()
Raw column data.
|
Column |
getNullIndicatorColumn(ValueMapping val,
DBIdentifier name,
Table table,
boolean adapt) |
Column |
getNullIndicatorColumn(ValueMapping val,
String name,
Table table,
boolean adapt)
Deprecated.
|
Table |
getTable(ValueMapping val) |
ForeignKey |
getTypeJoin(ValueMapping val,
DBIdentifier name,
boolean inversable,
boolean adapt) |
ForeignKey |
getTypeJoin(ValueMapping val,
String name,
boolean inversable,
boolean adapt)
Deprecated.
|
Unique |
getUnique(ValueMapping val,
DBIdentifier name,
boolean adapt) |
Unique |
getUnique(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
boolean |
getUseClassCriteria()
Whether to use class criteria when joining to related type.
|
void |
setCanIndicateNull(boolean ind)
Whether user has explicitly turned null indicator column off.
|
void |
setMapsIdColumns(List<Column> cols)
Raw column data.
|
void |
setUseClassCriteria(boolean criteria)
Whether to use class criteria when joining to related type.
|
void |
syncWith(ValueMapping val)
Synchronize internal information with the mapping data for the given
value.
|
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 boolean getUseClassCriteria()
public void setUseClassCriteria(boolean criteria)
public boolean canIndicateNull()
public void setCanIndicateNull(boolean ind)
public ForeignKey getTypeJoin(ValueMapping val, String name, boolean inversable, boolean adapt)
name
- base name for value mappinginversable
- whether an inverse join is allowedpublic ForeignKey getTypeJoin(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt)
public Table getTable(ValueMapping val)
public ForeignKey getInverseTypeJoin(ValueMapping val, String name, boolean adapt)
public ForeignKey getInverseTypeJoin(ValueMapping val, DBIdentifier name, boolean adapt)
public Column[] getColumns(ValueMapping val, String name, Column[] tmplates, Table table, boolean adapt)
public Column[] getColumns(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt)
public int findTargetField(Column[] tmplates, String target)
public Unique getUnique(ValueMapping val, String name, boolean adapt)
public Unique getUnique(ValueMapping val, DBIdentifier name, boolean adapt)
public Index getIndex(ValueMapping val, String name, boolean adapt)
public Index getIndex(ValueMapping val, DBIdentifier name, boolean adapt)
public Column getNullIndicatorColumn(ValueMapping val, String name, Table table, boolean adapt)
public Column getNullIndicatorColumn(ValueMapping val, DBIdentifier name, Table table, boolean adapt)
public void syncWith(ValueMapping val)
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–2017 Apache Software Foundation. All rights reserved.