public class GeneratorTable extends Object
| Constructor and Description |
|---|
GeneratorTable(int index,
String catalog,
String schema,
String name,
String qualifiedName,
GeneratorContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalog()
The optional name of the catalog that contains this table,
null if the default catalog is used. |
Map<String,GeneratorColumn> |
getColumns()
The known columns for this table.
|
GeneratorContext |
getContext()
The current generator context.
|
int |
getIndex()
The index of this table in the list of all available tables.
|
String |
getName()
The name of this table.
|
String |
getQualifiedName()
The fully qualified name of this table, including any optional catalog and schema name.
|
String |
getSchema()
The optional name of the schema that contains this table,
null if the default schema is used. |
GeneratorColumn |
resolveColumn(String columnName)
Adds or finds a column which is part of an insert statement to this statement.
|
GeneratorColumn |
resolveColumn(String columnName,
boolean autoGenerated)
Adds or finds a column which is part of this table.
|
String |
toString() |
@ConstructorProperties(value={"index","catalog","schema","name","qualifiedName","context"}) @Generated(value="lombok") public GeneratorTable(int index, String catalog, String schema, String name, String qualifiedName, GeneratorContext context)
public GeneratorColumn resolveColumn(String columnName)
columnName - the name of the new columnpublic GeneratorColumn resolveColumn(String columnName, boolean autoGenerated)
columnName - the name of the new columnautoGenerated - true if this column is not part of any insert statement, because it is generated by the
database@Generated(value="lombok") public int getIndex()
@Generated(value="lombok") public String getCatalog()
null if the default catalog is used.@Generated(value="lombok") public String getSchema()
null if the default schema is used.@Generated(value="lombok") public String getName()
@Generated(value="lombok") public String getQualifiedName()
@Generated(value="lombok") public GeneratorContext getContext()
@Generated(value="lombok") public Map<String,GeneratorColumn> getColumns()
Copyright © 2020 fastnate.org. All rights reserved.