com.alachisoft.jvcache.runtime.dependencies
Class DBCacheDependency

java.lang.Object
  extended by com.alachisoft.jvcache.runtime.dependencies.CacheDependency
      extended by com.alachisoft.jvcache.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. You can add items with dependencies to your application's cache with the "Cache.Add" and Insert methods. When you add an item to an application's "Cache" object with "DBCacheDependency", it monitors a specific database table so that when the table changes, items associated with the table will be automatically removed from the Cache. This helps you avoid losing changes made to the object between the time it is created and the time it is inserted into the "Cache".

See Also:
Cache#add(java.lang.String, com.alachisoft.ncache.web.caching.CacheItem), DBCacheDependency, Serialized Form

Constructor Summary
DBCacheDependency()
           
 
Method Summary
 java.lang.String getConnectionString()
           
 DBDependencyType getDBDependencyType()
           
 java.lang.String getPrimaryKey()
           
 
Methods inherited from class com.alachisoft.jvcache.runtime.dependencies.CacheDependency
dispose, getDependencies
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCacheDependency

public DBCacheDependency()
Method Detail

getConnectionString

public java.lang.String getConnectionString()
Returns:

getPrimaryKey

public java.lang.String getPrimaryKey()
Returns:

getDBDependencyType

public DBDependencyType getDBDependencyType()
Returns: