Class GeneratedAbstractConstraint

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
AbstractConstraint

public abstract class GeneratedAbstractConstraint extends GenericItem
Generated class for type AbstractConstraint.
See Also:
  • Field Details

    • ID

      public static final String ID
      Qualifier of the AbstractConstraint.id attribute
      See Also:
    • ACTIVE

      public static final String ACTIVE
      Qualifier of the AbstractConstraint.active attribute
      See Also:
    • ANNOTATION

      public static final String ANNOTATION
      Qualifier of the AbstractConstraint.annotation attribute
      See Also:
    • SEVERITY

      public static final String SEVERITY
      Qualifier of the AbstractConstraint.severity attribute
      See Also:
    • DEFAULTMESSAGE

      public static final String DEFAULTMESSAGE
      Qualifier of the AbstractConstraint.defaultMessage attribute
      See Also:
    • MESSAGE

      public static final String MESSAGE
      Qualifier of the AbstractConstraint.message attribute
      See Also:
    • TARGET

      public static final String TARGET
      Qualifier of the AbstractConstraint.target attribute
      See Also:
    • TYPE

      public static final String TYPE
      Qualifier of the AbstractConstraint.type attribute
      See Also:
    • CONSTRAINTGROUPS

      public static final String CONSTRAINTGROUPS
      Qualifier of the AbstractConstraint.constraintGroups attribute
      See Also:
    • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED

      protected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
      Relation ordering override parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
    • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED

      protected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED
    • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED

      protected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
    • TYPEHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedAbstractConstraint> TYPEHANDLER
      BidirectionalOneToManyHandler for handling 1:n TYPE's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedAbstractConstraint

      public GeneratedAbstractConstraint()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • isActive

      public Boolean isActive(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.active attribute.
      Returns:
      the active - Enabled flag for a constraint
    • isActive

      public Boolean isActive()
      Generated method - Getter of the AbstractConstraint.active attribute.
      Returns:
      the active - Enabled flag for a constraint
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.active attribute.
      Returns:
      the active - Enabled flag for a constraint
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive()
      Generated method - Getter of the AbstractConstraint.active attribute.
      Returns:
      the active - Enabled flag for a constraint
    • setActive

      public void setActive(SessionContext ctx, Boolean value)
      Generated method - Setter of the AbstractConstraint.active attribute.
      Parameters:
      value - the active - Enabled flag for a constraint
    • setActive

      public void setActive(Boolean value)
      Generated method - Setter of the AbstractConstraint.active attribute.
      Parameters:
      value - the active - Enabled flag for a constraint
    • setActive

      public void setActive(SessionContext ctx, boolean value)
      Generated method - Setter of the AbstractConstraint.active attribute.
      Parameters:
      value - the active - Enabled flag for a constraint
    • setActive

      public void setActive(boolean value)
      Generated method - Setter of the AbstractConstraint.active attribute.
      Parameters:
      value - the active - Enabled flag for a constraint
    • getAnnotation

      public Class getAnnotation(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.annotation attribute.
      Returns:
      the annotation - Full class name literal for a corresponding annotation
    • getAnnotation

      public Class getAnnotation()
      Generated method - Getter of the AbstractConstraint.annotation attribute.
      Returns:
      the annotation - Full class name literal for a corresponding annotation
    • setAnnotation

      public void setAnnotation(SessionContext ctx, Class value)
      Generated method - Setter of the AbstractConstraint.annotation attribute.
      Parameters:
      value - the annotation - Full class name literal for a corresponding annotation
    • setAnnotation

      public void setAnnotation(Class value)
      Generated method - Setter of the AbstractConstraint.annotation attribute.
      Parameters:
      value - the annotation - Full class name literal for a corresponding annotation
    • getConstraintGroups

      public Set<ConstraintGroup> getConstraintGroups(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.constraintGroups attribute.
      Returns:
      the constraintGroups
    • getConstraintGroups

      public Set<ConstraintGroup> getConstraintGroups()
      Generated method - Getter of the AbstractConstraint.constraintGroups attribute.
      Returns:
      the constraintGroups
    • getConstraintGroupsCount

      public long getConstraintGroupsCount(SessionContext ctx)
    • getConstraintGroupsCount

      public long getConstraintGroupsCount()
    • setConstraintGroups

      public void setConstraintGroups(SessionContext ctx, Set<ConstraintGroup> value)
      Generated method - Setter of the AbstractConstraint.constraintGroups attribute.
      Parameters:
      value - the constraintGroups
    • setConstraintGroups

      public void setConstraintGroups(Set<ConstraintGroup> value)
      Generated method - Setter of the AbstractConstraint.constraintGroups attribute.
      Parameters:
      value - the constraintGroups
    • addToConstraintGroups

      public void addToConstraintGroups(SessionContext ctx, ConstraintGroup value)
      Generated method - Adds value to constraintGroups.
      Parameters:
      value - the item to add to constraintGroups
    • addToConstraintGroups

      public void addToConstraintGroups(ConstraintGroup value)
      Generated method - Adds value to constraintGroups.
      Parameters:
      value - the item to add to constraintGroups
    • removeFromConstraintGroups

      public void removeFromConstraintGroups(SessionContext ctx, ConstraintGroup value)
      Generated method - Removes value from constraintGroups.
      Parameters:
      value - the item to remove from constraintGroups
    • removeFromConstraintGroups

      public void removeFromConstraintGroups(ConstraintGroup value)
      Generated method - Removes value from constraintGroups.
      Parameters:
      value - the item to remove from constraintGroups
    • 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
    • getDefaultMessage

      public abstract String getDefaultMessage(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
      Returns:
      the defaultMessage - Localized resource bundle evaluated error message
    • getDefaultMessage

      public String getDefaultMessage()
      Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
      Returns:
      the defaultMessage - Localized resource bundle evaluated error message
    • getAllDefaultMessage

      public abstract Map<Language,String> getAllDefaultMessage(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
      Returns:
      the localized defaultMessage - Localized resource bundle evaluated error message
    • getAllDefaultMessage

      public Map<Language,String> getAllDefaultMessage()
      Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
      Returns:
      the localized defaultMessage - Localized resource bundle evaluated error message
    • getId

      public String getId(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.id attribute.
      Returns:
      the id - Constraint identifier
    • getId

      public String getId()
      Generated method - Getter of the AbstractConstraint.id attribute.
      Returns:
      the id - Constraint identifier
    • setId

      public void setId(SessionContext ctx, String value)
      Generated method - Setter of the AbstractConstraint.id attribute.
      Parameters:
      value - the id - Constraint identifier
    • setId

      public void setId(String value)
      Generated method - Setter of the AbstractConstraint.id attribute.
      Parameters:
      value - the id - Constraint identifier
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getMessage

      public String getMessage(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.message attribute.
      Returns:
      the message - Localized error message
    • getMessage

      public String getMessage()
      Generated method - Getter of the AbstractConstraint.message attribute.
      Returns:
      the message - Localized error message
    • getAllMessage

      public Map<Language,String> getAllMessage(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.message attribute.
      Returns:
      the localized message - Localized error message
    • getAllMessage

      public Map<Language,String> getAllMessage()
      Generated method - Getter of the AbstractConstraint.message attribute.
      Returns:
      the localized message - Localized error message
    • setMessage

      public void setMessage(SessionContext ctx, String value)
      Generated method - Setter of the AbstractConstraint.message attribute.
      Parameters:
      value - the message - Localized error message
    • setMessage

      public void setMessage(String value)
      Generated method - Setter of the AbstractConstraint.message attribute.
      Parameters:
      value - the message - Localized error message
    • setAllMessage

      public void setAllMessage(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the AbstractConstraint.message attribute.
      Parameters:
      value - the message - Localized error message
    • setAllMessage

      public void setAllMessage(Map<Language,String> value)
      Generated method - Setter of the AbstractConstraint.message attribute.
      Parameters:
      value - the message - Localized error message
    • getSeverity

      public EnumerationValue getSeverity(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.severity attribute.
      Returns:
      the severity - Severity level
    • getSeverity

      public EnumerationValue getSeverity()
      Generated method - Getter of the AbstractConstraint.severity attribute.
      Returns:
      the severity - Severity level
    • setSeverity

      public void setSeverity(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the AbstractConstraint.severity attribute.
      Parameters:
      value - the severity - Severity level
    • setSeverity

      public void setSeverity(EnumerationValue value)
      Generated method - Setter of the AbstractConstraint.severity attribute.
      Parameters:
      value - the severity - Severity level
    • getTarget

      public Class getTarget(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.target attribute.
      Returns:
      the target - Target class for covered with validation logic
    • getTarget

      public Class getTarget()
      Generated method - Getter of the AbstractConstraint.target attribute.
      Returns:
      the target - Target class for covered with validation logic
    • setTarget

      public void setTarget(SessionContext ctx, Class value)
      Generated method - Setter of the AbstractConstraint.target attribute.
      Parameters:
      value - the target - Target class for covered with validation logic
    • setTarget

      public void setTarget(Class value)
      Generated method - Setter of the AbstractConstraint.target attribute.
      Parameters:
      value - the target - Target class for covered with validation logic
    • getType

      public ComposedType getType(SessionContext ctx)
      Generated method - Getter of the AbstractConstraint.type attribute.
      Returns:
      the type
    • getType

      public ComposedType getType()
      Generated method - Getter of the AbstractConstraint.type attribute.
      Returns:
      the type
    • setType

      public void setType(SessionContext ctx, ComposedType value)
      Generated method - Setter of the AbstractConstraint.type attribute.
      Parameters:
      value - the type
    • setType

      public void setType(ComposedType value)
      Generated method - Setter of the AbstractConstraint.type attribute.
      Parameters:
      value - the type