|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.sql.GenericSqlDialect
com.partnersoft.sql.HsqlDialect
public class HsqlDialect
SqlDialect for Hypersonic databases.
Copyright 2009 Partner Software, Inc.
| Constructor Summary | |
|---|---|
HsqlDialect()
Creates a new HsqlDialect. |
|
| Method Summary | |
|---|---|
java.lang.String |
addColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
Returns complete Sql to add a column. |
java.lang.String |
alterColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
Returns complete Sql to alter a column. |
java.lang.String |
cogTypeToSqlType(CogType type)
Helper for converting from a CogType to a Sql flavor specific data type. |
java.lang.String |
createTable(CogSchema schema,
CogStructureType tableType)
Returns complete Sql create table statement. |
java.lang.String |
dropColumn(java.lang.String tableName,
java.lang.String fieldName)
Returns complete Sql to drop a column. |
java.lang.String |
selectSql(DataRecordQuery query,
CogStructureType tableType)
Returns complete Sql select statement. |
| Methods inherited from class com.partnersoft.sql.GenericSqlDialect |
|---|
constantToSql, handleSorts, listFields, parseFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HsqlDialect()
| Method Detail |
|---|
public java.lang.String selectSql(DataRecordQuery query,
CogStructureType tableType)
SqlDialect
selectSql in interface SqlDialectselectSql in class GenericSqlDialectquery - - Query describing select statement.tableType - - CogStructureType defining table. Type name is assumed to be table name.
public java.lang.String createTable(CogSchema schema,
CogStructureType tableType)
SqlDialect
createTable in interface SqlDialectcreateTable in class GenericSqlDialectschema - - Schema defining column types.tableType - - CogStructureType defining table. Type name is assumed to be table name.
public java.lang.String addColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
SqlDialect
addColumn in interface SqlDialectaddColumn in class GenericSqlDialecttableName - - Name of table to add a column to.newField - - Field to add.newFieldType - - CogType of field to add.
public java.lang.String alterColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
SqlDialect
alterColumn in interface SqlDialectalterColumn in class GenericSqlDialecttableName - - Name of table to alter column in.newField - - Field to change.newFieldType - - CogType for the passed field.
public java.lang.String cogTypeToSqlType(CogType type)
SqlDialect
cogTypeToSqlType in interface SqlDialectcogTypeToSqlType in class GenericSqlDialecttype - - CogType to convert to Sql type.
public java.lang.String dropColumn(java.lang.String tableName,
java.lang.String fieldName)
SqlDialect
dropColumn in interface SqlDialectdropColumn in class GenericSqlDialecttableName - - Name of table to drop column from.fieldName - - Name of field to drop.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||