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

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.StatementImpl
All Implemented Interfaces:
Statement
Direct Known Subclasses:
ConstrainedStatementImpl, SetStatementImpl

public abstract class StatementImpl
extends java.lang.Object
implements Statement

A common base class for SelectStatement, InsertStatement, UpdateStatement, and DeleteStatement.

Author:
Jochen Wiedmann

Constructor Summary
protected StatementImpl(SQLFactory pFactory)
           
 
Method Summary
 Function createFunction(java.lang.String pName)
          Creates a new function, which may be added to a BooleanConstraint.
 SQLFactory getSQLFactory()
          Returns the SQLFactory that created this Statement.
 TableReference getTableReference()
          Returns the table reference, for which the statement applies.
 Case newCase(Column.Type pType)
          Creates a new instance of Case.
protected  TableReference newTableReference(Table pTable)
           
 TableReference setTable(Table pTable)
          Sets the table, for which the statement applies and returns a reference to the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementImpl

protected StatementImpl(SQLFactory pFactory)
Method Detail

getSQLFactory

public SQLFactory getSQLFactory()
Description copied from interface: Statement

Returns the SQLFactory that created this Statement.

Specified by:
getSQLFactory in interface Statement

newTableReference

protected TableReference newTableReference(Table pTable)

setTable

public TableReference setTable(Table pTable)
Description copied from interface: Statement

Sets the table, for which the statement applies and returns a reference to the table.

Specified by:
setTable in interface Statement

getTableReference

public TableReference getTableReference()
Description copied from interface: Statement

Returns the table reference, for which the statement applies.

Specified by:
getTableReference in interface Statement

createFunction

public Function createFunction(java.lang.String pName)
Description copied from interface: Statement

Creates a new function, which may be added to a BooleanConstraint.

Specified by:
createFunction in interface Statement

newCase

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

Specified by:
newCase in interface Statement