public class JoinTable extends Object
Constructor and Description |
---|
JoinTable(String tableName,
Map<String,String> idColumnMappings,
Map<String,String> keyColumnMappings,
Map<String,String> targetIdColumnMappings)
Constructs a JoinTable.
|
Modifier and Type | Method and Description |
---|---|
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 . |
String |
getTableName()
The name of 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, Map<String,String> idColumnMappings, Map<String,String> keyColumnMappings, Map<String,String> targetIdColumnMappings)
tableName
- The join table nameidColumnMappings
- The id column mappingskeyColumnMappings
- The key column mappingstargetIdColumnMappings
- The target id column mappingspublic String getTableName()
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> getTargetColumnMappings()
Copyright © 2014–2018 Blazebit. All rights reserved.