public static class JDBCResourceManager.JDBCSchema
extends java.lang.Object
JDBCResourceManager
instances.Constructor and Description |
---|
JDBCSchema(java.util.Map<java.lang.String,java.lang.String> columns,
java.lang.String idColumn)
Creates a
JDBCResourceManager.JDBCSchema object using the map given and assigns the unique id column to
the given idColumn. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdColumn()
Returns the name of the column used as the unique ID column.
|
java.lang.String |
toSqlStatement()
Return this schema object as a SQL statement.
|
public JDBCSchema(java.util.Map<java.lang.String,java.lang.String> columns, java.lang.String idColumn)
JDBCResourceManager.JDBCSchema
object using the map given and assigns the unique id column to
the given idColumn.
The columns map should map column name to SQL type. For example, {{"example": "VARCHAR(200)}, {"example2": "INTEGER"}, {"example3": "BOOLEAN"}}
columns
- a map containing the schema columns.idColumn
- the unique id column.