|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.meta.MappingInfo org.apache.openjpa.jdbc.meta.ValueMappingInfo
public class ValueMappingInfo
Information about the mapping from a field value to the schema, in
raw form. The columns and tables used in mapping info will not be part of
the SchemaGroup
used at runtime. Rather, they will be structs
with the relevant pieces of information filled in.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.meta.MappingInfo |
---|
MappingInfo.ForeignKeyDefaults, MappingInfo.TableDefaults |
Field Summary |
---|
Fields inherited from class org.apache.openjpa.jdbc.meta.MappingInfo |
---|
JOIN_FORWARD, JOIN_INVERSE, JOIN_NONE |
Constructor Summary | |
---|---|
ValueMappingInfo()
|
Method Summary | |
---|---|
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,
String name,
Column[] tmplates,
Table table,
boolean adapt)
Return the columns for this value, based on the given templates. |
Index |
getIndex(ValueMapping val,
String name,
boolean adapt)
Return an index for the given columns, or null if none. |
ForeignKey |
getInverseTypeJoin(ValueMapping val,
String name,
boolean adapt)
Return the join from the related type to this value. |
Column |
getNullIndicatorColumn(ValueMapping val,
String name,
Table table,
boolean adapt)
Return the null indicator column for this value, or null if none. |
ForeignKey |
getTypeJoin(ValueMapping val,
String name,
boolean inversable,
boolean adapt)
Return the join from this value to its related type. |
Unique |
getUnique(ValueMapping val,
String name,
boolean adapt)
Return a unique constraint for the given columns, or null if none. |
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 |
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. |
Methods inherited from class org.apache.openjpa.jdbc.meta.MappingInfo |
---|
assertNoForeignKey, assertNoIndex, assertNoJoin, assertNoSchemaComponents, assertNoUnique, assertStrategy, canForeignKey, canIndex, canUnique, clear, createColumns, createForeignKey, createIndex, createTable, createUnique, getColumnIO, getColumns, getForeignKey, getIndex, getJoinDirection, getStrategy, getUnique, hasSchemaComponents, mergeColumn, setCanForeignKey, setCanIndex, setCanUnique, setColumnIO, setColumns, setForeignKey, setIndex, setJoinDirection, setStrategy, setUnique, syncColumn, syncColumns, syncForeignKey, syncIndex, syncUnique |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueMappingInfo()
Method Detail |
---|
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 getInverseTypeJoin(ValueMapping val, String name, boolean adapt)
public Column[] getColumns(ValueMapping val, String name, Column[] tmplates, Table table, boolean adapt)
public int findTargetField(Column[] tmplates, String target)
public Unique getUnique(ValueMapping val, String name, boolean adapt)
public Index getIndex(ValueMapping val, String name, boolean adapt)
public Column getNullIndicatorColumn(ValueMapping val, String 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |