public interface JdbcDatabase
| Modifier and Type | Method and Description |
|---|---|
boolean |
createTable(RepositoryDefinition repositoryDefinition)
Creates table with the specified repository definition.
|
boolean |
existTable(String tableName)
Checks whether a table specified by the given table name exists.
|
String |
getRandomlySql(String tableName,
int fetchSize)
getRandomlySql.
|
String |
queryPage(int start,
int end,
String selectSql,
String filterSql,
String orderBySql,
String tableName)
queryPage sql.
|
boolean existTable(String tableName)
tableName - the given table nametrue if it exists, returns false otherwiseboolean createTable(RepositoryDefinition repositoryDefinition) throws SQLException
repositoryDefinition - the specified repository definitiontrue if successfully, returns false otherwiseSQLException - SQLExceptionString queryPage(int start, int end, String selectSql, String filterSql, String orderBySql, String tableName)
start - startend - endselectSql - selectSqlfilterSql - filterSqlorderBySql - orderBySqltableName - tableNameCopyright © 2009–2019 B3log. All rights reserved.