org.apache.ws.jaxme.sqls

Interface ObjectFactory

public interface ObjectFactory

A factory object for creating all the objects used by the SQL factory.
Method Summary
ExpressioncreateExpression(Statement pStatement, Expression.Type sum)
Creates a new instance of {@link Expression}.
CasenewCase(Column.Type pType)
Creates a new instance of {@link org.apache.ws.jaxme.sqls.Case}.
ColumnReferencenewColumnReference(TableReference pTableReference, Column pColumn)
Creates a new instance of {@link ColumnReference}.
CombinedConstraintnewCombinedConstraint(ConstrainedStatement pStatement, CombinedConstraint.Type pType)
Creates a new instance of {@link org.apache.ws.jaxme.sqls.Constraint} constraining the given {@link org.apache.ws.jaxme.sqls.ConstrainedStatement}.
FunctionnewFunction(Statement pStatement, String pName)
Returns an instance of {@link org.apache.ws.jaxme.sqls.Function}.
JoinReferencenewJoinReference(SelectTableReference pSelectTableReference, Table pTable, boolean pIsLeftOuterJoin)

Returns an instance of {@link org.apache.ws.jaxme.sqls.JoinReference}.

RawSQLCodenewRawSQL(String pRawSQLCode)
Returns an instance of {@link org.apache.ws.jaxme.sqls.RawSQLCode}.
TablenewView(SelectStatement pSelectStatement, Table.Name pName)
Returns an instance of {@link org.apache.ws.jaxme.sqls.Table}, which allows to embed the given instance of {@link org.apache.ws.jaxme.sqls.SelectStatement} into another SELECT statement.

Method Detail

createExpression

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

newCase

public Case newCase(Column.Type pType)
Creates a new instance of {@link org.apache.ws.jaxme.sqls.Case}.

newColumnReference

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

newCombinedConstraint

public CombinedConstraint newCombinedConstraint(ConstrainedStatement pStatement, CombinedConstraint.Type pType)
Creates a new instance of {@link org.apache.ws.jaxme.sqls.Constraint} constraining the given {@link org.apache.ws.jaxme.sqls.ConstrainedStatement}.

newFunction

public Function newFunction(Statement pStatement, String pName)
Returns an instance of {@link org.apache.ws.jaxme.sqls.Function}.

newJoinReference

public JoinReference newJoinReference(SelectTableReference pSelectTableReference, Table pTable, boolean pIsLeftOuterJoin)

Returns an instance of {@link org.apache.ws.jaxme.sqls.JoinReference}.

newRawSQL

public RawSQLCode newRawSQL(String pRawSQLCode)
Returns an instance of {@link org.apache.ws.jaxme.sqls.RawSQLCode}.

newView

public Table newView(SelectStatement pSelectStatement, Table.Name pName)
Returns an instance of {@link org.apache.ws.jaxme.sqls.Table}, which allows to embed the given instance of {@link org.apache.ws.jaxme.sqls.SelectStatement} into another SELECT statement.