org.araneaframework.backend.list
Interface SqlExpression

All Known Implementing Classes:
SqlAlwaysTrueExpression, SqlAscendingExpression, SqlBracketsExpression, SqlComparableExpression, SqlDescendingExpression, SqlEscapeExpression, SqlIsNullExpression, SqlLowerExpression, SqlMultiExpression, SqlNotExpression, SqlStringExpression, SqlUpperExpression, SqlValueExpression

public interface SqlExpression

SQL Expression that can be evaluated into SQL String and SQL arguments Object[]. One SQL Expression can contain other SQL Expressions and return their SQL Strings and arguments as part of itselves. SQL Expressions are usually built from Expressions using an ExpressionToSqlExprBuilder.


Method Summary
 Object[] getValues()
          Returns the SQL arguments of this SqlExpression.
 String toSqlString()
          Returns the SQL String of this SqlExpression.
 

Method Detail

toSqlString

public String toSqlString()
Returns the SQL String of this SqlExpression. The returned String may not be null. An empty String should be used instead.

Returns:
the SQL String of this SqlExpression.

getValues

public Object[] getValues()
Returns the SQL arguments of this SqlExpression. The returned values may not be null. An empty array should be used instead.

Returns:
the SQL arguments of this SqlExpression.