@Immutable public class ColumnMetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
columnName |
private boolean |
key |
private int |
length |
private boolean |
optional |
private PostgresType |
postgresType |
private int |
scale |
private String |
typeName |
| Constructor and Description |
|---|
ColumnMetaData(String columnName,
PostgresType postgresType,
boolean key,
boolean optional,
int typeModifier)
Create a metadata structure representing a column.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName() |
int |
getLength() |
PostgresType |
getPostgresType() |
int |
getScale() |
String |
getTypeName() |
boolean |
isKey() |
boolean |
isOptional() |
private final String columnName
private final PostgresType postgresType
private final boolean key
private final boolean optional
private final int length
private final int scale
private final String typeName
ColumnMetaData(String columnName, PostgresType postgresType, boolean key, boolean optional, int typeModifier)
columnName - name of the column; must not be nullpostgresType - postgres database type; must not be nullkey - true if column is part of the primary key, false otherwiseoptional - true if the column is considered optional, false otherwisetypeModifier - the attribute type modifierpublic String getColumnName()
public PostgresType getPostgresType()
public boolean isKey()
public boolean isOptional()
public int getLength()
public int getScale()
public String getTypeName()
Copyright © 2019 JBoss by Red Hat. All rights reserved.