Class ExtensibleItemEJB

    • Constructor Detail

      • ExtensibleItemEJB

        public ExtensibleItemEJB()
    • Method Detail

      • setPropertyTimestampInternal

        public abstract void setPropertyTimestampInternal​(long timestamp)
      • getPropertyTimestampInternal

        public abstract long getPropertyTimestampInternal()
      • getAllLanguagePKs

        protected final java.util.Collection<PK> getAllLanguagePKs()
      • getAllPropertyAccesses

        protected java.util.Collection<PropertyAccess> getAllPropertyAccesses​(boolean forWriting)
      • preLoadUnlocalizedProperties

        protected boolean preLoadUnlocalizedProperties()
        override to enable/disable unlocalized property cache preloading this applies only when BuildConstants.NO_UP_TABLES = true !
      • getPropertyAccess

        protected PropertyAccess getPropertyAccess​(java.lang.String name,
                                                   boolean forWriting)
      • getPropertyAccess

        protected PropertyAccess getPropertyAccess​(java.lang.String name,
                                                   PK langPK,
                                                   boolean forWriting)
      • getPropertyAccessInternal

        protected final PropertyAccess getPropertyAccessInternal​(TypeInfoMap info,
                                                                 int type,
                                                                 PK langPK,
                                                                 boolean forWriting,
                                                                 java.lang.String name)
      • setPropertiesFromContainer

        public void setPropertiesFromContainer​(java.util.Map<java.lang.String,​java.lang.Object> values)
      • decryptIfNecessaryWithFallback

        protected java.lang.Object decryptIfNecessaryWithFallback​(java.lang.String name,
                                                                  java.lang.Object original)
      • warnOnDecryptionError

        protected void warnOnDecryptionError​(java.lang.String name,
                                             java.lang.Exception e)
      • decryptValueWithFallback

        protected java.lang.String decryptValueWithFallback​(ValueEncryptor vc,
                                                            java.lang.String name,
                                                            java.lang.String original)
      • createFromTemplate

        protected void createFromTemplate​(ItemRemote template)
        sets data from template item. override in all subclasses which define new fields!
        Overrides:
        createFromTemplate in class ItemEJB
      • postCreateFromTemplate

        protected void postCreateFromTemplate​(ItemRemote template)
        sets (postcreate - )data from template item. override in all subclasses which define new fields!
        Overrides:
        postCreateFromTemplate in class ItemEJB
      • getModifiedUnlocalizedPropertyCache

        protected EJBPropertyRowCache getModifiedUnlocalizedPropertyCache()
        used by HJMP to get modifed unloc property cache to save it together with item row itself. dont use elsewhere !
      • hasModifiedCaches

        protected boolean hasModifiedCaches()
        Checks if a modified property caches exist.
        Overrides:
        hasModifiedCaches in class ItemEJB
        Returns:
        true if this item instance owns modified caches which need to be stored
        See Also:
        ItemEJB.hasModifiedCaches()
      • updatePropertyVersion

        protected final void updatePropertyVersion​(long newTS)
        sets timestamp in all currently available property caches
      • ejbHomeGetPropertyTableName

        public java.lang.String ejbHomeGetPropertyTableName()
        home method impl
      • getPropertyTableNameImpl

        public abstract java.lang.String getPropertyTableNameImpl()
      • writePropertyCaches

        protected final boolean writePropertyCaches()
        called by HJMP only !!!
      • removePropertyData

        protected final void removePropertyData()
        called by HJMP only !!!
      • typeChanged

        protected void typeChanged​(PK oldTypePK,
                                   PK newTypePK)
        Overrides:
        typeChanged in class ItemEJB