Class MetaInformationManagerEJB
- java.lang.Object
-
- de.hybris.platform.persistence.ManagerEJB
-
- de.hybris.platform.persistence.meta.MetaInformationManagerEJB
-
public class MetaInformationManagerEJB extends ManagerEJB
-
-
Constructor Summary
Constructors Constructor Description MetaInformationManagerEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetProperty(java.lang.String name)java.util.SetgetPropertyNames()java.lang.ObjectgetPropertyRaw(java.lang.String name)longgetSystemInitUpdateTimestamp()Reads tenant restart marker from a database which denotes time when the system was initialized.java.lang.StringgetSystemName()java.lang.StringgetSystemPK()voidremoveItem(ItemRemote item)Removes an Item which is not stageable.java.lang.ObjectremoveProperty(java.lang.String name)voidresetSystemPK()java.lang.ObjectsetProperty(java.lang.String name, java.lang.Object value)voidsetSystemInitUpdateTimestamp(long timestamp)-
Methods inherited from class de.hybris.platform.persistence.ManagerEJB
canRemoveItem, ejbCreate, ejbPostCreate, getPersistencePool, isReinitialization, notifyItemRemove, prepareItemRemove
-
-
-
-
Method Detail
-
getPropertyNames
public java.util.Set getPropertyNames()
-
setProperty
public java.lang.Object setProperty(java.lang.String name, java.lang.Object value)
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
-
getPropertyRaw
public java.lang.Object getPropertyRaw(java.lang.String name)
-
removeProperty
public java.lang.Object removeProperty(java.lang.String name)
-
setSystemInitUpdateTimestamp
public void setSystemInitUpdateTimestamp(long timestamp)
-
resetSystemPK
public void resetSystemPK()
-
getSystemInitUpdateTimestamp
public long getSystemInitUpdateTimestamp()
Reads tenant restart marker from a database which denotes time when the system was initialized. The value only changes during system init. The value was also modified during system update in the past, but this is no longer the case. We want to minimize disruptions to system nodes during update and we rely on nodes restart to catch up with typesystem changes. Current implementation effectively makes cache_metainfo.system.initupdate.ts obsolete- Returns:
- timestamp when system was initialized (tenant restart marker)
-
getSystemName
public java.lang.String getSystemName()
-
getSystemPK
public java.lang.String getSystemPK()
-
removeItem
public void removeItem(ItemRemote item) throws ConsistencyCheckException
Description copied from class:ManagerEJBRemoves an Item which is not stageable. The following tasks are done by this method:- Check if item is stageable; if it is, throw exception (we can
- call
ManagerEJB.prepareItemRemove(ItemRemote) - Depending on the given stagingMethod do:
Productive Stage - Remove staged copy (item.getStagedCopy()) of item, if it exist
- call NotifyManager.notifyItemRemove( item )
- Remove the entity
- Remove staged copy (item.getStagedCopy()) of item, if it exist
- Mark item as removed (item.setRemoved(true)
- Overrides:
removeItemin classManagerEJB- Throws:
ConsistencyCheckException- See Also:
ManagerEJB.prepareItemRemove(ItemRemote)
-
-