net.sf.jaxme.sqls.impl
Class StatementImpl

java.lang.Object
  extended bynet.sf.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
 SQLFactory getSQLFactory()
          Returns the SQLFactory that created this Statement.
 TableReference getTableReference()
          Returns the table reference, for which the statement applies.
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