org.apache.ws.jaxme.sqls.impl

Class SelectStatementImpl

Implemented Interfaces:
ConstrainedStatement, SelectStatement, Statement
Known Direct Subclasses:
OraSelectStatementImpl

public class SelectStatementImpl
extends ConstrainedStatementImpl
implements SelectStatement

Author:
Jochen Wiedmann

Nested Class Summary

static class
SelectStatementImpl.OrderColumnImpl

Constructor Summary

SelectStatementImpl(SQLFactory pFactory)
Creates a new SelectStatement and sets the creating SQLFactory.

Method Summary

void
addOrderColumn(Object pColumn)
void
addOrderColumn(Object pColumn, boolean pDescending)
void
addOrderColumn(SelectStatement.OrderColumn pColumn)
void
addResultColumn(ColumnReference pColumn)
Table
createView(String pName)
Table
createView(Table.Name pName)
int
getMaxRows()
Iterator
getOrderColumns()
Iterator
getResultColumns()
SelectTableReference
getSelectTableReference()
Iterator
getSelectTableReferences()
int
getSkippedRows()
boolean
isDistinct()
protected TableReference
newTableReference(Table pTable)
void
setDistinct(boolean pDistinct)
void
setMaxRows(int pMaxRows)
void
setSkippedRows(int pSkippedRows)

Methods inherited from class org.apache.ws.jaxme.sqls.impl.ConstrainedStatementImpl

getWhere

Methods inherited from class org.apache.ws.jaxme.sqls.impl.StatementImpl

createFunction, getSQLFactory, getTableReference, newCase, newTableReference, setTable

Constructor Details

SelectStatementImpl

public SelectStatementImpl(SQLFactory pFactory)
Creates a new SelectStatement and sets the creating SQLFactory.

Method Details

addOrderColumn

public void addOrderColumn(Object pColumn)
Specified by:
addOrderColumn in interface SelectStatement

addOrderColumn

public void addOrderColumn(Object pColumn,
                           boolean pDescending)
Specified by:
addOrderColumn in interface SelectStatement

addOrderColumn

public void addOrderColumn(SelectStatement.OrderColumn pColumn)
Specified by:
addOrderColumn in interface SelectStatement

addResultColumn

public void addResultColumn(ColumnReference pColumn)
Specified by:
addResultColumn in interface SelectStatement

createView

public Table createView(String pName)
Specified by:
createView in interface SelectStatement

createView

public Table createView(Table.Name pName)
Specified by:
createView in interface SelectStatement

getMaxRows

public int getMaxRows()
Specified by:
getMaxRows in interface SelectStatement

getOrderColumns

public Iterator getOrderColumns()
Specified by:
getOrderColumns in interface SelectStatement

getResultColumns

public Iterator getResultColumns()
Specified by:
getResultColumns in interface SelectStatement

getSelectTableReference

public SelectTableReference getSelectTableReference()
Specified by:
getSelectTableReference in interface SelectStatement

getSelectTableReferences

public Iterator getSelectTableReferences()
Specified by:
getSelectTableReferences in interface SelectStatement

getSkippedRows

public int getSkippedRows()
Specified by:
getSkippedRows in interface SelectStatement

isDistinct

public boolean isDistinct()
Specified by:
isDistinct in interface SelectStatement

newTableReference

protected TableReference newTableReference(Table pTable)
Overrides:
newTableReference in interface StatementImpl

setDistinct

public void setDistinct(boolean pDistinct)
Specified by:
setDistinct in interface SelectStatement

setMaxRows

public void setMaxRows(int pMaxRows)
Specified by:
setMaxRows in interface SelectStatement

setSkippedRows

public void setSkippedRows(int pSkippedRows)
Specified by:
setSkippedRows in interface SelectStatement