|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.dbengine.AbstractDbEngine net.sf.basedb.core.dbengine.DefaultDbEngine
public class DefaultDbEngine
A default DbEngine that is selected if no other can be found. This probably has some issues with most databases.
Constructor Summary | |
---|---|
DefaultDbEngine()
Create DefaultDbEngine. |
Method Summary | |
---|---|
boolean |
analyzeAfterBatchOperation()
Return false. |
boolean |
caseInsensitiveComparison()
Returns TRUE. |
String |
getAnalyzeTableSql(String catalog,
String schema,
String table)
Return null. |
String |
getCreateIndexSql(String catalog,
String schema,
String table,
String name,
Set<String> columns,
boolean unique)
Generates CREATE [UNIQUE] INDEX <name> ON
<catalog>. |
String |
getDropIndexSql(String catalog,
String schema,
String table,
String name,
boolean unique)
Generate DROP INDEX <catalog>. |
String |
getOptimizeTableSql(String catalog,
String schema,
String table)
Return null. |
private String |
getQuotedName(String name)
Put quotes (") around the name. |
Methods inherited from class net.sf.basedb.core.dbengine.AbstractDbEngine |
---|
abs, castToDate, checkForInvalidNumberOperation, exp, getCaseSensitiveVarchar, inspectSchemaGenerationSQL, isValidColumnName, isValidName, isValidTableName, ln, makeSafeCreateTable, power, rlike, selectOrderByColumnsIfDistinct, supportColumnAliasInGroupBy, supportColumnAliasInHaving, supportColumnAliasInOrderBy, supportsColumnAliasInWhere, useThetaJoin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDbEngine()
Method Detail |
---|
public String getCreateIndexSql(String catalog, String schema, String table, String name, Set<String> columns, boolean unique)
CREATE [UNIQUE] INDEX <name> ON
<catalog>.<schema>.<table> (<columns>)
which should work for most databases.
catalog
- The name of the catalog (database) where the table is
located, or null if it is located in the current catalogschema
- The name of the schema where the table is located, or
null if is located in the current schematable
- The name of the tablename
- The name of the index to be createdcolumns
- The name of the columns in the indexunique
- If the index must contain unique values or not
public String getDropIndexSql(String catalog, String schema, String table, String name, boolean unique)
DROP INDEX <catalog>.<schema>.<table>.<name>
.
catalog
- The name of the catalog (database) where the table is
located, or null if it is located in the current catalogschema
- The name of the schema where the table is located, or
null if is located in the current schematable
- The name of the tablename
- The name of the indexunique
- If the index contains unique values or not
public boolean analyzeAfterBatchOperation()
public String getOptimizeTableSql(String catalog, String schema, String table)
catalog
- The name of the catalog (database) where the table is
located, or null if it is located in the current catalogschema
- The name of the schema where the table is located, or
null if is located in the current schematable
- The name of the table to optimize
DbEngine.getAnalyzeTableSql(String, String, String)
public String getAnalyzeTableSql(String catalog, String schema, String table)
catalog
- The name of the catalog (database) where the table is
located, or null if it is located in the current catalogschema
- The name of the schema where the table is located, or
null if is located in the current schematable
- The name of the table to analyze
DbEngine.getOptimizeTableSql(String, String, String)
public boolean caseInsensitiveComparison()
private String getQuotedName(String name)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |