Package de.xima.fc.entities
Class AWorkflowElementSearchTerm<TElement extends IWorkflowElementEntity>
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.AWorkflowElementSearchTerm<TElement>
- Type Parameters:
TElement
- Type of the workflow element.
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
WorkflowNodeSearchTerm
,WorkflowTriggerSearchTerm
@MappedSuperclass
public abstract class AWorkflowElementSearchTerm<TElement extends IWorkflowElementEntity>
extends AbstractLockableEntity
Each workflow element can have one or more search terms that are used in database queries to filter the applicable
elements.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
JPA attribute name for thegetElement()
field.static final String
JPA attribute name for thegetIndex()
field.static final String
JPA attribute name for thegetKey()
field.static final String
JPA attribute name for thegetValue()
field.static final String
Database column name for thegetElement()
field.static final String
Database column name for thegetIndex()
field.static final String
Database column name for thegetKey()
field.static final String
Database column name for thegetValue()
field.protected TElement
protected @NotEmpty @Size(max=100) String
protected @NotNull @Size(max=100) String
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setId
-
Field Details
-
ATTR_ELEMENT
JPA attribute name for thegetElement()
field.- See Also:
-
ATTR_INDEX
JPA attribute name for thegetIndex()
field.- See Also:
-
ATTR_KEY
JPA attribute name for thegetKey()
field.- See Also:
-
ATTR_VALUE
JPA attribute name for thegetValue()
field.- See Also:
-
COL_ELEMENT
Database column name for thegetElement()
field.- See Also:
-
COL_INDEX
Database column name for thegetIndex()
field.- See Also:
-
COL_KEY
Database column name for thegetKey()
field.- See Also:
-
COL_VALUE
Database column name for thegetValue()
field.- See Also:
-
element
-
key
-
value
-
-
Constructor Details
-
AWorkflowElementSearchTerm
public AWorkflowElementSearchTerm()
-
-
Method Details
-
cloneBasics
- Returns:
- A new search term instance with all fields that do not reference other entities copied from this instance.
-
getElement
- Returns:
- The workflow element to which the search term applies.
-
getIndex
public int getIndex()- Returns:
- The index of this search term. When multiple search terms have the same key, the index must be different.
-
getKey
- Returns:
- The key of the search term.
-
getValue
- Returns:
- The value of the search term.
-
setElement
- Parameters:
trigger
- The workflow element to which the search term applies.
-
setIndex
public void setIndex(int index) - Parameters:
index
- The index of this search term. When multiple search terms have the same key, the index must be different.
-
setKey
- Parameters:
key
- The key of the search term.
-
setValue
- Parameters:
value
- The value of the search term.
-
toString
- Overrides:
toString
in classAbstractLockableEntity
-