public class JoinTable extends Object
Constructor | Description |
---|---|
JoinTable(String tableName,
Set<String> idAttributeNames,
Map<String,String> idColumnMappings,
Map<String,String> keyColumnMappings,
Map<String,String> keyColumnTypes,
Set<String> targetAttributeNames,
Map<String,String> targetIdColumnMappings) |
Constructs a JoinTable.
|
Modifier and Type | Method | Description |
---|---|---|
Set<String> |
getIdAttributeNames() |
Returns the id attribute names of the owning entity that map to the join table.
|
Map<String,String> |
getIdColumnMappings() |
Returns the foreign key mappings of the join tables column names to the owner table column names.
|
Map<String,String> |
getKeyColumnMappings() |
Returns the column mappings of the key/index column if there are any, otherwise
null . |
Map<String,String> |
getKeyColumnTypes() |
Returns the column types of the key/index columns if there are any, otherwise
null . |
String |
getTableName() |
The name of the join table.
|
Set<String> |
getTargetAttributeNames() |
Returns the id attribute names of the target entity that map to the join table.
|
Map<String,String> |
getTargetColumnMappings() |
Returns the foreign key mappings of the join tables column names to the target table column names.
|
public JoinTable(String tableName, Set<String> idAttributeNames, Map<String,String> idColumnMappings, Map<String,String> keyColumnMappings, Map<String,String> keyColumnTypes, Set<String> targetAttributeNames, Map<String,String> targetIdColumnMappings)
tableName
- The join table nameidAttributeNames
- The attribute names of the owning entityidColumnMappings
- The id column mappingskeyColumnMappings
- The key column mappingskeyColumnTypes
- The key column typestargetAttributeNames
- The attribute names of the target entitytargetIdColumnMappings
- The target id column mappingspublic String getTableName()
public Set<String> getIdAttributeNames()
public Map<String,String> getIdColumnMappings()
public Map<String,String> getKeyColumnMappings()
null
.
In case of a simple key/index type, this returns the column name mapping to itself.
Otherwise returns foreign key mappings of the join tables key column names to the key target table column names.
The keys are column names of the join table. Values are the column names of the key target table.public Map<String,String> getKeyColumnTypes()
null
.public Set<String> getTargetAttributeNames()
public Map<String,String> getTargetColumnMappings()
Copyright © 2014–2019 Blazebit. All rights reserved.