Class FilterEntity

    • Field Detail

      • queryConverter

        public static final java.util.Map<java.lang.String,​JsonObjectConverter<?>> queryConverter
      • id

        protected java.lang.String id
      • resourceType

        protected java.lang.String resourceType
      • name

        protected java.lang.String name
      • owner

        protected java.lang.String owner
      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
      • revision

        protected int revision
    • Constructor Detail

      • FilterEntity

        protected FilterEntity()
      • FilterEntity

        public FilterEntity​(java.lang.String resourceType)
    • Method Detail

      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface DbEntity
        Specified by:
        getId in interface Filter
        Returns:
        the id of the filer
      • setResourceType

        public Filter setResourceType​(java.lang.String resourceType)
      • getResourceType

        public java.lang.String getResourceType()
        Specified by:
        getResourceType in interface Filter
        Returns:
        the resource type fo the filter
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Filter
        Returns:
        the name of the filter
      • setName

        public Filter setName​(java.lang.String name)
        Specified by:
        setName in interface Filter
        Parameters:
        name - the name of the filter
        Returns:
        this filter
      • getOwner

        public java.lang.String getOwner()
        Specified by:
        getOwner in interface Filter
        Returns:
        the owner of the filter
      • setOwner

        public Filter setOwner​(java.lang.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 java.lang.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​(java.lang.String query)
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Specified by:
        getProperties in interface Filter
        Returns:
        the properties as map
      • getPropertiesInternal

        public java.lang.String getPropertiesInternal()
      • setProperties

        public Filter setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Specified by:
        setProperties in interface Filter
        Parameters:
        properties - the properties to set as map
        Returns:
        this filter
      • setPropertiesInternal

        public void setPropertiesInternal​(java.lang.String properties)
      • 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
      • getPersistentState

        public java.lang.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
      • getReferencedEntityIds

        public java.util.Set<java.lang.String> getReferencedEntityIds()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntityIds in interface HasDbReferences
        Returns:
        the ids of the entities that this entity references. Should only return ids for entities of the same type
      • getReferencedEntitiesIdAndClass

        public java.util.Map<java.lang.String,​java.lang.Class> getReferencedEntitiesIdAndClass()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntitiesIdAndClass in interface HasDbReferences
        Returns:
        a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.