org.apache.ws.jaxme.sqls

Interface ObjectFactory

Known Implementing Classes:
ObjectFactoryImpl, OraObjectFactoryImpl

public interface ObjectFactory

A factory object for creating all the objects used by the SQL factory.

Method Summary

Expression
createExpression(Statement pStatement, Expression.Type sum)
Creates a new instance of Expression.
Case
newCase(Column.Type pType)
Creates a new instance of Case.
ColumnReference
newColumnReference(TableReference pTableReference, Column pColumn)
Creates a new instance of ColumnReference.
CombinedConstraint
newCombinedConstraint(ConstrainedStatement pStatement, CombinedConstraint.Type pType)
Creates a new instance of Constraint constraining the given ConstrainedStatement.
Function
newFunction(Statement pStatement, String pName)
Returns an instance of Function.
JoinReference
newJoinReference(SelectTableReference pSelectTableReference, Table pTable, boolean pIsLeftOuterJoin)
Returns an instance of JoinReference.
RawSQLCode
newRawSQL(String pRawSQLCode)
Returns an instance of RawSQLCode.
Table
newView(SelectStatement pSelectStatement, Table.Name pName)
Returns an instance of Table, which allows to embed the given instance of SelectStatement into another SELECT statement.

Method Details

createExpression

public Expression createExpression(Statement pStatement,
                                   Expression.Type sum)
Creates a new instance of Expression.

newCase

public Case newCase(Column.Type pType)
Creates a new instance of Case.

newColumnReference

public ColumnReference newColumnReference(TableReference pTableReference,
                                          Column pColumn)
Creates a new instance of ColumnReference.

newCombinedConstraint

public CombinedConstraint newCombinedConstraint(ConstrainedStatement pStatement,
                                                CombinedConstraint.Type pType)
Creates a new instance of Constraint constraining the given ConstrainedStatement.

newFunction

public Function newFunction(Statement pStatement,
                            String pName)
Returns an instance of Function.

newJoinReference

public JoinReference newJoinReference(SelectTableReference pSelectTableReference,
                                      Table pTable,
                                      boolean pIsLeftOuterJoin)
Returns an instance of JoinReference.

newRawSQL

public RawSQLCode newRawSQL(String pRawSQLCode)
Returns an instance of RawSQLCode.

newView

public Table newView(SelectStatement pSelectStatement,
                     Table.Name pName)
Returns an instance of Table, which allows to embed the given instance of SelectStatement into another SELECT statement.