org.datanucleus.store.mapped.mapping
Class MappingHelper

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.MappingHelper

public class MappingHelper
extends java.lang.Object

Helper class for handling mappings.


Constructor Summary
MappingHelper()
           
 
Method Summary
static int[] getMappingIndices(int initialPosition, JavaTypeMapping mapping)
          Convenience method to return an array of positions for datastore columns for the supplied mapping and the initial position value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingHelper

public MappingHelper()
Method Detail

getMappingIndices

public static int[] getMappingIndices(int initialPosition,
                                      JavaTypeMapping mapping)
Convenience method to return an array of positions for datastore columns for the supplied mapping and the initial position value. For example if the mapping has a single datastore column and the initial position is 1 then returns the array {1}.

Parameters:
initialPosition - the initialPosition
mapping - the Mapping
Returns:
an array containing indexes for parameters


Copyright © 2010. All Rights Reserved.