TColumn - public abstract class UserTable<TColumn extends UserColumn> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
UserTable(String tableName,
List<TColumn> columns)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUniqueConstraint(UserUniqueConstraint<TColumn> uniqueConstraint)
Add unique constraint
|
int |
columnCount()
Get the column count
|
protected void |
duplicateCheck(int index,
Integer previousIndex,
String column)
Check for duplicate column names
|
TColumn |
getColumn(int index)
Get the column at the index
|
TColumn |
getColumn(String columnName)
Get the column of the column name
|
int |
getColumnIndex(String columnName)
Get the column index of the column name
|
String |
getColumnName(int index)
Get the column name at the index
|
String[] |
getColumnNames()
Get the array of column names
|
List<TColumn> |
getColumns()
Get the list of columns
|
TColumn |
getPkColumn()
Get the primary key column
|
int |
getPkColumnIndex()
Get the primary key column index
|
String |
getTableName()
Get the table name
|
List<UserUniqueConstraint<TColumn>> |
getUniqueConstraints()
Get the unique constraints
|
protected void |
missingCheck(Integer index,
String column)
Check for missing columns
|
protected void |
typeCheck(GeoPackageDataType expected,
TColumn column)
Check for the expected data type
|
protected void duplicateCheck(int index,
Integer previousIndex,
String column)
tableName - index - previousIndex - column - protected void typeCheck(GeoPackageDataType expected, TColumn column)
expected - column - protected void missingCheck(Integer index, String column)
tableName - index - column - public int getColumnIndex(String columnName)
columnName - public String[] getColumnNames()
public String getColumnName(int index)
index - public TColumn getColumn(int index)
index - public TColumn getColumn(String columnName)
columnName - public int columnCount()
public String getTableName()
public int getPkColumnIndex()
public TColumn getPkColumn()
public void addUniqueConstraint(UserUniqueConstraint<TColumn> uniqueConstraint)
uniqueConstraint - public List<UserUniqueConstraint<TColumn>> getUniqueConstraints()
Copyright © 2016 National Geospatial-Intelligence Agency. All rights reserved.