Class CacheKeyFactory
- java.lang.Object
-
- org.apache.manifoldcf.core.interfaces.CacheKeyFactory
-
- Direct Known Subclasses:
CacheKeyFactory,CacheKeyFactory
public class CacheKeyFactory extends java.lang.ObjectThis class just represents a central place where cache keys are assembled. All methods are static.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsid
-
Constructor Summary
Constructors Modifier Constructor Description protectedCacheKeyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringmakeDatabaseKey(java.lang.String databaseName)Construct a general database cache key.static java.lang.StringmakeDatabaseKey(java.lang.String keyName, java.lang.String databaseName)Construct a key that is database specific.static java.lang.StringmakeTableKey(java.lang.String keyName, java.lang.String tableName, java.lang.String databaseName)Construct a key that is database specific, and applies to queries made against a specific table name.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
makeDatabaseKey
public static java.lang.String makeDatabaseKey(java.lang.String keyName, java.lang.String databaseName)Construct a key that is database specific. Typically, this method is not called directly; it gets invoked by other key construction methods. Overall, it will be called last in a compositional sequence that looks conceptually like this: makeDatabaseKey(makeTableKey(makeThingsTableTypeKey(typeX),"Things"),databaseName);- Parameters:
keyName- is the input keynamedatabaseName- is the database name- Returns:
- the qualified key name
-
makeTableKey
public static java.lang.String makeTableKey(java.lang.String keyName, java.lang.String tableName, java.lang.String databaseName)Construct a key that is database specific, and applies to queries made against a specific table name.
-
makeDatabaseKey
public static java.lang.String makeDatabaseKey(java.lang.String databaseName)
Construct a general database cache key.- Parameters:
databaseName- is the database name.- Returns:
- the cache key.
-
-