org.openspaces.jpa.openjpa.query
Class Variable
java.lang.Object
  
org.openspaces.jpa.openjpa.query.Variable
- All Implemented Interfaces: 
 - Serializable, org.apache.openjpa.kernel.exps.Value, ExpressionNode
 
public class Variable
- extends Object
- implements org.apache.openjpa.kernel.exps.Value, ExpressionNode
  
Represents a variable (Pojo) in the translated query expression tree.
 Initiated by the FROM clause parser.
- Since:
 
  - 8.0
 
- Author:
 
  - idan
 
- See Also:
 - Serialized Form
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Variable
public Variable(String name,
                Class<?> type)
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 classMetaData)
- Specified by:
 setMetaData in interface org.apache.openjpa.kernel.exps.Value
 
 
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.
 
 
 
Copyright © GigaSpaces.