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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ELEMENT
JPA attribute name for thegetElement()
field.static String
ATTR_INDEX
JPA attribute name for thegetIndex()
field.static String
ATTR_KEY
JPA attribute name for thegetKey()
field.static String
ATTR_VALUE
JPA attribute name for thegetValue()
field.static String
COL_ELEMENT
Database column name for thegetElement()
field.static String
COL_INDEX
Database column name for thegetIndex()
field.static String
COL_KEY
Database column name for thegetKey()
field.static String
COL_VALUE
Database column name for thegetValue()
field.protected TElement
element
protected @NotEmpty @Size(max=100) String
key
protected @NotNull @Size(max=100) String
value
-
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.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AWorkflowElementSearchTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWorkflowElementSearchTerm<TElement>
cloneBasics()
TElement
getElement()
int
getIndex()
String
getKey()
String
getValue()
void
setElement(TElement trigger)
void
setIndex(int index)
void
setKey(String key)
void
setValue(String value)
String
toString()
-
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
-
-
-
-
Field Detail
-
ATTR_ELEMENT
public static final String ATTR_ELEMENT
JPA attribute name for thegetElement()
field.- See Also:
- Constant Field Values
-
ATTR_INDEX
public static final String ATTR_INDEX
JPA attribute name for thegetIndex()
field.- See Also:
- Constant Field Values
-
ATTR_KEY
public static final String ATTR_KEY
JPA attribute name for thegetKey()
field.- See Also:
- Constant Field Values
-
ATTR_VALUE
public static final String ATTR_VALUE
JPA attribute name for thegetValue()
field.- See Also:
- Constant Field Values
-
COL_ELEMENT
public static final String COL_ELEMENT
Database column name for thegetElement()
field.- See Also:
- Constant Field Values
-
COL_INDEX
public static final String COL_INDEX
Database column name for thegetIndex()
field.- See Also:
- Constant Field Values
-
COL_KEY
public static final String COL_KEY
Database column name for thegetKey()
field.- See Also:
- Constant Field Values
-
COL_VALUE
public static final String COL_VALUE
Database column name for thegetValue()
field.- See Also:
- Constant Field Values
-
element
@NotNull protected TElement extends IWorkflowElementEntity element
-
key
@NotEmpty @Size(max=100) protected @NotEmpty @Size(max=100) String key
-
value
@NotNull @Size(max=100) protected @NotNull @Size(max=100) String value
-
-
Method Detail
-
cloneBasics
public AWorkflowElementSearchTerm<TElement> cloneBasics()
- Returns:
- A new search term instance with all fields that do not reference other entities copied from this instance.
-
getElement
public TElement 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
public String getKey()
- Returns:
- The key of the search term.
-
getValue
public String getValue()
- Returns:
- The value of the search term.
-
setElement
public void setElement(TElement trigger)
- 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
public void setKey(String key)
- Parameters:
key
- The key of the search term.
-
setValue
public void setValue(String value)
- Parameters:
value
- The value of the search term.
-
toString
public String toString()
- Overrides:
toString
in classAbstractLockableEntity
-
-