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