Class QueryDescription

  • All Implemented Interfaces:
    ICacheDescription

    public class QueryDescription
    extends BaseDescription
    This object is immutable, and is used as a description for a cached query.
    • Field Detail

      • databaseName

        protected java.lang.String databaseName
      • query

        protected java.lang.String query
      • parameters

        protected java.util.List parameters
      • criticalSectionName

        protected java.lang.String criticalSectionName
      • cacheClassName

        protected java.lang.String cacheClassName
      • maxReturn

        protected int maxReturn
    • Constructor Detail

      • QueryDescription

        public QueryDescription​(java.lang.String databaseName,
                                java.lang.String query,
                                java.util.List parameters,
                                java.lang.String cacheClassName,
                                StringSet cacheKeys,
                                int maxReturn,
                                ResultSpecification spec,
                                ILimitChecker returnLimit)
    • Method Detail

      • getQuery

        public java.lang.String getQuery()
      • getParameters

        public java.util.List getParameters()
      • getMaxReturn

        public int getMaxReturn()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getObjectKeys

        public StringSet getObjectKeys()
        Get the cache keys for an object (which may or may not exist yet in the cache). This method is called in order for cache manager to throw the correct locks.
        Returns:
        the object's cache keys, or null if the object should not be cached.
      • getCriticalSectionName

        public java.lang.String getCriticalSectionName()
        Description copied from interface: ICacheDescription
        Get the critical section name for this description object. This is used to synchronize creation of the described object, and thus is used only for objects that will be cached. This method does not need to return decent results for objects that are never cached.
        Returns:
        the critical section name.
      • listClone

        protected static java.util.List listClone​(java.util.List list)