public class FilterEntity extends Object implements Filter, Serializable, DbEntity, HasDbRevision, DbEntityLifecycleAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
name |
protected String |
owner |
protected Map<String,Object> |
properties |
protected AbstractQuery |
query |
static Map<String,JsonObjectConverter<?>> |
queryConverter |
protected String |
resourceType |
protected int |
revision |
| Modifier | Constructor and Description |
|---|---|
protected |
FilterEntity() |
|
FilterEntity(String resourceType) |
| Modifier and Type | Method and Description |
|---|---|
protected FilterEntity |
copyFilter() |
<T extends Query<?,?>> |
extend(T extendingQuery)
Extends the query with the additional query.
|
protected <T> JsonObjectConverter<T> |
getConverter() |
String |
getId() |
String |
getName() |
String |
getOwner() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
Map<String,Object> |
getProperties() |
String |
getPropertiesInternal() |
<T extends Query<?,?>> |
getQuery() |
String |
getQueryInternal() |
String |
getResourceType() |
int |
getRevision() |
int |
getRevisionNext() |
void |
postLoad() |
void |
setId(String id) |
Filter |
setName(String name) |
Filter |
setOwner(String owner) |
Filter |
setProperties(Map<String,Object> properties) |
void |
setPropertiesInternal(String properties) |
<T extends Query<?,?>> |
setQuery(T query) |
void |
setQueryInternal(String query) |
Filter |
setResourceType(String resourceType) |
void |
setRevision(int revision) |
public static final Map<String,JsonObjectConverter<?>> queryConverter
protected String id
protected String resourceType
protected String name
protected String owner
protected AbstractQuery query
protected int revision
protected FilterEntity()
public FilterEntity(String resourceType)
public String getId()
public String getResourceType()
getResourceType in interface Filterpublic String getName()
public String getOwner()
public <T extends Query<?,?>> T getQuery()
public String getQueryInternal()
public void setQueryInternal(String query)
public Map<String,Object> getProperties()
getProperties in interface Filterpublic String getPropertiesInternal()
public Filter setProperties(Map<String,Object> properties)
setProperties in interface Filterproperties - the properties to set as mappublic void setPropertiesInternal(String properties)
public int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic <T extends Query<?,?>> Filter extend(T extendingQuery)
Filterprotected <T> JsonObjectConverter<T> getConverter()
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntityprotected FilterEntity copyFilter()
public void postLoad()
postLoad in interface DbEntityLifecycleAwareCopyright © 2018. All rights reserved.