public class GeneratorTable extends Object
Modifier and Type | Field and Description |
---|---|
private String |
catalog
The optional name of the catalog that contains this table,
null if the default catalog is used. |
private Map<String,GeneratorColumn> |
columns
The known columns for this table.
|
private GeneratorContext |
context
The current generator context.
|
private int |
index
The index of this table in the list of all available tables.
|
private String |
name
The name of this table.
|
private String |
qualifiedName
The fully qualified name of this table, including any optional catalog and schema name.
|
private String |
schema
The optional name of the schema that contains this table,
null if the default schema is used. |
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() |
private final int index
private final String catalog
null
if the default catalog is used.private final String schema
null
if the default schema is used.private final String name
private final String qualifiedName
private final GeneratorContext context
private final Map<String,GeneratorColumn> columns
@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 © 2022 fastnate.org. All rights reserved.