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

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.PartsImpl
      extended by org.apache.ws.jaxme.sqls.impl.ExpressionImpl
All Implemented Interfaces:
Expression, Parts

public class ExpressionImpl
extends PartsImpl
implements Expression

Default implementation of Expression.


Nested Class Summary
static class ExpressionImpl.TypeImpl
          Default implementation of Expression.Type.
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Expression
Expression.Type
 
Field Summary
 
Fields inherited from interface org.apache.ws.jaxme.sqls.Expression
DIFFERENCE, PRODUCT, QUOTIENT, SUM
 
Constructor Summary
protected ExpressionImpl(Statement pStatement, Expression.Type pType)
           
 
Method Summary
 int getMaximumParts()
          Returns the maximum number of parts.
 int getMinimumParts()
          Returns the minimum number of parts.
 Expression.Type getType()
          Returns the expression type.
 
Methods inherited from class org.apache.ws.jaxme.sqls.impl.PartsImpl
add, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPlaceholder, addRawSQLPart, createDIFFERENCE, createPRODUCT, createQUOTIENT, createSUM, getNumParts, getParts, getStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.sqls.Parts
addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPart, addPlaceholder, addRawSQLPart, createDIFFERENCE, createPRODUCT, createQUOTIENT, createSUM, getNumParts, getParts
 

Constructor Detail

ExpressionImpl

protected ExpressionImpl(Statement pStatement,
                         Expression.Type pType)
Method Detail

getType

public Expression.Type getType()
Description copied from interface: Expression
Returns the expression type.

Specified by:
getType in interface Expression

getMinimumParts

public int getMinimumParts()
Description copied from interface: Parts
Returns the minimum number of parts.

Specified by:
getMinimumParts in interface Parts

getMaximumParts

public int getMaximumParts()
Description copied from interface: Parts
Returns the maximum number of parts. Zero indicates unlimited.

Specified by:
getMaximumParts in interface Parts