Class GeneratedWherePart

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    WherePart

    public abstract class GeneratedWherePart
    extends GenericItem
    Generated class for type WherePart.
    See Also:
    Serialized Form
    • Constructor Detail

      • GeneratedWherePart

        public GeneratedWherePart()
    • Method Detail

      • isAnd

        public java.lang.Boolean isAnd​(SessionContext ctx)
        Generated method - Getter of the WherePart.and attribute.
        Returns:
        the and
      • isAnd

        public java.lang.Boolean isAnd()
        Generated method - Getter of the WherePart.and attribute.
        Returns:
        the and
      • isAndAsPrimitive

        public boolean isAndAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the WherePart.and attribute.
        Returns:
        the and
      • isAndAsPrimitive

        public boolean isAndAsPrimitive()
        Generated method - Getter of the WherePart.and attribute.
        Returns:
        the and
      • setAnd

        public void setAnd​(SessionContext ctx,
                           java.lang.Boolean value)
        Generated method - Setter of the WherePart.and attribute.
        Parameters:
        value - the and
      • setAnd

        public void setAnd​(java.lang.Boolean value)
        Generated method - Setter of the WherePart.and attribute.
        Parameters:
        value - the and
      • setAnd

        public void setAnd​(SessionContext ctx,
                           boolean value)
        Generated method - Setter of the WherePart.and attribute.
        Parameters:
        value - the and
      • setAnd

        public void setAnd​(boolean value)
        Generated method - Setter of the WherePart.and attribute.
        Parameters:
        value - the and
      • 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
      • getDynamicParams

        public java.util.Collection<AbstractAdvancedSavedQuerySearchParameter> getDynamicParams()
        Generated method - Getter of the WherePart.dynamicParams attribute.
        Returns:
        the dynamicParams
      • setDynamicParams

        public void setDynamicParams​(java.util.Collection<AbstractAdvancedSavedQuerySearchParameter> value)
        Generated method - Setter of the WherePart.dynamicParams attribute.
        Parameters:
        value - the dynamicParams
      • addToDynamicParams

        public void addToDynamicParams​(AbstractAdvancedSavedQuerySearchParameter value)
        Generated method - Adds value to dynamicParams.
        Parameters:
        value - the item to add to dynamicParams
      • removeFromDynamicParams

        public void removeFromDynamicParams​(AbstractAdvancedSavedQuerySearchParameter value)
        Generated method - Removes value from dynamicParams.
        Parameters:
        value - the item to remove from dynamicParams
      • getReplacePattern

        public java.lang.String getReplacePattern​(SessionContext ctx)
        Generated method - Getter of the WherePart.replacePattern attribute.
        Returns:
        the replacePattern
      • getReplacePattern

        public java.lang.String getReplacePattern()
        Generated method - Getter of the WherePart.replacePattern attribute.
        Returns:
        the replacePattern
      • setReplacePattern

        public void setReplacePattern​(SessionContext ctx,
                                      java.lang.String value)
        Generated method - Setter of the WherePart.replacePattern attribute.
        Parameters:
        value - the replacePattern
      • setReplacePattern

        public void setReplacePattern​(java.lang.String value)
        Generated method - Setter of the WherePart.replacePattern attribute.
        Parameters:
        value - the replacePattern
      • getSavedQuery

        public AdvancedSavedQuery getSavedQuery​(SessionContext ctx)
        Generated method - Getter of the WherePart.savedQuery attribute.
        Returns:
        the savedQuery
      • getSavedQuery

        public AdvancedSavedQuery getSavedQuery()
        Generated method - Getter of the WherePart.savedQuery attribute.
        Returns:
        the savedQuery
      • setSavedQuery

        public void setSavedQuery​(SessionContext ctx,
                                  AdvancedSavedQuery value)
        Generated method - Setter of the WherePart.savedQuery attribute.
        Parameters:
        value - the savedQuery
      • setSavedQuery

        public void setSavedQuery​(AdvancedSavedQuery value)
        Generated method - Setter of the WherePart.savedQuery attribute.
        Parameters:
        value - the savedQuery