net.ontopia.persistence.query.sql
Class SQLVerbatimExpression

java.lang.Object
  extended by net.ontopia.persistence.query.sql.SQLVerbatimExpression
All Implemented Interfaces:
SQLExpressionIF

public class SQLVerbatimExpression
extends java.lang.Object
implements SQLExpressionIF

INTERNAL: Represents a verbatim SQL expression.


Field Summary
protected  java.lang.String alias
           
protected static FieldHandlerIF DEFAULT_FIELD_HANDLER
           
protected static java.lang.Class DEFAULT_VALUE_TYPE
           
protected  FieldHandlerIF fhandler
           
protected  SQLTable[] tables
           
protected  java.lang.Object value
           
protected  java.lang.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
SQLVerbatimExpression(java.lang.Object value)
           
SQLVerbatimExpression(java.lang.Object value, SQLTable[] tables)
           
 
Method Summary
 SQLTable[] getTables()
          INTERNAL: Returns the tables that are involved in the verbatim expression.
 int getType()
          INTERNAL: Returns the expression type.
 java.lang.Object getValue()
           
 void setTables(SQLTable[] tables)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_VALUE_TYPE

protected static final java.lang.Class DEFAULT_VALUE_TYPE

DEFAULT_FIELD_HANDLER

protected static final FieldHandlerIF DEFAULT_FIELD_HANDLER

value

protected java.lang.Object value

alias

protected java.lang.String alias

tables

protected SQLTable[] tables

vtype

protected java.lang.Class vtype

fhandler

protected FieldHandlerIF fhandler
Constructor Detail

SQLVerbatimExpression

public SQLVerbatimExpression(java.lang.Object value)

SQLVerbatimExpression

public SQLVerbatimExpression(java.lang.Object value,
                             SQLTable[] tables)
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 the SQLExpressionIF interface.

Specified by:
getType in interface SQLExpressionIF

getValue

public java.lang.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)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.