|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.database.querycache.QueryCacheKey
public class QueryCacheKey
Represents a key in the QueryCache. All information needed to reload a cache entry is included in the key.
| Constructor Summary | |
|---|---|
QueryCacheKey()
Constructor for internal use only. |
|
QueryCacheKey(int objectType,
long objectID,
CachedPreparedStatement sql,
int blockID)
Creates a new QueryCacheKey. |
|
QueryCacheKey(int objectType,
long objectID,
CachedPreparedStatement sql,
int blockID,
int queryCacheStrategyType)
Creates a new QueryCacheKey. |
|
| Method Summary | |
|---|---|
static java.lang.String |
createIDKey(int objectType,
long objectID)
Creates a new id key representing the supplied object type and id. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getAssociatedKey()
Returns the idKey, which is used by coherence to associate entries. |
int |
getBlockID()
Returns the blockID of the key, or -1 if there is not a blockID. |
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
java.lang.String |
getIDKey()
Returns the id key which associates this instance with a specific object in the system. |
long |
getObjectID()
Returns the objectID of the key. |
int |
getObjectType()
Returns the object type associated with the objectID. |
int |
getQueryCacheStrategyType()
Returns one of the constants in QueryCacheStrategyFactory defining a type of
QueryCacheStrategy to use, or -1 if no strategy is needed. |
CachedPreparedStatement |
getSQL()
Returns the sql query of the key. |
int |
hashCode()
|
void |
readExternal(java.io.DataInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryCacheKey(int objectType,
long objectID,
CachedPreparedStatement sql,
int blockID)
objectType - the type of the object: JiveGlobals.COMMUNITY or JiveGlobals.THREAD.objectID - the id of the parent object to which the query cache entry corresponds.sql - the sql query for the cache entry data.blockID - the block ID of the entry, or -1 if there is not block ID.
public QueryCacheKey(int objectType,
long objectID,
CachedPreparedStatement sql,
int blockID,
int queryCacheStrategyType)
objectType - the type of the object: JiveGlobals.COMMUNITY or JiveGlobals.THREAD.objectID - the id of the parent object to which the query cache entry corresponds.sql - the sql query for the cache entry data.blockID - the block ID of the entry, or -1 if there is not block ID.queryCacheStrategyType - one of the constants in QueryCacheStrategyFactory defining a type of
QueryCacheStrategy to use. Set to
QueryCacheStrategyFactory.NO_STRATEGY to use no strategy at all.public QueryCacheKey()
| Method Detail |
|---|
public int getObjectType()
public long getObjectID()
public CachedPreparedStatement getSQL()
public int getBlockID()
public java.lang.String getIDKey()
public java.lang.Object getAssociatedKey()
getAssociatedKey in interface com.tangosol.net.cache.KeyAssociationpublic int getQueryCacheStrategyType()
QueryCacheStrategyFactory defining a type of
QueryCacheStrategy to use, or -1 if no strategy is needed.
QueryCacheStrategyFactory defining a type of
QueryCacheStrategy to use, or -1 if no strategy is needed.
public static java.lang.String createIDKey(int objectType,
long objectID)
objectType - the type code of the object. One of the fields in JiveConstants.objectID - the id of the object
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface com.tangosol.io.ExternalizableLitejava.io.IOException
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface com.tangosol.io.ExternalizableLitejava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getCachedSize()
Cacheable
getCachedSize in interface Cacheable
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||