public abstract class WrapperFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WrapperFactory.ItemPropertyWrappingListener |
| Constructor and Description |
|---|
WrapperFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deregisterItemWrapperCreator(int typeCode) |
static void |
deregisterObjectWrapperCreator(Class srcClass) |
static Item |
getCachedItem(Cache cache,
PK pk) |
static Collection<Item> |
getCachedItems(Cache cache,
Collection<PK> pks,
Set<PK> prefetchLanguagePKs,
boolean ignoreMissing) |
static Collection<Item> |
getCachedItems(Cache cache,
Collection<PK> pks,
Set<PK> prefetchLanguagePKs,
boolean ignoreMissing,
boolean returnMissingAsNull) |
static ItemWrapperCreator |
getItemWrapperCreator(int typeCode) |
static ObjectWrapperCreator |
getObjectWrapperCreator(Class srcClass) |
static Set<PK> |
getPrefetchLanguages(SessionContext ctx) |
static boolean |
hasItemWrapperCreator(int typeCode) |
static void |
registerItemWrapperCreator(int typeCode,
ItemWrapperCreator wrapper) |
static void |
registerObjectWrapperCreator(Class srcClass,
ObjectWrapperCreator wrapper) |
static Item |
rewrap(Item item) |
static Object |
unwrap(Cache cache,
Object object) |
static Object |
unwrap(Cache cache,
Object object,
boolean itemsAsPropertyValue) |
static Object |
unwrap(Object object)
Deprecated.
|
static Object |
unwrap(Object object,
boolean itemsAsPropertyValue)
Deprecated.
|
static Object |
wrap(Cache cache,
Object object) |
static Object |
wrap(Object object)
Deprecated.
|
static Object |
wrap(SessionContext ctx,
Cache cache,
Object object,
WrapperFactory.ItemPropertyWrappingListener listener) |
static Object |
wrap(SessionContext ctx,
Object object,
WrapperFactory.ItemPropertyWrappingListener listener)
Deprecated.
|
public static void registerItemWrapperCreator(int typeCode,
ItemWrapperCreator wrapper)
public static void deregisterItemWrapperCreator(int typeCode)
public static ItemWrapperCreator getItemWrapperCreator(int typeCode)
public static boolean hasItemWrapperCreator(int typeCode)
public static void registerObjectWrapperCreator(Class srcClass, ObjectWrapperCreator wrapper)
public static void deregisterObjectWrapperCreator(Class srcClass)
public static ObjectWrapperCreator getObjectWrapperCreator(Class srcClass)
@Deprecated public static Object wrap(Object object)
@Deprecated public static Object wrap(SessionContext ctx, Object object, WrapperFactory.ItemPropertyWrappingListener listener)
public static Object wrap(SessionContext ctx, Cache cache, Object object, WrapperFactory.ItemPropertyWrappingListener listener)
public static Set<PK> getPrefetchLanguages(SessionContext ctx)
public static final Collection<Item> getCachedItems(Cache cache, Collection<PK> pks, Set<PK> prefetchLanguagePKs, boolean ignoreMissing) throws JaloItemNotFoundException
JaloItemNotFoundExceptionpublic static final Collection<Item> getCachedItems(Cache cache, Collection<PK> pks, Set<PK> prefetchLanguagePKs, boolean ignoreMissing, boolean returnMissingAsNull) throws JaloItemNotFoundException
JaloItemNotFoundExceptionpublic static final Item getCachedItem(Cache cache, PK pk) throws JaloItemNotFoundException
JaloItemNotFoundException@Deprecated public static Object unwrap(Object object)
@Deprecated public static Object unwrap(Object object, boolean itemsAsPropertyValue)
Copyright © 2017 SAP SE. All Rights Reserved.