com.alachisoft.jvcache.runtime.dependencies
Class OracleCacheDependency

java.lang.Object
  extended by com.alachisoft.jvcache.runtime.dependencies.CacheDependency
      extended by com.alachisoft.jvcache.runtime.dependencies.OracleCacheDependency
All Implemented Interfaces:
java.io.Serializable

public final class OracleCacheDependency
extends CacheDependency

Establishes a relationship between an item stored in an application's Cache object and either a row in a specific Oracle database table or the results of a Oracle query. This class can not be inherited. You can add items with dependencies to your application's cache with the "Cache.Add" and Add,Insert, AddDependency methods. When you add an item to an application's "Cache" object with "OracleCacheDependency", on all ODP.NET supported versions of Oracle database, it monitors a row in a specific Oracle database table so that when that row changes, items associated with the row 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". "OracleCacheDependency" class supports the association of cached items with a Oracle query.

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

Constructor Summary
OracleCacheDependency(java.lang.String connectionString, java.lang.String cmdText)
          Initializes a new instance of the OracleCacheDependency class, using the supplied connection string and query string.
OracleCacheDependency(java.lang.String connectionString, java.lang.String cmdText, OracleCommandType cmdType, java.util.LinkedHashMap<java.lang.String,OracleCmdParams> cmdParams)
          Initializes a new instance of the OracleCacheDependency class, using the supplied connection string and query string.
 
Method Summary
 java.util.HashMap<java.lang.String,OracleCmdParams> getCommandParams()
           
 java.lang.String getCommandText()
           
 CommandType getCommandType()
           
 java.lang.String getConnectionString()
           
 
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

OracleCacheDependency

public OracleCacheDependency(java.lang.String connectionString,
                             java.lang.String cmdText)
Initializes a new instance of the OracleCacheDependency class, using the supplied connection string and query string. This constructor is used to create OracleCacheDependency objects that use the query-notification feature of Oracle products. Query must include the following: Fully qualified table names, including the name of the table owner. For example, to refer to a table called "customers" that is owned by the database owner, the statement must refer to "dbo.customers".

Parameters:
connectionString - connection string to be used by dependency.
cmdText -

OracleCacheDependency

public OracleCacheDependency(java.lang.String connectionString,
                             java.lang.String cmdText,
                             OracleCommandType cmdType,
                             java.util.LinkedHashMap<java.lang.String,OracleCmdParams> cmdParams)
Initializes a new instance of the OracleCacheDependency class, using the supplied connection string and query string. This constructor is used to create OracleCacheDependency objects that use the query-notification feature of Oracle products. Query must include the following: Fully qualified table names, including the name of the table owner. For example, to refer to a table called "customers" that is owned by the database owner, the statement must refer to "dbo.customers".

Parameters:
connectionString - connection string to be used by dependency.
cmdText - cmdText to be used by dependency
cmdType - The type of the command.
cmdParams - Parameters to be passed to the command.
Method Detail

getConnectionString

public java.lang.String getConnectionString()
Returns:

getCommandText

public java.lang.String getCommandText()
Returns:

getCommandType

public CommandType getCommandType()
Returns:

getCommandParams

public java.util.HashMap<java.lang.String,OracleCmdParams> getCommandParams()
Returns: