|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SqlDialect
Interface for creating Sql flavor specific statements.
Copyright 2009 Partner Software, Inc.
| 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. |
| Method Detail |
|---|
java.lang.String selectSql(DataRecordQuery query,
CogStructureType tableType)
query - - Query describing select statement.tableType - - CogStructureType defining table. Type name is assumed to be table name.
java.lang.String createTable(CogSchema schema,
CogStructureType tableType)
schema - - Schema defining column types.tableType - - CogStructureType defining table. Type name is assumed to be table name.
java.lang.String alterColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
tableName - - Name of table to alter column in.newField - - Field to change.newFieldType - - CogType for the passed field.
java.lang.String addColumn(java.lang.String tableName,
CogStructureField newField,
CogType newFieldType)
tableName - - Name of table to add a column to.newField - - Field to add.newFieldType - - CogType of field to add.
java.lang.String dropColumn(java.lang.String tableName,
java.lang.String fieldName)
tableName - - Name of table to drop column from.fieldName - - Name of field to drop.
java.lang.String cogTypeToSqlType(CogType type)
type - - CogType to convert to Sql type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||