GigaSpaces XAP 9.7.2 API

org.openspaces.jpa.openjpa.query
Class LiteralValueNode

java.lang.Object
  extended by org.openspaces.jpa.openjpa.query.LiteralValueNode
All Implemented Interfaces:
Serializable, org.apache.openjpa.kernel.exps.Constant, org.apache.openjpa.kernel.exps.Literal, org.apache.openjpa.kernel.exps.Value, ExpressionNode

public class LiteralValueNode
extends Object
implements org.apache.openjpa.kernel.exps.Literal, ExpressionNode

Represents a literal value node in the transalated query expression tree.

Since:
8.0
Author:
idan
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openspaces.jpa.openjpa.query.ExpressionNode
ExpressionNode.NodeType
 
Field Summary
 
Fields inherited from interface org.apache.openjpa.kernel.exps.Literal
TYPE_BOOLEAN, TYPE_CLASS, TYPE_COLLECTION, TYPE_DATE, TYPE_ENUM, TYPE_NUMBER, TYPE_SQ_STRING, TYPE_STRING, TYPE_TIME, TYPE_TIMESTAMP, TYPE_UNKNOWN
 
Constructor Summary
LiteralValueNode(Object value, int ptype)
           
 
Method Summary
 void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
           
 void appendSql(StringBuilder sql)
          Appends the node SQL string to the string builder.
 String getAlias()
           
 org.apache.openjpa.meta.ClassMetaData getMetaData()
           
 String getName()
           
 ExpressionNode.NodeType getNodeType()
          Gets the node type
 int getParseType()
           
 org.apache.openjpa.kernel.exps.Path getPath()
           
 org.apache.openjpa.kernel.exps.Value getSelectAs()
           
 Class getType()
           
 Object getValue()
           
 Object getValue(Object[] params)
           
 boolean isAggregate()
           
 boolean isVariable()
           
 boolean isXPath()
           
 void setAlias(String alias)
           
 void setImplicitType(Class type)
           
 void setMetaData(org.apache.openjpa.meta.ClassMetaData cm)
           
 void setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralValueNode

public LiteralValueNode(Object value,
                        int ptype)
Method Detail

acceptVisit

public void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
Specified by:
acceptVisit in interface org.apache.openjpa.kernel.exps.Value

getAlias

public String getAlias()
Specified by:
getAlias in interface org.apache.openjpa.kernel.exps.Value

getMetaData

public org.apache.openjpa.meta.ClassMetaData getMetaData()
Specified by:
getMetaData in interface org.apache.openjpa.kernel.exps.Value

getName

public String getName()
Specified by:
getName in interface org.apache.openjpa.kernel.exps.Value

getPath

public org.apache.openjpa.kernel.exps.Path getPath()
Specified by:
getPath in interface org.apache.openjpa.kernel.exps.Value

getSelectAs

public org.apache.openjpa.kernel.exps.Value getSelectAs()
Specified by:
getSelectAs in interface org.apache.openjpa.kernel.exps.Value

getType

public Class getType()
Specified by:
getType in interface org.apache.openjpa.kernel.exps.Value

isAggregate

public boolean isAggregate()
Specified by:
isAggregate in interface org.apache.openjpa.kernel.exps.Value

isVariable

public boolean isVariable()
Specified by:
isVariable in interface org.apache.openjpa.kernel.exps.Value

isXPath

public boolean isXPath()
Specified by:
isXPath in interface org.apache.openjpa.kernel.exps.Value

setAlias

public void setAlias(String alias)
Specified by:
setAlias in interface org.apache.openjpa.kernel.exps.Value

setImplicitType

public void setImplicitType(Class type)
Specified by:
setImplicitType in interface org.apache.openjpa.kernel.exps.Value

setMetaData

public void setMetaData(org.apache.openjpa.meta.ClassMetaData cm)
Specified by:
setMetaData in interface org.apache.openjpa.kernel.exps.Value

getValue

public Object getValue(Object[] params)
Specified by:
getValue in interface org.apache.openjpa.kernel.exps.Constant

getParseType

public int getParseType()
Specified by:
getParseType in interface org.apache.openjpa.kernel.exps.Literal

getValue

public Object getValue()
Specified by:
getValue in interface org.apache.openjpa.kernel.exps.Literal

setValue

public void setValue(Object value)
Specified by:
setValue in interface org.apache.openjpa.kernel.exps.Literal

toString

public String toString()
Overrides:
toString in class Object

appendSql

public void appendSql(StringBuilder sql)
Description copied from interface: ExpressionNode
Appends the node SQL string to the string builder.

Specified by:
appendSql in interface ExpressionNode
Parameters:
sql - The SQL string builder to append to.

getNodeType

public ExpressionNode.NodeType getNodeType()
Description copied from interface: ExpressionNode
Gets the node type

Specified by:
getNodeType in interface ExpressionNode
Returns:
The node type.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.