org.datanucleus.store.rdbms
Class RDBMSStoreHelper

java.lang.Object
  extended by org.datanucleus.store.rdbms.RDBMSStoreHelper

public class RDBMSStoreHelper
extends java.lang.Object

Provides a series of utilities assisting in the datastore management process for RDBMS datastores.


Constructor Summary
RDBMSStoreHelper()
           
 
Method Summary
static java.lang.String getClassNameForIdKeyUsingDiscriminator(org.datanucleus.ObjectManager om, java.lang.Object id, java.util.List schemaDataOptions)
          Utility that takes an id and a list of possible class RDBMSStoreData and finds which of these classes contains the object with that id.
static java.lang.String getClassNameForIdKeyUsingUnion(org.datanucleus.ObjectManager om, java.lang.Object id, java.util.List schemaDataOptions)
          Utility that takes an id and a list of possible class RDBMSStoreData and finds which of these classes contains the object with that id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSStoreHelper

public RDBMSStoreHelper()
Method Detail

getClassNameForIdKeyUsingUnion

public static java.lang.String getClassNameForIdKeyUsingUnion(org.datanucleus.ObjectManager om,
                                                              java.lang.Object id,
                                                              java.util.List schemaDataOptions)
Utility that takes an id and a list of possible class RDBMSStoreData and finds which of these classes contains the object with that id. Works via a query to the datastore. Operates for all types of identity.

Parameters:
om - Object Manager
id - The id
schemaDataOptions - List of possible RDBMSStoreData
Returns:
Name of the class with this key (or null if none found)

getClassNameForIdKeyUsingDiscriminator

public static java.lang.String getClassNameForIdKeyUsingDiscriminator(org.datanucleus.ObjectManager om,
                                                                      java.lang.Object id,
                                                                      java.util.List schemaDataOptions)
Utility that takes an id and a list of possible class RDBMSStoreData and finds which of these classes contains the object with that id. Works via a query to the datastore. Operates for all types of identity. TODO The "schemaDataOptions" could be changed to be an array of class names.

Parameters:
om - Object Manager
id - The id
schemaDataOptions - List of possible RDBMSStoreData
Returns:
Name of the class with this key (or null if none found)


Copyright © 2009. All Rights Reserved.