org.camunda.bpm.engine.impl.persistence.entity
Class FilterEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.FilterEntity
- All Implemented Interfaces:
- Serializable, Filter, DbEntity, DbEntityLifecycleAware, HasDbRevision
public class FilterEntity
- extends Object
- implements Filter, Serializable, DbEntity, HasDbRevision, DbEntityLifecycleAware
- Author:
- Sebastian Menski
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final EnginePersistenceLogger LOG
queryConverter
public static final Map<String,JsonObjectConverter<?>> queryConverter
id
protected String id
resourceType
protected String resourceType
name
protected String name
owner
protected String owner
query
protected AbstractQuery query
properties
protected Map<String,Object> properties
revision
protected int revision
FilterEntity
protected FilterEntity()
FilterEntity
public FilterEntity(String resourceType)
setId
public void setId(String id)
- Specified by:
setId in interface DbEntity
getId
public String getId()
- Specified by:
getId in interface Filter- Specified by:
getId in interface DbEntity
- Returns:
- the id of the filer
setResourceType
public Filter setResourceType(String resourceType)
getResourceType
public String getResourceType()
- Specified by:
getResourceType in interface Filter
- Returns:
- the resource type fo the filter
getName
public String getName()
- Specified by:
getName in interface Filter
- Returns:
- the name of the filter
setName
public Filter setName(String name)
- Specified by:
setName in interface Filter
- Parameters:
name - the name of the filter
- Returns:
- this filter
getOwner
public String getOwner()
- Specified by:
getOwner in interface Filter
- Returns:
- the owner of the filter
setOwner
public Filter setOwner(String owner)
- Specified by:
setOwner in interface Filter
- Parameters:
owner - the owner of the filter
- Returns:
- this filter
getQuery
public <T extends Query<?,?>> T getQuery()
- Specified by:
getQuery in interface Filter
- Returns:
- the saved query as query object
getQueryInternal
public String getQueryInternal()
setQuery
public <T extends Query<?,?>> Filter setQuery(T query)
- Specified by:
setQuery in interface Filter
- Parameters:
query - the saved query as query object
- Returns:
- this filter
setQueryInternal
public void setQueryInternal(String query)
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties in interface Filter
- Returns:
- the properties as map
getPropertiesInternal
public String getPropertiesInternal()
setProperties
public Filter setProperties(Map<String,Object> properties)
- Specified by:
setProperties in interface Filter
- Parameters:
properties - the properties to set as map
- Returns:
- this filter
setPropertiesInternal
public void setPropertiesInternal(String properties)
getRevision
public int getRevision()
- Specified by:
getRevision in interface HasDbRevision
setRevision
public void setRevision(int revision)
- Specified by:
setRevision in interface HasDbRevision
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext in interface HasDbRevision
extend
public <T extends Query<?,?>> Filter extend(T extendingQuery)
- Description copied from interface:
Filter
- Extends the query with the additional query. The query of the filter is therefore modified
and if the filter is saved the query is updated.
- Specified by:
extend in interface Filter
- Parameters:
extendingQuery - the query to extend the filter with
- Returns:
- a copy of this filter with the extended query
getConverter
protected <T> JsonObjectConverter<T> getConverter()
getPersistentState
public Object getPersistentState()
- Description copied from interface:
DbEntity
- Returns a representation of the object,
as would be stored in the database.
Used when deciding if updates have
occurred to the object or not since
it was last loaded.
- Specified by:
getPersistentState in interface DbEntity
copyFilter
protected FilterEntity copyFilter()
postLoad
public void postLoad()
- Specified by:
postLoad in interface DbEntityLifecycleAware
Copyright © 2016 camunda services GmbH. All rights reserved.