public class PostgreSqlSqlResourceMetaData extends AbstractSqlResourceMetaData
Constructor and Description |
---|
PostgreSqlSqlResourceMetaData() |
Modifier and Type | Method and Description |
---|---|
protected String |
getColumnDatabaseName(SqlResourceDefinition definition,
ResultSetMetaData resultSetMetaData,
int colNumber)
Retrieves database name from result set meta data.
|
protected String |
getColumnName(SqlResourceDefinition definition,
ResultSetMetaData resultSetMetaData,
int colNumber)
Retrieves actual column name from result set meta data.
|
protected String |
getColumnTableName(SqlResourceDefinition definition,
ResultSetMetaData resultSetMetaData,
int colNumber)
Retrieves table name from result set meta data.
|
protected String |
getQualifiedColumnLabel(String tableName,
String qualifiedTableName,
boolean readOnly,
String label)
Retrieves qualified column label for disambiguating duplicate labels in SQL
statements.
|
protected String |
getQualifiedTableName(Connection connection,
String databaseName,
String tableName)
Retrieves database-specific table name used in SQL statements.
|
protected String |
getQualifiedTableName(SqlResourceDefinition definition,
ResultSetMetaData resultSetMetaData,
int colNumber)
Retrieves database-specific table name used in SQL statements.
|
protected String |
getSqlColumnsQuery()
Retrieves sql for querying columns.
|
protected String |
getSqlPkQuery()
Retrieves sql for querying primary keys.
|
protected boolean |
isColumnReadOnly(ResultSetMetaData resultSetMetaData,
int colNumber)
Return whether a column in the given result set is read-only.
|
protected void |
setSequenceMetaData(ColumnMetaDataImpl column,
ResultSet resultSet)
Sets sequence metadata for a column with the columns query result set.
|
getAllReadColumns, getChild, getChildPlusExtTables, getChildReadColumns, getJoin, getJoinList, getNumberTables, getParent, getParentPlusExtTables, getParentReadColumns, getQualifiedColumnName, getSqlMainQuery, getTableMap, getTables, getWriteTables, hasJoinTable, hasMultipleDatabases, init, isDbMetaDataUpperCase, isHierarchical, toHtml, toXml
protected String getColumnDatabaseName(SqlResourceDefinition definition, ResultSetMetaData resultSetMetaData, int colNumber) throws SQLException
getColumnDatabaseName
in class AbstractSqlResourceMetaData
SQLException
protected String getColumnName(SqlResourceDefinition definition, ResultSetMetaData resultSetMetaData, int colNumber) throws SQLException
getColumnName
in class AbstractSqlResourceMetaData
SQLException
protected String getColumnTableName(SqlResourceDefinition definition, ResultSetMetaData resultSetMetaData, int colNumber) throws SQLException
getColumnTableName
in class AbstractSqlResourceMetaData
SQLException
protected String getSqlColumnsQuery()
getSqlColumnsQuery
in class AbstractSqlResourceMetaData
protected String getSqlPkQuery()
getSqlPkQuery
in class AbstractSqlResourceMetaData
protected String getQualifiedColumnLabel(String tableName, String qualifiedTableName, boolean readOnly, String label)
database.table.label
, for example sakila.film.id
.getQualifiedColumnLabel
in class AbstractSqlResourceMetaData
protected String getQualifiedTableName(SqlResourceDefinition definition, ResultSetMetaData resultSetMetaData, int colNumber) throws SQLException
getQualifiedTableName
in class AbstractSqlResourceMetaData
SQLException
protected String getQualifiedTableName(Connection connection, String databaseName, String tableName) throws SQLException
getQualifiedTableName
in class AbstractSqlResourceMetaData
SQLException
protected boolean isColumnReadOnly(ResultSetMetaData resultSetMetaData, int colNumber) throws SQLException
isColumnReadOnly
in class AbstractSqlResourceMetaData
resultSetMetaData
- Result set metadatacolNumber
- Column number (1..N)SQLException
- if a database access error occursprotected void setSequenceMetaData(ColumnMetaDataImpl column, ResultSet resultSet) throws SQLException
setSequenceMetaData
in class AbstractSqlResourceMetaData
SQLException
- when a database error occursCopyright © 2011-2018 restSQL Project Contributors