T - the type of the attribute that this mapping is attached topublic class AnyMapping<T> extends Object
Any,
ManyToAny| Constructor and Description |
|---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping. |
| Modifier and Type | Method and Description |
|---|---|
String |
getPredicate(T value)
Builds a predicate to find the row with the given value.
|
void |
setColumnValue(TableStatement statement,
T value)
Sets the mapping value for the given value to the statement.
|
public AnyMapping(GeneratorContext context, AttributeAccessor attribute, GeneratorTable containerTabble, javax.persistence.Column typeColumn, String metaDefName)
AnyMapping.context - the current generation contextattribute - the attribute that this mapping is attached tocontainerTabble - the table that contains the type columntypeColumn - contains the meta information about the generated type columnmetaDefName - the name of the global meta definition, if any is used (otherwise the one from the attribute is used)public String getPredicate(T value)
value - the current value to find as rowpublic void setColumnValue(TableStatement statement, T value)
statement - the statement of the current rowvalue - the value of the current rowCopyright © 2020 fastnate.org. All rights reserved.