|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of this interface contain metadata about SQL operators and logic to generate the SQL for that operator.
Method Summary | |
void |
generateNaturalDescription(java.lang.StringBuffer description,
java.lang.String title,
java.lang.String[] values,
ResourceHandle resourceHandle)
Generates a human readable representation of this operator applied to some values. |
void |
generateSql(java.lang.StringBuffer statement,
java.lang.String fieldName,
int argumentCount)
Generates a piece of SQL for this operator. |
int |
getArgumentCount()
Get the number of arguments that this operator can take. |
java.lang.String |
getDescription(ResourceHandle resourceHandle)
Something that can be shown to an end-user to identify this operator. |
java.lang.String |
getId()
An ID for this operator. |
Method Detail |
public java.lang.String getId()
public java.lang.String getDescription(ResourceHandle resourceHandle)
public int getArgumentCount()
public void generateSql(java.lang.StringBuffer statement, java.lang.String fieldName, int argumentCount)
statement
- A StringBuffer to which the generated SQL should be appended.public void generateNaturalDescription(java.lang.StringBuffer description, java.lang.String title, java.lang.String[] values, ResourceHandle resourceHandle)
description
- stringbuffer to which the description will be appendedtitle
- can be nullvalues
- for operators with a fixed number of arguments, this array should have the same size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |