Top Methods
org.postgresql

public Interface PGResultSetMetaData

Known Direct Implementers
org.postgresql.jdbc.PgResultSetMetaData
Imports
org.postgresql.core.Field, java.sql.SQLException

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

underlying column name of a query result
getBaseColumnName
(int
column position (1-based)
column
)

Returns the underlying column name of a query result, or "" if it is unable to be determined.

public String

Returns:

underlying schema name of query result
getBaseSchemaName
(int
column position (1-based)
column
)

Returns the underlying schema name of query result, or "" if it is unable to be determined.

public String

Returns:

underlying table name of query result
getBaseTableName
(int
column position (1-based)
column
)

Returns the underlying table name of query result, or "" if it is unable to be determined.

public int

Returns:

0 if column data format is TEXT, or 1 if BINARY
getFormat
(int
column position (1-based)
column
)

Is a column Text or Binary?

Method Detail

getBaseColumnNameback to summary
public String getBaseColumnName(int column) throws SQLException

Returns the underlying column name of a query result, or "" if it is unable to be determined.

Parameters
column:int

column position (1-based)

Returns:String

underlying column name of a query result

Exceptions
SQLException:
if something wrong happens
Since
8.0
getBaseSchemaNameback to summary
public String getBaseSchemaName(int column) throws SQLException

Returns the underlying schema name of query result, or "" if it is unable to be determined.

Parameters
column:int

column position (1-based)

Returns:String

underlying schema name of query result

Exceptions
SQLException:
if something wrong happens
Since
8.0
getBaseTableNameback to summary
public String getBaseTableName(int column) throws SQLException

Returns the underlying table name of query result, or "" if it is unable to be determined.

Parameters
column:int

column position (1-based)

Returns:String

underlying table name of query result

Exceptions
SQLException:
if something wrong happens
Since
8.0
getFormatback to summary
public int getFormat(int column) throws SQLException

Is a column Text or Binary?

Parameters
column:int

column position (1-based)

Returns:int

0 if column data format is TEXT, or 1 if BINARY

Exceptions
SQLException:
if something wrong happens
Since
9.4
See Also
Field#BINARY_FORMAT, Field#TEXT_FORMAT