Class GeneratedSolrModifiedItem

    • Field Detail

      • MODIFIEDTYPECODE

        public static final java.lang.String MODIFIEDTYPECODE
        Qualifier of the SolrModifiedItem.modifiedTypeCode attribute
        See Also:
        Constant Field Values
      • MODIFIEDPK

        public static final java.lang.String MODIFIEDPK
        Qualifier of the SolrModifiedItem.modifiedPk attribute
        See Also:
        Constant Field Values
      • MODIFICATIONTYPE

        public static final java.lang.String MODIFICATIONTYPE
        Qualifier of the SolrModifiedItem.modificationType attribute
        See Also:
        Constant Field Values
      • PARENT

        public static final java.lang.String PARENT
        Qualifier of the SolrModifiedItem.parent attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedSolrModifiedItem

        public GeneratedSolrModifiedItem()
    • Method Detail

      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getModificationType

        public EnumerationValue getModificationType​(SessionContext ctx)
        Generated method - Getter of the SolrModifiedItem.modificationType attribute.
        Returns:
        the modificationType
      • getModificationType

        public EnumerationValue getModificationType()
        Generated method - Getter of the SolrModifiedItem.modificationType attribute.
        Returns:
        the modificationType
      • setModificationType

        public void setModificationType​(SessionContext ctx,
                                        EnumerationValue value)
        Generated method - Setter of the SolrModifiedItem.modificationType attribute.
        Parameters:
        value - the modificationType
      • setModificationType

        public void setModificationType​(EnumerationValue value)
        Generated method - Setter of the SolrModifiedItem.modificationType attribute.
        Parameters:
        value - the modificationType
      • getModifiedPk

        public java.lang.Long getModifiedPk​(SessionContext ctx)
        Generated method - Getter of the SolrModifiedItem.modifiedPk attribute.
        Returns:
        the modifiedPk
      • getModifiedPk

        public java.lang.Long getModifiedPk()
        Generated method - Getter of the SolrModifiedItem.modifiedPk attribute.
        Returns:
        the modifiedPk
      • getModifiedPkAsPrimitive

        public long getModifiedPkAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the SolrModifiedItem.modifiedPk attribute.
        Returns:
        the modifiedPk
      • getModifiedPkAsPrimitive

        public long getModifiedPkAsPrimitive()
        Generated method - Getter of the SolrModifiedItem.modifiedPk attribute.
        Returns:
        the modifiedPk
      • setModifiedPk

        public void setModifiedPk​(SessionContext ctx,
                                  java.lang.Long value)
        Generated method - Setter of the SolrModifiedItem.modifiedPk attribute.
        Parameters:
        value - the modifiedPk
      • setModifiedPk

        public void setModifiedPk​(java.lang.Long value)
        Generated method - Setter of the SolrModifiedItem.modifiedPk attribute.
        Parameters:
        value - the modifiedPk
      • setModifiedPk

        public void setModifiedPk​(SessionContext ctx,
                                  long value)
        Generated method - Setter of the SolrModifiedItem.modifiedPk attribute.
        Parameters:
        value - the modifiedPk
      • setModifiedPk

        public void setModifiedPk​(long value)
        Generated method - Setter of the SolrModifiedItem.modifiedPk attribute.
        Parameters:
        value - the modifiedPk
      • getModifiedTypeCode

        public java.lang.String getModifiedTypeCode​(SessionContext ctx)
        Generated method - Getter of the SolrModifiedItem.modifiedTypeCode attribute.
        Returns:
        the modifiedTypeCode
      • getModifiedTypeCode

        public java.lang.String getModifiedTypeCode()
        Generated method - Getter of the SolrModifiedItem.modifiedTypeCode attribute.
        Returns:
        the modifiedTypeCode
      • setModifiedTypeCode

        public void setModifiedTypeCode​(SessionContext ctx,
                                        java.lang.String value)
        Generated method - Setter of the SolrModifiedItem.modifiedTypeCode attribute.
        Parameters:
        value - the modifiedTypeCode
      • setModifiedTypeCode

        public void setModifiedTypeCode​(java.lang.String value)
        Generated method - Setter of the SolrModifiedItem.modifiedTypeCode attribute.
        Parameters:
        value - the modifiedTypeCode
      • getParent

        public BackofficeSolrIndexerCronJob getParent()
        Generated method - Getter of the SolrModifiedItem.parent attribute.
        Returns:
        the parent
      • setParent

        public void setParent​(BackofficeSolrIndexerCronJob value)
        Generated method - Setter of the SolrModifiedItem.parent attribute.
        Parameters:
        value - the parent