@Deprecated public class CachedContent<T> extends java.lang.Object implements java.lang.Comparable<CachedContent<? extends T>>
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_BYTE_ARRAY
Deprecated.
An empty byte array, used for default content
|
Constructor and Description |
---|
CachedContent(T mainPrimaryKey,
java.lang.String name,
java.lang.String hash,
CacheType type,
java.util.Date added,
CompressionType compressionType,
java.lang.String url,
java.lang.String cacheTableName,
DataManagerDataSource dataSource,
java.lang.String quoteString)
Deprecated.
Creates the cached page from the given data.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CachedContent<? extends T> other)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.util.Date |
getAdded()
Deprecated.
Returns the time this page was cached
|
java.lang.String |
getData()
Deprecated.
Returns the data for the cached page.
|
java.lang.String |
getHash()
Deprecated.
Returns the hash for this content
|
T |
getMainPrimaryKey()
Deprecated.
Returns the primary key for the record this links to
|
java.lang.String |
getName()
Deprecated.
Returns the name of the cached page
|
CacheType |
getType()
Deprecated.
Returns the type of this cached content
|
java.lang.String |
getUrl()
Deprecated.
Returns the URL of the content, if known.
|
int |
hashCode()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public static final byte[] EMPTY_BYTE_ARRAY
public CachedContent(@NotNull T mainPrimaryKey, @NotNull java.lang.String name, @NotNull java.lang.String hash, @NotNull CacheType type, @NotNull java.util.Date added, @NotNull CompressionType compressionType, @Nullable java.lang.String url, @NotNull java.lang.String cacheTableName, @NotNull DataManagerDataSource dataSource, @NotNull java.lang.String quoteString)
mainPrimaryKey
- The primary key of the main tablename
- The name of the cached pagehash
- The hash valuetype
- The type of the value in the databaseadded
- The time this cached data was addedcompressionType
- The type of compression to use when reading the dataurl
- The url where the content came from, or null if unknowncacheTableName
- The name of the cache tabledataSource
- The data source which can be used to load the dataquoteString
- The quote string used by the specific database vendor@NotNull public java.lang.String getHash()
@Nullable public java.lang.String getUrl()
@NotNull public CacheType getType()
@NotNull public T getMainPrimaryKey()
@NotNull public java.lang.String getName()
@NotNull public java.util.Date getAdded()
@Nullable public java.lang.String getData()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(CachedContent<? extends T> other)
compareTo
in interface java.lang.Comparable<CachedContent<? extends T>>
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object