public class MySqlSqlResourceMetaData extends AbstractSqlResourceMetaData
Constructor and Description |
---|
MySqlSqlResourceMetaData() |
Modifier and Type | Method and Description |
---|---|
protected String |
getQualifiedColumnLabel(String tableName,
String qualifiedTableName,
boolean readOnly,
String label)
Building the 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 void |
setSequenceMetaData(ColumnMetaDataImpl column,
ResultSet resultSet)
Sets sequence metadata for a column with the columns query result set.
|
getAllReadColumns, getChild, getChildPlusExtTables, getChildReadColumns, getColumnDatabaseName, getColumnName, getColumnTableName, getJoin, getJoinList, getNumberTables, getParent, getParentPlusExtTables, getParentReadColumns, getQualifiedColumnName, getSqlMainQuery, getTableMap, getTables, getWriteTables, hasJoinTable, hasMultipleDatabases, init, isColumnReadOnly, isDbMetaDataUpperCase, isHierarchical, toHtml, toXml
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
readOnly
- true if column is read onlylabel
- base column labelprotected 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 void setSequenceMetaData(ColumnMetaDataImpl column, ResultSet resultSet) throws SQLException
setSequenceMetaData
in class AbstractSqlResourceMetaData
SQLException
- when a database error occursCopyright © 2011-2018 restSQL Project Contributors