public class Field extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BINARY_FORMAT |
static int |
TEXT_FORMAT |
Constructor and Description |
---|
Field(String name,
int oid)
Constructor without mod parameter.
|
Field(String name,
int oid,
int length,
int mod)
Construct a field based on the information fed to it.
|
Field(String columnLabel,
String columnName,
int oid,
int length,
int mod,
int tableOid,
int positionInTable)
Construct a field based on the information fed to it.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoIncrement() |
String |
getColumnLabel() |
String |
getColumnName() |
int |
getFormat() |
int |
getLength() |
int |
getMod() |
int |
getNullable() |
int |
getOID() |
String |
getPGType() |
int |
getPositionInTable() |
String |
getSchemaName() |
int |
getSQLType() |
String |
getTableName() |
int |
getTableOid() |
boolean |
isTypeInitialized() |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setColumnName(String columnName) |
void |
setFormat(int format) |
void |
setNullable(int nullable) |
void |
setPGType(String pgType) |
void |
setSchemaName(String schemaName) |
void |
setSQLType(int sqlType) |
void |
setTableName(String tableName) |
String |
toString() |
public static final int TEXT_FORMAT
public static final int BINARY_FORMAT
public Field(String name, int oid, int length, int mod)
name
- the name (column name and label) of the fieldoid
- the OID of the fieldlength
- the length of the fieldmod
- modifierpublic Field(String name, int oid)
name
- the name (column name and label) of the fieldoid
- the OID of the fieldpublic Field(String columnLabel, String columnName, int oid, int length, int mod, int tableOid, int positionInTable)
columnLabel
- the column label of the fieldcolumnName
- the column label the name of the fieldoid
- the OID of the fieldlength
- the length of the fieldmod
- modifiertableOid
- the OID of the columns' tablepositionInTable
- the position of column in the table (first column is 1, second column is 2, etc...)public int getOID()
public int getMod()
public String getColumnLabel()
public int getLength()
public int getFormat()
public void setFormat(int format)
format
- the format of this Field's data (text=0, binary=1)public int getTableOid()
public int getPositionInTable()
public void setNullable(int nullable)
public int getNullable()
public void setAutoIncrement(boolean autoIncrement)
public boolean getAutoIncrement()
public void setColumnName(String columnName)
public String getColumnName()
public void setTableName(String tableName)
public String getTableName()
public void setSchemaName(String schemaName)
public String getSchemaName()
public void setSQLType(int sqlType)
public int getSQLType()
public void setPGType(String pgType)
public String getPGType()
public boolean isTypeInitialized()
Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.