org.datanucleus.store.mapped
Class StatementNewObjectMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.StatementNewObjectMapping

public class StatementNewObjectMapping
extends java.lang.Object

Definition of the mapping of a new object definition in the results of a statement. The mappings are for the arguments to the constructor.


Constructor Summary
StatementNewObjectMapping(java.lang.Class cls)
           
 
Method Summary
 void addConstructorArgMapping(int ctrPos, java.lang.Object argMapping)
          Method to define the mapping for a constructor argument.
 java.lang.Object getConstructorArgMapping(int position)
          Accessor for the mapping info for a constructor argument at the specified position.
 int getNumberOfConstructorArgMappings()
           
 java.lang.Class getObjectClass()
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatementNewObjectMapping

public StatementNewObjectMapping(java.lang.Class cls)
Method Detail

getObjectClass

public java.lang.Class getObjectClass()

getConstructorArgMapping

public java.lang.Object getConstructorArgMapping(int position)
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

public void addConstructorArgMapping(int ctrPos,
                                     java.lang.Object argMapping)
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 constructor
argMapping - The mapping for the argument

isEmpty

public boolean isEmpty()

getNumberOfConstructorArgMappings

public int getNumberOfConstructorArgMappings()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.