Class DBCacheDependency
- java.lang.Object
-
- com.alachisoft.ncache.runtime.dependencies.CacheDependency
-
- com.alachisoft.ncache.runtime.dependencies.DBCacheDependency
-
- All Implemented Interfaces:
java.io.Serializable
public class DBCacheDependency extends CacheDependency
Establishes a relationship between an item stored in an application's cache object and either a specific database table. This class cannot be inherited.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBCacheDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConnectionString()
A connection string that is required by the cache in order to connect with database.DBDependencyType
getDBDependencyType()
The type of DBDependency.java.lang.String
getPrimaryKey()
Primary key of the item in database.-
Methods inherited from class com.alachisoft.ncache.runtime.dependencies.CacheDependency
dispose, getDependencies
-
-
-
-
Method Detail
-
getConnectionString
public java.lang.String getConnectionString()
A connection string that is required by the cache in order to connect with database.- Returns:
- The connection string associated with dependency.
-
getPrimaryKey
public java.lang.String getPrimaryKey()
Primary key of the item in database.- Returns:
- Primary key of the item in database.
-
getDBDependencyType
public DBDependencyType getDBDependencyType()
The type of DBDependency.- Returns:
- The type of DBDependency.
-
-