public class TableMapping extends Object
| Constructor and Description |
|---|
TableMapping()
Constructor
|
TableMapping(GeoPackageCoreConnection db,
String tableName)
Constructor
|
TableMapping(String tableName,
List<? extends UserColumn> columns)
Constructor
|
TableMapping(TableInfo tableInfo)
Constructor
|
TableMapping(UserTable<? extends UserColumn> table)
Constructor
|
TableMapping(UserTable<? extends UserColumn> table,
Collection<String> droppedColumnNames)
Constructor
|
TableMapping(UserTable<? extends UserColumn> table,
String newTableName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(MappedColumn column)
Add a column
|
void |
addColumn(String columnName)
Add a column
|
void |
addDroppedColumn(String columnName)
Add a dropped column
|
MappedColumn |
getColumn(String columnName)
Get the mapped column for the column name
|
Set<String> |
getColumnNames()
Get the column names
|
Set<Map.Entry<String,MappedColumn>> |
getColumns()
Get the columns as an entry set
|
Set<String> |
getDroppedColumns()
Get a set of dropped columns
|
String |
getFromTable()
Get the from table name
|
Collection<MappedColumn> |
getMappedColumns()
Get the mapped column values
|
String |
getToTable()
Get the to table name
|
String |
getWhere()
Get the where clause
|
boolean |
hasWhere()
Check if there is a custom where clause
|
boolean |
isDroppedColumn(String columnName)
Check if the column name is a dropped column
|
boolean |
isNewTable()
Check if the table mapping is to a new table
|
boolean |
isTransferContent()
Is the transfer content flag enabled
|
MappedColumn |
removeColumn(String columnName)
Remove a column
|
boolean |
removeDroppedColumn(String columnName)
Remove a dropped column
|
void |
setFromTable(String fromTable)
Set the from table name
|
void |
setToTable(String toTable)
Set the to table name
|
void |
setTransferContent(boolean transferContent)
Set the transfer content flag
|
void |
setWhere(String where)
Set the where clause
|
public TableMapping()
public TableMapping(String tableName, List<? extends UserColumn> columns)
tableName - table namecolumns - user columnspublic TableMapping(UserTable<? extends UserColumn> table)
table - user tablepublic TableMapping(UserTable<? extends UserColumn> table, Collection<String> droppedColumnNames)
table - user tabledroppedColumnNames - dropped column namespublic TableMapping(UserTable<? extends UserColumn> table, String newTableName)
table - user tablenewTableName - new table namepublic TableMapping(TableInfo tableInfo)
tableInfo - table infopublic TableMapping(GeoPackageCoreConnection db, String tableName)
db - connectiontableName - table namepublic String getFromTable()
public void setFromTable(String fromTable)
fromTable - from table namepublic String getToTable()
public void setToTable(String toTable)
toTable - to table namepublic boolean isNewTable()
public boolean isTransferContent()
public void setTransferContent(boolean transferContent)
transferContent - true if data should be transfered to the new tablepublic void addColumn(MappedColumn column)
column - mapped columnpublic void addColumn(String columnName)
columnName - column namepublic MappedColumn removeColumn(String columnName)
columnName - column namepublic Set<Map.Entry<String,MappedColumn>> getColumns()
public Collection<MappedColumn> getMappedColumns()
public MappedColumn getColumn(String columnName)
columnName - column namepublic void addDroppedColumn(String columnName)
columnName - column namepublic boolean removeDroppedColumn(String columnName)
columnName - column namepublic Set<String> getDroppedColumns()
public boolean isDroppedColumn(String columnName)
columnName - column namepublic boolean hasWhere()
public String getWhere()
public void setWhere(String where)
where - where clauseCopyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.