org.apache.ws.jaxme.sqls.impl
Class ObjectFactoryImpl

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.ObjectFactoryImpl
All Implemented Interfaces:
ObjectFactory
Direct Known Subclasses:
OraObjectFactoryImpl

public class ObjectFactoryImpl
extends java.lang.Object
implements ObjectFactory

Default implementation of the object factory.

Author:
Jochen Wiedmann

Constructor Summary
protected 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, java.lang.String pName)
          Returns an instance of Function.
 JoinReference newJoinReference(SelectTableReference pSelectTableReference, Table pTable, boolean pIsLeftOuterJoin)
          Returns an instance of JoinReference.
 RawSQLCode newRawSQL(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactoryImpl

protected ObjectFactoryImpl()
Method Detail

newRawSQL

public RawSQLCode newRawSQL(java.lang.String pRawSQLCode)
Description copied from interface: ObjectFactory
Returns an instance of RawSQLCode.

Specified by:
newRawSQL in interface ObjectFactory

newJoinReference

public JoinReference newJoinReference(SelectTableReference pSelectTableReference,
                                      Table pTable,
                                      boolean pIsLeftOuterJoin)
Description copied from interface: ObjectFactory

Returns an instance of JoinReference.

Specified by:
newJoinReference in interface ObjectFactory

newFunction

public Function newFunction(Statement pStatement,
                            java.lang.String pName)
Description copied from interface: ObjectFactory
Returns an instance of Function.

Specified by:
newFunction in interface ObjectFactory

newView

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

Specified by:
newView in interface ObjectFactory

newCombinedConstraint

public CombinedConstraint newCombinedConstraint(ConstrainedStatement pStatement,
                                                CombinedConstraint.Type pType)
Description copied from interface: ObjectFactory
Creates a new instance of Constraint constraining the given ConstrainedStatement.

Specified by:
newCombinedConstraint in interface ObjectFactory

newCase

public Case newCase(Column.Type pType)
Description copied from interface: ObjectFactory
Creates a new instance of Case.

Specified by:
newCase in interface ObjectFactory

newColumnReference

public ColumnReference newColumnReference(TableReference pTableReference,
                                          Column pColumn)
Description copied from interface: ObjectFactory
Creates a new instance of ColumnReference.

Specified by:
newColumnReference in interface ObjectFactory

createExpression

public Expression createExpression(Statement pStatement,
                                   Expression.Type pType)
Description copied from interface: ObjectFactory
Creates a new instance of Expression.

Specified by:
createExpression in interface ObjectFactory