Class StatementNewObjectMapping
java.lang.Object
org.datanucleus.store.rdbms.query.StatementNewObjectMapping
Definition of the mapping of a new object definition in the results of a statement.
The mappings are for the arguments to the constructor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstructorArgMapping
(int ctrPos, Object argMapping) Method to define the mapping for a constructor argument.getConstructorArgMapping
(int position) Accessor for the mapping info for a constructor argument at the specified position.int
Class
<?> boolean
isEmpty()
toString()
-
Field Details
-
cls
Class clsClass that we create an object of. -
ctrArgMappings
Mappings for the constructor objects keyed by the position (in the constructor).
-
-
Constructor Details
-
StatementNewObjectMapping
-
-
Method Details
-
getObjectClass
-
getConstructorArgMapping
Accessor for the mapping info for a constructor argument at the specified position.- Parameters:
position
- The position in the constructor- Returns:
- The argument mappings
-
addConstructorArgMapping
Method to define the mapping for a constructor argument. The "mapping" can be either a StatementMappingIndex, a literal or a StatementNewObjectMapping- Parameters:
ctrPos
- The position in the constructorargMapping
- The mapping for the argument
-
isEmpty
public boolean isEmpty() -
getNumberOfConstructorArgMappings
public int getNumberOfConstructorArgMappings() -
toString
-