パッケージ org.postgresql.core
クラス Field
java.lang.Object
org.postgresql.core.Field
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタコンストラクタ説明Constructor without mod parameter.Construct a field based on the information fed to it.Construct a field based on the information fed to it. -
メソッドの概要
修飾子とタイプメソッド説明int
int
@Nullable FieldMetadata
int
getMod()
int
getOID()
int
int
int
boolean
void
setFormat
(int format) void
setMetadata
(FieldMetadata metadata) void
void
setSQLType
(int sqlType) toString()
void
-
フィールド詳細
-
コンストラクタの詳細
-
Field
Construct a field based on the information fed to it.- パラメータ:
name
- the name (column name and label) of the fieldoid
- the OID of the fieldlength
- the length of the fieldmod
- modifier
-
Field
Constructor without mod parameter.- パラメータ:
name
- the name (column name and label) of the fieldoid
- the OID of the field
-
Field
Construct a field based on the information fed to it.- パラメータ:
columnLabel
- the column label 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...)
-
-
メソッドの詳細
-
getOID
@Pure public int getOID()- 戻り値:
- the oid of this Field's data type
-
getMod
public int getMod()- 戻り値:
- the mod of this Field's data type
-
getColumnLabel
- 戻り値:
- the column label of this Field's data type
-
getLength
public int getLength()- 戻り値:
- the length of this Field's data type
-
getFormat
public int getFormat()- 戻り値:
- the format of this Field's data (text=0, binary=1)
-
setFormat
public void setFormat(int format) - パラメータ:
format
- the format of this Field's data (text=0, binary=1)
-
getTableOid
public int getTableOid()- 戻り値:
- the columns' table oid, zero if no oid available
-
getPositionInTable
public int getPositionInTable() -
getMetadata
-
setMetadata
-
toString
-
setSQLType
public void setSQLType(int sqlType) -
getSQLType
public int getSQLType() -
setPGType
-
getPGType
-
isTypeInitialized
public boolean isTypeInitialized() -
upperCaseLabel
public void upperCaseLabel()
-