Package de.hybris.platform.core
Class WrapperFactory
- java.lang.Object
-
- de.hybris.platform.core.WrapperFactory
-
public abstract class WrapperFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWrapperFactory.ItemPropertyWrappingListenerprotected static classWrapperFactory.PrecomputedJaloItemCacheUnit
-
Constructor Summary
Constructors Constructor Description WrapperFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidderegisterItemWrapperCreator(int typeCode)static voidderegisterObjectWrapperCreator(java.lang.Class srcClass)static ItemgetCachedItem(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 ItemWrapperCreatorgetItemWrapperCreator(int typeCode)static ObjectWrapperCreatorgetObjectWrapperCreator(java.lang.Class srcClass)static java.util.Set<PK>getPrefetchLanguages(SessionContext ctx)static booleanhasItemWrapperCreator(int typeCode)static voidregisterItemWrapperCreator(int typeCode, ItemWrapperCreator wrapper)static voidregisterObjectWrapperCreator(java.lang.Class srcClass, ObjectWrapperCreator wrapper)static Itemrewrap(Item item)static java.lang.Objectunwrap(Cache cache, java.lang.Object object)static java.lang.Objectunwrap(Cache cache, java.lang.Object object, boolean itemsAsPropertyValue)static java.lang.Objectwrap(Cache cache, java.lang.Object object)static java.lang.Objectwrap(SessionContext ctx, Cache cache, java.lang.Object object, WrapperFactory.ItemPropertyWrappingListener listener)static java.lang.Objectwrap(SessionContext ctx, java.lang.Object object, WrapperFactory.ItemPropertyWrappingListener listener)Deprecated, for removal: This API element is subject to removal in a future version.since agesstatic java.lang.Objectwrap(java.lang.Object object)Deprecated, for removal: This API element is subject to removal in a future version.since ages
-
-
-
Method Detail
-
registerItemWrapperCreator
public static void registerItemWrapperCreator(int typeCode, ItemWrapperCreator wrapper)
-
deregisterItemWrapperCreator
public static void deregisterItemWrapperCreator(int typeCode)
-
getItemWrapperCreator
public static ItemWrapperCreator getItemWrapperCreator(int typeCode)
-
hasItemWrapperCreator
public static boolean hasItemWrapperCreator(int typeCode)
-
registerObjectWrapperCreator
public static void registerObjectWrapperCreator(java.lang.Class srcClass, ObjectWrapperCreator wrapper)
-
deregisterObjectWrapperCreator
public static void deregisterObjectWrapperCreator(java.lang.Class srcClass)
-
getObjectWrapperCreator
public static ObjectWrapperCreator getObjectWrapperCreator(java.lang.Class srcClass)
-
wrap
@Deprecated(since="ages", forRemoval=true) public static java.lang.Object wrap(java.lang.Object object)Deprecated, for removal: This API element is subject to removal in a future version.since ages
-
wrap
public static java.lang.Object wrap(Cache cache, java.lang.Object object)
-
wrap
@Deprecated(since="ages", forRemoval=true) public static java.lang.Object wrap(SessionContext ctx, java.lang.Object object, WrapperFactory.ItemPropertyWrappingListener listener)Deprecated, for removal: This API element is subject to removal in a future version.since ages
-
wrap
public static java.lang.Object wrap(SessionContext ctx, Cache cache, java.lang.Object object, WrapperFactory.ItemPropertyWrappingListener listener)
-
getPrefetchLanguages
public static java.util.Set<PK> getPrefetchLanguages(SessionContext ctx)
-
getCachedItems
public static final java.util.Collection<Item> getCachedItems(Cache cache, java.util.Collection<PK> pks, java.util.Set<PK> prefetchLanguagePKs, boolean ignoreMissing) throws JaloItemNotFoundException
- Throws:
JaloItemNotFoundException
-
getCachedItems
public 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
- Throws:
JaloItemNotFoundException
-
getCachedItem
public static final Item getCachedItem(Cache cache, PK pk) throws JaloItemNotFoundException
- Throws:
JaloItemNotFoundException
-
unwrap
public static java.lang.Object unwrap(Cache cache, java.lang.Object object)
-
unwrap
public static java.lang.Object unwrap(Cache cache, java.lang.Object object, boolean itemsAsPropertyValue)
-
-