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(EmbeddableTypeImpl<?> type,
String defaultName,
ElementMapping<?> elementMapping)
Links
|
void |
link(TypeImpl<?> type,
String defaultName,
ColumnMetadata metadata,
EnumType enumType,
TemporalType temporalType,
boolean lob) |
void |
performInsert(ConnectionImpl connection,
Object source,
Object key,
Object destination,
int order)
Performs the insert for the join.
|
void |
performRemove(ConnectionImpl connection,
Object source,
Object key,
Object destination)
Performs the remove for the join.
|
void |
performRemoveAll(ConnectionImpl connection,
Object source)
Performs the remove for the join.
|
void |
setKeyColumn(ColumnMetadata mapKeyColumn,
String name,
TemporalType mapKeyTemporalType,
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(EmbeddableTypeImpl<?> type, String defaultName, ElementMapping<?> elementMapping)
type - the type of the collectiondefaultName - the default nameelementMapping - the element mappingpublic void link(TypeImpl<?> type, String defaultName, ColumnMetadata metadata, EnumType enumType, TemporalType temporalType, boolean lob)
type - 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 performInsert(ConnectionImpl connection, Object source, Object key, Object destination, int order) throws SQLException
performInsert in interface JoinableTableconnection - the connectionsource - the source instancekey - the key objectdestination - the destination instanceorder - the order of the columnSQLException - thrown if there is an underlying SQL Exceptionpublic void performRemove(ConnectionImpl 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(ConnectionImpl 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, TemporalType mapKeyTemporalType, 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.