com.gentics.api.lib.datasource
Class AbstractCacheableDatasource.DatasourceResultCacheKey
java.lang.Object
com.gentics.api.lib.datasource.AbstractCacheableDatasource.DatasourceResultCacheKey
- All Implemented Interfaces:
- AbstractCacheableDatasource.DatasourceResultCacheKeyBase, Serializable
- Enclosing class:
- AbstractCacheableDatasource
public static class AbstractCacheableDatasource.DatasourceResultCacheKey
- extends Object
- implements AbstractCacheableDatasource.DatasourceResultCacheKeyBase, Serializable
A simple cache key used for caching datasource results. implementations
of Datasource can either directly use this implementation, or if it
is not sufficient can subclass this implementation.
- Author:
- herbert
- See Also:
- Serialized Form
AbstractCacheableDatasource.DatasourceResultCacheKey
public AbstractCacheableDatasource.DatasourceResultCacheKey(String query,
Object[] params,
int start,
int count,
Datasource.Sorting[] sortedColumns,
Object[] additionalParameters)
- Creates a new ResultCacheKey. it's arguments need to uniquely identify the result.
The arguments are roughly equal to the getResult methods of the Datasource interface.
- Parameters:
query
- the query in the native language of the datasource - must not be null.params
- parameters used to bind variables in the query string - may be null.start
- start index (when using paging)count
- count (when using paging)sortColumns
- sorted columns when result is sorted - may be null.additionalParameters
- can be used for additional parameters which determine the result of this query (e.g. basedn for LDAP)
- Throws:
NullPointerException
- if query is null.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Gentics Software GmbH. All Rights Reserved.