Class NewObjectExpression
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.NewObjectExpression
-
public class NewObjectExpression extends SQLExpression
SQL Expression for creating a new object (in the result clause of a query).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
ctrArgAliases
Optional aliases for the constructor arg expressions.(package private) java.util.List<SQLExpression>
ctrArgExprs
The argument expressions to use in the constructor.(package private) java.lang.Class
newClass
The class that we need to construct an instance of.-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description NewObjectExpression(SQLStatement stmt, java.lang.Class cls, java.util.List<SQLExpression> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getConstructorArgAliases()
java.util.List<SQLExpression>
getConstructorArgExpressions()
java.lang.Class
getNewClass()
void
setArgAliases(java.util.List<java.lang.String> aliases)
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, eq, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, ne, neg, not, setJavaTypeMapping, sub, toSQLText, unDistinct
-
-
-
-
Field Detail
-
newClass
java.lang.Class newClass
The class that we need to construct an instance of.
-
ctrArgExprs
java.util.List<SQLExpression> ctrArgExprs
The argument expressions to use in the constructor.
-
ctrArgAliases
java.util.List<java.lang.String> ctrArgAliases
Optional aliases for the constructor arg expressions.
-
-
Constructor Detail
-
NewObjectExpression
public NewObjectExpression(SQLStatement stmt, java.lang.Class cls, java.util.List<SQLExpression> args)
- Parameters:
stmt
- SQLStatement that this is part ofcls
- Class that we create an instance ofargs
- argument SQL expressions
-
-
Method Detail
-
setArgAliases
public void setArgAliases(java.util.List<java.lang.String> aliases)
-
getNewClass
public java.lang.Class getNewClass()
-
getConstructorArgExpressions
public java.util.List<SQLExpression> getConstructorArgExpressions()
-
getConstructorArgAliases
public java.util.List<java.lang.String> getConstructorArgAliases()
-
-