public class LiteralValueNode extends Object implements org.apache.openjpa.kernel.exps.Literal, ExpressionNode
ExpressionNode.NodeType
Constructor and Description |
---|
LiteralValueNode(Object value,
int ptype) |
Modifier and Type | Method and Description |
---|---|
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() |
public LiteralValueNode(Object value, int ptype)
public void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
acceptVisit
in interface org.apache.openjpa.kernel.exps.Value
public String getAlias()
getAlias
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData
in interface org.apache.openjpa.kernel.exps.Value
public String getName()
getName
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Path getPath()
getPath
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Value getSelectAs()
getSelectAs
in interface org.apache.openjpa.kernel.exps.Value
public Class getType()
getType
in interface org.apache.openjpa.kernel.exps.Value
public boolean isAggregate()
isAggregate
in interface org.apache.openjpa.kernel.exps.Value
public boolean isVariable()
isVariable
in interface org.apache.openjpa.kernel.exps.Value
public boolean isXPath()
isXPath
in interface org.apache.openjpa.kernel.exps.Value
public void setAlias(String alias)
setAlias
in interface org.apache.openjpa.kernel.exps.Value
public void setImplicitType(Class type)
setImplicitType
in interface org.apache.openjpa.kernel.exps.Value
public void setMetaData(org.apache.openjpa.meta.ClassMetaData cm)
setMetaData
in interface org.apache.openjpa.kernel.exps.Value
public Object getValue(Object[] params)
getValue
in interface org.apache.openjpa.kernel.exps.Constant
public int getParseType()
getParseType
in interface org.apache.openjpa.kernel.exps.Literal
public Object getValue()
getValue
in interface org.apache.openjpa.kernel.exps.Literal
public void setValue(Object value)
setValue
in interface org.apache.openjpa.kernel.exps.Literal
public void appendSql(StringBuilder sql)
ExpressionNode
appendSql
in interface ExpressionNode
sql
- The SQL string builder to append to.public ExpressionNode.NodeType getNodeType()
ExpressionNode
getNodeType
in interface ExpressionNode
Copyright © GigaSpaces.