org.apache.openjpa.slice
Class SlicePersistence

java.lang.Object
  extended by org.apache.openjpa.slice.SlicePersistence

public class SlicePersistence
extends Object

A helper to determine the slice identifier of an instance.

Author:
Pinaki Poddar

Constructor Summary
SlicePersistence()
           
 
Method Summary
static String getSlice(Object obj)
          Get the slice identifier for the given instance if it is a managed instance and has been assigned to a slice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlicePersistence

public SlicePersistence()
Method Detail

getSlice

public static String getSlice(Object obj)
Get the slice identifier for the given instance if it is a managed instance and has been assigned to a slice.

Returns:
name of the slice, if any. null otherwise.


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.