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 void
changeColumns(java.util.List<java.lang.String> newNames)
no longer needed columns due to internal implementation issues.protected java.lang.Object
clone()
void
commitProperties()
static EJBPropertyRowCache
create(long timestamp, java.util.List<java.lang.String> names)
create new unlocalized cache without values (assuming null)static EJBPropertyRowCache
createLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names)
create new localized cache without values (assuming null)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.BitSet
getChangeSet()
int
getColumnCount()
PK
getItemPK()
PK
getLangPK()
java.lang.String
getName(int index)
java.lang.Object
getProperty(java.lang.String name)
java.lang.Object
getProperty(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.Object
getValue(int index)
boolean
hasChanged()
boolean
hasChanged(int index)
boolean
hasModifiedProperties()
boolean
isInDatabase()
boolean
isLocalized()
static EJBPropertyRowCache
load(long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)
loading unlocalized cachestatic EJBPropertyRowCache
loadLocalized(PK langPK, long timestamp, java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)
loading localized cachejava.lang.Object
removeProperty(java.lang.String name)
java.lang.Object
removeProperty(java.lang.String name, PK langPK)
void
rollbackProperties()
void
setItemPK(PK itemPK)
java.lang.Object
setProperty(java.lang.String name, PK langPK, java.lang.Object value)
java.lang.Object
setProperty(java.lang.String name, java.lang.Object value)
java.lang.String
toString()
void
wroteChanges(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
equals, finalize, getClass, hashCode, 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:
toString
in 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:
getAllProperties
in 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:
setProperty
in interfacePropertyAccess
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in interfacePropertyAccess
-
removeProperty
public java.lang.Object removeProperty(java.lang.String name)
- Specified by:
removeProperty
in interfacePropertyAccess
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames()
- Specified by:
getPropertyNames
in interfacePropertyAccess
-
getPropertyNamesInternal
protected java.util.Set<java.lang.String> getPropertyNamesInternal()
-
hasModifiedProperties
public boolean hasModifiedProperties()
- Specified by:
hasModifiedProperties
in interfacePropertyAccess
-
commitProperties
public void commitProperties()
- Specified by:
commitProperties
in interfacePropertyAccess
-
rollbackProperties
public void rollbackProperties()
- Specified by:
rollbackProperties
in interfacePropertyAccess
-
getAllProperties
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties(PK langPK)
- Specified by:
getAllProperties
in interfaceLocalizedPropertyAccess
-
setProperty
public java.lang.Object setProperty(java.lang.String name, PK langPK, java.lang.Object value)
- Specified by:
setProperty
in interfaceLocalizedPropertyAccess
-
getProperty
public java.lang.Object getProperty(java.lang.String name, PK langPK)
- Specified by:
getProperty
in interfaceLocalizedPropertyAccess
-
removeProperty
public java.lang.Object removeProperty(java.lang.String name, PK langPK)
- Specified by:
removeProperty
in interfaceLocalizedPropertyAccess
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames(PK langPK)
- Specified by:
getPropertyNames
in interfaceLocalizedPropertyAccess
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-