org.apache.ws.jaxme.sqls.impl

Class ObjectFactoryImpl

Implemented Interfaces:
ObjectFactory
Known Direct Subclasses:
OraObjectFactoryImpl

public class ObjectFactoryImpl
extends java.lang.Object
implements ObjectFactory

Default implementation of the object factory.
Author:
Jochen Wiedmann

Constructor Summary

ObjectFactoryImpl()

Method Summary

Expression
createExpression(Statement pStatement, Expression.Type pType)
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.

Constructor Details

ObjectFactoryImpl

protected ObjectFactoryImpl()

Method Details

createExpression

public Expression createExpression(Statement pStatement,
                                   Expression.Type pType)
Creates a new instance of Expression.
Specified by:
createExpression in interface ObjectFactory

newCase

public Case newCase(Column.Type pType)
Creates a new instance of Case.
Specified by:
newCase in interface ObjectFactory

newColumnReference

public ColumnReference newColumnReference(TableReference pTableReference,
                                          Column pColumn)
Creates a new instance of ColumnReference.
Specified by:
newColumnReference in interface ObjectFactory

newCombinedConstraint

public CombinedConstraint newCombinedConstraint(ConstrainedStatement pStatement,
                                                CombinedConstraint.Type pType)
Creates a new instance of Constraint constraining the given ConstrainedStatement.
Specified by:
newCombinedConstraint in interface ObjectFactory

newFunction

public Function newFunction(Statement pStatement,
                            String pName)
Returns an instance of Function.
Specified by:
newFunction in interface ObjectFactory

newJoinReference

public JoinReference newJoinReference(SelectTableReference pSelectTableReference,
                                      Table pTable,
                                      boolean pIsLeftOuterJoin)
Returns an instance of JoinReference.
Specified by:
newJoinReference in interface ObjectFactory

newRawSQL

public RawSQLCode newRawSQL(String pRawSQLCode)
Returns an instance of RawSQLCode.
Specified by:
newRawSQL in interface ObjectFactory

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.
Specified by:
newView in interface ObjectFactory