public class CollectionTable extends AbstractTable implements JoinableTable
| Constructor and Description |
|---|
CollectionTable(EntityTypeImpl<?> entity,
CollectionTableMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
ForeignKey |
getKey()
Returns the key.
|
MapKeyColumn |
getKeyColumn()
Returns the key column of the collection table.
|
OrderColumn |
getOrderColumn()
Returns the order column.
|
void |
link(ElementCollectionMapping<?,?,?> mapping,
TypeImpl<?> type,
String defaultName,
ColumnMetadata metadata,
javax.persistence.EnumType enumType,
javax.persistence.TemporalType temporalType,
boolean lob) |
void |
link(EmbeddableTypeImpl<?> type,
String defaultName,
ElementMapping<?> elementMapping)
Links
|
void |
performInsert(Connection connection,
Object source,
Joinable[] batch,
int size)
Performs the insert for the join.
|
void |
performRemove(Connection connection,
Object source,
Object key,
Object destination)
Performs the remove for the join.
|
void |
performRemoveAll(Connection connection,
Object source)
Performs the remove for the join.
|
void |
setKeyColumn(ColumnMetadata mapKeyColumn,
String name,
javax.persistence.TemporalType mapKeyTemporalType,
javax.persistence.EnumType mapKeyEnumType,
Class<?> mapKeyJavaType)
Sets the map key column.
|
void |
setOrderColumn(ColumnMetadata orderColumn,
String name)
Sets the order column for the owned list type joins
|
addColumn, addForeignKey, getCatalog, getColumnNames, getColumns, getForeignKeys, getInsertColumns, getInsertSql, getLocator, getName, getPkColumnNames, getQName, getSchema, getSelectVersionColumns, getSelectVersionSql, getUniqueConstraints, getUpdateColumns, getUpdateSql, getVersionUpdateColumns, getVersionUpdateSql, setNamepublic CollectionTable(EntityTypeImpl<?> entity, CollectionTableMetadata metadata)
entity - the owner typemetadata - the metadatapublic ForeignKey getKey()
public MapKeyColumn getKeyColumn()
public OrderColumn getOrderColumn()
public void link(ElementCollectionMapping<?,?,?> mapping, TypeImpl<?> type, String defaultName, ColumnMetadata metadata, javax.persistence.EnumType enumType, javax.persistence.TemporalType temporalType, boolean lob)
mapping - the mappingtype - the type of the collectiondefaultName - the default namemetadata - the column metadatalob - if the column is a lob typetemporalType - the temporal typeenumType - the enum typepublic void link(EmbeddableTypeImpl<?> type, String defaultName, ElementMapping<?> elementMapping)
type - the type of the collectiondefaultName - the default nameelementMapping - the element mappingpublic void performInsert(Connection connection, Object source, Joinable[] batch, int size) throws SQLException
performInsert in interface JoinableTableconnection - the connectionsource - the source instancebatch - the array of joinable batchsize - the size of the batchSQLException - thrown if there is an underlying SQL Exceptionpublic void performRemove(Connection connection, Object source, Object key, Object destination) throws SQLException
performRemove in interface JoinableTableconnection - the connectionsource - the source instancekey - the key objectdestination - the destination instanceSQLException - thrown if there is an underlying SQL Exceptionpublic void performRemoveAll(Connection connection, Object source) throws SQLException
performRemoveAll in interface JoinableTableconnection - the connectionsource - the source instanceSQLException - thrown if there is an underlying SQL Exceptionpublic void setKeyColumn(ColumnMetadata mapKeyColumn, String name, javax.persistence.TemporalType mapKeyTemporalType, javax.persistence.EnumType mapKeyEnumType, Class<?> mapKeyJavaType)
mapKeyColumn - the map key column definitionname - the name of the columnmapKeyTemporalType - the temporal type of the map keymapKeyEnumType - the enum type of the map keymapKeyJavaType - the java type of the map's keypublic void setOrderColumn(ColumnMetadata orderColumn, String name)
orderColumn - the order column definitionname - the name of the columnCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.