com.liferay.portal.kernel.dao.db
Interface DB
- All Known Implementing Classes:
- BaseDB, DB2DB, DBUtil, DerbyDB, FirebirdDB, HypersonicDB, InformixDB, IngresDB, InterBaseDB, JDataStoreDB, MySQLDB, OracleDB, PostgreSQLDB, SAPDB, SQLServerDB, SybaseDB
public interface DB
Method Summary |
void |
buildCreateFile(String sqlDir,
String databaseName)
|
void |
buildCreateFile(String sqlDir,
String databaseName,
int population)
|
String |
buildSQL(String template)
|
void |
buildSQLFile(String sqlDir,
String fileName)
|
List<Index> |
getIndexes()
|
String |
getTemplateFalse()
|
String |
getTemplateTrue()
|
String |
getType()
|
long |
increment()
|
boolean |
isSupportsAlterColumnName()
|
boolean |
isSupportsAlterColumnType()
|
boolean |
isSupportsDateMilliseconds()
|
boolean |
isSupportsScrollableResults()
|
boolean |
isSupportsStringCaseSensitiveQuery()
|
boolean |
isSupportsUpdateWithInnerJoin()
|
void |
runSQL(Connection con,
String sql)
|
void |
runSQL(Connection con,
String[] sqls)
|
void |
runSQL(String sql)
|
void |
runSQL(String[] sqls)
|
void |
runSQLTemplate(String path)
|
void |
runSQLTemplate(String path,
boolean failOnError)
|
void |
runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError)
|
void |
setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
|
void |
updateIndexes(String tablesSQL,
String indexesSQL,
String indexesProperties,
boolean dropStaleIndexes)
|
MINIMAL
static final int MINIMAL
- See Also:
- Constant Field Values
POPULATED
static final int POPULATED
- See Also:
- Constant Field Values
SHARDED
static final int SHARDED
- See Also:
- Constant Field Values
TYPE_DB2
static final String TYPE_DB2
- See Also:
- Constant Field Values
TYPE_DERBY
static final String TYPE_DERBY
- See Also:
- Constant Field Values
TYPE_FIREBIRD
static final String TYPE_FIREBIRD
- See Also:
- Constant Field Values
TYPE_HYPERSONIC
static final String TYPE_HYPERSONIC
- See Also:
- Constant Field Values
TYPE_INFORMIX
static final String TYPE_INFORMIX
- See Also:
- Constant Field Values
TYPE_INGRES
static final String TYPE_INGRES
- See Also:
- Constant Field Values
TYPE_INTERBASE
static final String TYPE_INTERBASE
- See Also:
- Constant Field Values
TYPE_JDATASTORE
static final String TYPE_JDATASTORE
- See Also:
- Constant Field Values
TYPE_MYSQL
static final String TYPE_MYSQL
- See Also:
- Constant Field Values
TYPE_ORACLE
static final String TYPE_ORACLE
- See Also:
- Constant Field Values
TYPE_POSTGRESQL
static final String TYPE_POSTGRESQL
- See Also:
- Constant Field Values
TYPE_SAP
static final String TYPE_SAP
- See Also:
- Constant Field Values
TYPE_SQLSERVER
static final String TYPE_SQLSERVER
- See Also:
- Constant Field Values
TYPE_SYBASE
static final String TYPE_SYBASE
- See Also:
- Constant Field Values
TYPE_ALL
static final String[] TYPE_ALL
buildCreateFile
void buildCreateFile(String sqlDir,
String databaseName)
throws IOException
- Throws:
IOException
buildCreateFile
void buildCreateFile(String sqlDir,
String databaseName,
int population)
throws IOException
- Throws:
IOException
buildSQL
String buildSQL(String template)
throws IOException
- Throws:
IOException
buildSQLFile
void buildSQLFile(String sqlDir,
String fileName)
throws IOException
- Throws:
IOException
getIndexes
List<Index> getIndexes()
throws SQLException
- Throws:
SQLException
getTemplateFalse
String getTemplateFalse()
getTemplateTrue
String getTemplateTrue()
getType
String getType()
increment
long increment()
throws SystemException
- Throws:
SystemException
isSupportsAlterColumnName
boolean isSupportsAlterColumnName()
isSupportsAlterColumnType
boolean isSupportsAlterColumnType()
isSupportsDateMilliseconds
boolean isSupportsDateMilliseconds()
isSupportsScrollableResults
boolean isSupportsScrollableResults()
isSupportsStringCaseSensitiveQuery
boolean isSupportsStringCaseSensitiveQuery()
isSupportsUpdateWithInnerJoin
boolean isSupportsUpdateWithInnerJoin()
runSQL
void runSQL(String sql)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQL
void runSQL(Connection con,
String sql)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQL
void runSQL(String[] sqls)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQL
void runSQL(Connection con,
String[] sqls)
throws IOException,
SQLException
- Throws:
IOException
SQLException
runSQLTemplate
void runSQLTemplate(String path)
throws IOException,
NamingException,
SQLException
- Throws:
IOException
NamingException
SQLException
runSQLTemplate
void runSQLTemplate(String path,
boolean failOnError)
throws IOException,
NamingException,
SQLException
- Throws:
IOException
NamingException
SQLException
runSQLTemplateString
void runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError)
throws IOException,
NamingException,
SQLException
- Throws:
IOException
NamingException
SQLException
setSupportsStringCaseSensitiveQuery
void setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
updateIndexes
void updateIndexes(String tablesSQL,
String indexesSQL,
String indexesProperties,
boolean dropStaleIndexes)
throws IOException,
SQLException
- Throws:
IOException
SQLException