Class SQLVerbatimExpression
- java.lang.Object
-
- net.ontopia.persistence.query.sql.SQLVerbatimExpression
-
- All Implemented Interfaces:
SQLExpressionIF
public class SQLVerbatimExpression extends Object implements SQLExpressionIF
INTERNAL: Represents a verbatim SQL expression.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
alias
protected static FieldHandlerIF
DEFAULT_FIELD_HANDLER
protected static Class
DEFAULT_VALUE_TYPE
protected FieldHandlerIF
fhandler
protected SQLTable[]
tables
protected Object
value
protected Class
vtype
-
Fields inherited from interface net.ontopia.persistence.query.sql.SQLExpressionIF
AND, EQUALS, EXISTS, FALSE, IN, IS_NULL, JOIN, LIKE, NOT, NOT_EQUALS, OR, SET_OPERATION, VALUE_EXPRESSION, VERBATIM
-
-
Constructor Summary
Constructors Constructor Description SQLVerbatimExpression(Object value)
SQLVerbatimExpression(Object value, SQLTable[] tables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLTable[]
getTables()
INTERNAL: Returns the tables that are involved in the verbatim expression.int
getType()
INTERNAL: Returns the expression type.Object
getValue()
void
setTables(SQLTable[] tables)
String
toString()
-
-
-
Field Detail
-
DEFAULT_VALUE_TYPE
protected static final Class DEFAULT_VALUE_TYPE
-
DEFAULT_FIELD_HANDLER
protected static final FieldHandlerIF DEFAULT_FIELD_HANDLER
-
value
protected Object value
-
alias
protected String alias
-
tables
protected SQLTable[] tables
-
vtype
protected Class vtype
-
fhandler
protected FieldHandlerIF fhandler
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:SQLExpressionIF
INTERNAL: Returns the expression type. The type is represented by one of the constants in theSQLExpressionIF
interface.- Specified by:
getType
in interfaceSQLExpressionIF
-
getValue
public Object getValue()
-
getTables
public SQLTable[] getTables()
INTERNAL: Returns the tables that are involved in the verbatim expression. This information is neccessary so that the FROM clause can be correctly generated.
-
setTables
public void setTables(SQLTable[] tables)
-
-