Package com.liferay.portal.kernel.dao.db
Class DBInspector
Object
com.liferay.portal.kernel.dao.db.DBInspector
- Author:
- Adolfo Pérez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnsResultSet(String tableName) getTableNames(String tableNamePattern) booleanbooleanhasColumnType(String tableName, String columnName, String columnType) booleanbooleanbooleanbooleanDeprecated.booleanbooleanisControlTable(String tableName) booleanisNullable(String tableName, String columnName) booleanisObjectTable(List<Long> companyIds, String tableName) booleanisPartitionedControlTable(String tableName) normalizeName(String name) normalizeName(String name, DatabaseMetaData databaseMetaData)
-
Constructor Details
-
DBInspector
-
-
Method Details
-
getCatalog
- Throws:
SQLException
-
getColumnsResultSet
- Throws:
SQLException
-
getSchema
-
getTableNames
- Throws:
SQLException
-
hasColumn
- Throws:
Exception
-
hasColumnType
public boolean hasColumnType(String tableName, String columnName, String columnType) throws Exception - Throws:
Exception
-
hasIndex
- Throws:
Exception
-
hasRows
-
hasTable
- Throws:
Exception
-
hasTable
Deprecated.As of Cavanaugh (7.4.x), replaced byhasTable(String)- Throws:
Exception
-
hasView
- Throws:
Exception
-
isControlTable
-
isNullable
- Throws:
SQLException
-
isObjectTable
-
isPartitionedControlTable
-
normalizeName
- Throws:
SQLException
-
normalizeName
- Throws:
SQLException
-
hasTable(String)