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) boolean
boolean
hasColumnType
(String tableName, String columnName, String columnType) boolean
boolean
boolean
boolean
Deprecated.boolean
boolean
isControlTable
(String tableName) boolean
isNullable
(String tableName, String columnName) boolean
isObjectTable
(List<Long> companyIds, String tableName) boolean
isPartitionedControlTable
(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)