Class EJBPropertyRowCache
- java.lang.Object
-
- de.hybris.platform.persistence.property.AbstractPropertyAccess
-
- de.hybris.platform.persistence.property.EJBPropertyRowCache
-
- All Implemented Interfaces:
LocalizedPropertyAccess,PropertyAccess,java.lang.Cloneable
public final class EJBPropertyRowCache extends AbstractPropertyAccess implements LocalizedPropertyAccess, java.lang.Cloneable
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.persistence.property.PropertyAccess
BASE_QUALIFIER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeColumns(java.util.List<java.lang.String> newNames)no longer needed columns due to internal implementation issues.protected java.lang.Objectclone()voidcommitProperties()static EJBPropertyRowCachecreate(long timestamp, java.util.List<java.lang.String> names)create new unlocalized cache without values (assuming null)static EJBPropertyRowCachecreateLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names)create new localized cache without values (assuming null)booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.Object>getAllProperties()java.util.Map<java.lang.String,java.lang.Object>getAllProperties(PK langPK)protected java.util.Map<java.lang.String,java.lang.Object>getAllPropertiesInternal()java.util.BitSetgetChangeSet()intgetColumnCount()PKgetItemPK()PKgetLangPK()java.lang.StringgetName(int index)java.lang.ObjectgetProperty(java.lang.String name)java.lang.ObjectgetProperty(java.lang.String name, PK langPK)java.util.Set<java.lang.String>getPropertyNames()java.util.Set<java.lang.String>getPropertyNames(PK langPK)protected java.util.Set<java.lang.String>getPropertyNamesInternal()java.lang.ObjectgetValue(int index)booleanhasChanged()booleanhasChanged(int index)inthashCode()booleanhasModifiedProperties()booleanisInDatabase()booleanisLocalized()static EJBPropertyRowCacheload(long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)loading unlocalized cachestatic EJBPropertyRowCacheloadLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)loading localized cachejava.lang.ObjectremoveProperty(java.lang.String name)java.lang.ObjectremoveProperty(java.lang.String name, PK langPK)voidrollbackProperties()voidsetItemPK(PK itemPK)java.lang.ObjectsetProperty(java.lang.String name, PK langPK, java.lang.Object value)java.lang.ObjectsetProperty(java.lang.String name, java.lang.Object value)java.lang.StringtoString()voidwroteChanges(boolean success)-
Methods inherited from class de.hybris.platform.persistence.property.AbstractPropertyAccess
dispose, firePropertyDataChanged, getOwner, getVersion, registerOwner, setVersion
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.persistence.property.PropertyAccess
dispose, registerOwner
-
-
-
-
Method Detail
-
createLocalized
public static EJBPropertyRowCache createLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names)
create new localized cache without values (assuming null)
-
create
public static EJBPropertyRowCache create(long timestamp, java.util.List<java.lang.String> names)
create new unlocalized cache without values (assuming null)
-
loadLocalized
public static EJBPropertyRowCache loadLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)
loading localized cache
-
load
public static EJBPropertyRowCache load(long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)
loading unlocalized cache
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getItemPK
public PK getItemPK()
-
setItemPK
public void setItemPK(PK itemPK)
-
changeColumns
public void changeColumns(java.util.List<java.lang.String> newNames)
no longer needed columns due to internal implementation issues. by now this will only add new columns, but never remove
-
getColumnCount
public int getColumnCount()
-
getName
public java.lang.String getName(int index)
-
getValue
public java.lang.Object getValue(int index)
-
isLocalized
public boolean isLocalized()
-
getLangPK
public PK getLangPK()
-
hasChanged
public boolean hasChanged()
-
isInDatabase
public boolean isInDatabase()
-
hasChanged
public boolean hasChanged(int index)
-
getChangeSet
public java.util.BitSet getChangeSet()
-
wroteChanges
public void wroteChanges(boolean success)
-
getAllProperties
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
- Specified by:
getAllPropertiesin interfacePropertyAccess
-
getAllPropertiesInternal
protected java.util.Map<java.lang.String,java.lang.Object> getAllPropertiesInternal()
-
setProperty
public java.lang.Object setProperty(java.lang.String name, java.lang.Object value)- Specified by:
setPropertyin interfacePropertyAccess
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getPropertyin interfacePropertyAccess
-
removeProperty
public java.lang.Object removeProperty(java.lang.String name)
- Specified by:
removePropertyin interfacePropertyAccess
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames()
- Specified by:
getPropertyNamesin interfacePropertyAccess
-
getPropertyNamesInternal
protected java.util.Set<java.lang.String> getPropertyNamesInternal()
-
hasModifiedProperties
public boolean hasModifiedProperties()
- Specified by:
hasModifiedPropertiesin interfacePropertyAccess
-
commitProperties
public void commitProperties()
- Specified by:
commitPropertiesin interfacePropertyAccess
-
rollbackProperties
public void rollbackProperties()
- Specified by:
rollbackPropertiesin interfacePropertyAccess
-
getAllProperties
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties(PK langPK)
- Specified by:
getAllPropertiesin interfaceLocalizedPropertyAccess
-
setProperty
public java.lang.Object setProperty(java.lang.String name, PK langPK, java.lang.Object value)- Specified by:
setPropertyin interfaceLocalizedPropertyAccess
-
getProperty
public java.lang.Object getProperty(java.lang.String name, PK langPK)- Specified by:
getPropertyin interfaceLocalizedPropertyAccess
-
removeProperty
public java.lang.Object removeProperty(java.lang.String name, PK langPK)- Specified by:
removePropertyin interfaceLocalizedPropertyAccess
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames(PK langPK)
- Specified by:
getPropertyNamesin interfaceLocalizedPropertyAccess
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-