org.apache.ws.jaxme.sqls.impl
Class SQLGeneratorImpl
public
class
SQLGeneratorImpl
extends Object
implements SQLGenerator
Method Summary |
protected String | createForeignKeyAsPartOfCreateTable(ForeignKey pKey) |
protected String | createIndexAsPartOfCreateTable(Index pIndex) |
protected String | createPrimaryKeyAsPartOfCreateTable(Table pTable) |
protected String | getBooleanConstraint(StatementMetaData pData, BooleanConstraint pConstraint) |
protected String | getBooleanConstraintPart(StatementMetaData pData, Object o) |
protected String | getBooleanConstraintType(BooleanConstraint.Type pType) |
protected String | getCase(StatementMetaData pData, Case pCase) |
protected String | getColumnAlias(StatementMetaData pData, ColumnReference pColumn) |
protected String | getColumnAlias(StatementMetaData pData, ColumnReference[] pColumn) |
protected String | getCombinedConstraint(StatementMetaData pData, CombinedConstraint pConstraint) |
String | getConstraint(StatementMetaData pData, Constraint pConstraint) |
String | getConstraint(Constraint pConstraint) |
Collection | getCreate(Schema pSchema) |
protected String | getCreate(Column pColumn) |
Collection | getCreate(Table pTable) |
Collection | getCreate(Schema pSchema, boolean pAll) |
Collection | getCreate(Table pTable, boolean pAll) |
Collection | getCreate(Index pIndex) |
Collection | getCreate(ForeignKey pKey) |
protected String | getCreateTableHeader(Table pTable) |
protected String | getDeleteQuery(DeleteStatement pQuery) |
Collection | getDrop(Schema pSchema) |
Collection | getDrop(Table pTable) |
Collection | getDrop(Schema pSchema, boolean pAll) |
Collection | getDrop(Table pTable, boolean pAll) |
Collection | getDrop(Index pIndex) |
Collection | getDrop(ForeignKey pKey) |
protected String | getEscapedString(String s) |
protected String | getExpression(StatementMetaData pData, Expression pExpr) |
protected String | getFunction(StatementMetaData pData, Function f) |
protected String | getIndent() |
String | getInsertQuery(InsertStatement pQuery) |
protected String | getJoinAlias(StatementMetaData pData, JoinReference pJoinReference) |
String | getLineTerminator() |
protected String | getOrderColumn(StatementMetaData pData, SelectStatement.OrderColumn pColumn) |
protected String | getParts(StatementMetaData pData, Iterator pParts) |
String | getQuery(Statement pStatement) |
protected String | getSelectQuery(SelectStatement pQuery) |
protected String | getSelectQuery(SelectStatement pQuery, StatementMetaData pData) |
protected String | getSelectQueryConstraints(SelectStatement pQuery, StatementMetaData pData, StatementMetaData.LocalData pLocalData) |
protected String | getSelectQueryFromClause(SelectStatement pQuery, StatementMetaData pData) |
protected String | getSelectQueryOrderClause(StatementMetaData pData, SelectStatement pQuery) |
protected String | getSelectQueryResultColumns(SelectStatement pQuery, StatementMetaData pData) |
String | getStatementTerminator() |
protected String | getTableAlias(StatementMetaData pData, TableReference pTable) |
protected String | getTypeName(Column.Type pType) |
protected String | getUpdateQuery(UpdateStatement pQuery) |
protected String | getValue(Value pValue) |
protected String | getWhereClause(StatementMetaData pData, CombinedConstraint pWhereClause) |
String | getWhereClause(SelectStatement pQuery) |
protected boolean | isForeignKeyPartOfCreateTable() Returns whether a CREATE TABLE statement may contain
a FOREIGN KEY clause. |
protected boolean | isNonUniqueIndexPartOfCreateTable() Returns whether a CREATE TABLE statement may contain
an INDEX clause. |
protected boolean | isPrimaryKeyPartOfCreateTable() Returns whether a CREATE TABLE statement may contain
a PRIMARY KEY clause. |
protected boolean | isPrimaryKeyUniqueIndex() |
protected boolean | isQualifiedColumn(StatementMetaData pData, ColumnReference pColumn) |
protected boolean | isTableAliasUsingAs() |
protected boolean | isUniqueIndexPartOfCreateTable() Returns whether a CREATE TABLE statement may contain
a UNIQUE clause. |
protected String | newStatement(String pStatement) |
protected StatementMetaData | newStatementMetaData(SelectStatement pQuery) |
protected StatementMetaData | newStatementMetaData(DeleteStatement pQuery) |
protected StatementMetaData | newStatementMetaData(UpdateStatement pQuery, ColumnReference[] pColumns) |
protected StatementMetaData | newStatementMetaData(InsertStatement pQuery, ColumnReference[] pColumns) |
void | setLineTerminator(String pLineTerminator) |
void | setStatementTerminator(String pStatementTerminator) |
protected String createForeignKeyAsPartOfCreateTable(
ForeignKey pKey)
protected String createIndexAsPartOfCreateTable(
Index pIndex)
protected String createPrimaryKeyAsPartOfCreateTable(
Table pTable)
public String getConstraint(
Constraint pConstraint)
public Collection getCreate(
Schema pSchema)
protected String getCreate(
Column pColumn)
public Collection getCreate(
Table pTable)
public Collection getCreate(
Schema pSchema, boolean pAll)
public Collection getCreate(
Table pTable, boolean pAll)
public Collection getCreate(
Index pIndex)
protected String getCreateTableHeader(
Table pTable)
public Collection getDrop(
Schema pSchema)
public Collection getDrop(
Table pTable)
public Collection getDrop(
Schema pSchema, boolean pAll)
public Collection getDrop(
Table pTable, boolean pAll)
public Collection getDrop(
Index pIndex)
protected String getEscapedString(String s)
protected String getIndent()
public String getLineTerminator()
public String getStatementTerminator()
protected String getValue(
Value pValue)
protected boolean isForeignKeyPartOfCreateTable()
Returns whether a CREATE TABLE
statement may contain
a FOREIGN KEY
clause.
protected boolean isNonUniqueIndexPartOfCreateTable()
Returns whether a CREATE TABLE
statement may contain
an INDEX
clause.
protected boolean isPrimaryKeyPartOfCreateTable()
Returns whether a CREATE TABLE
statement may contain
a PRIMARY KEY
clause.
protected boolean isPrimaryKeyUniqueIndex()
protected boolean isTableAliasUsingAs()
protected boolean isUniqueIndexPartOfCreateTable()
Returns whether a CREATE TABLE
statement may contain
a UNIQUE
clause.
protected String newStatement(String pStatement)
public void setLineTerminator(String pLineTerminator)
public void setStatementTerminator(String pStatementTerminator)