com.alachisoft.ncache.runtime.dependencies
Class OracleCacheDependency
java.lang.Object
com.alachisoft.ncache.runtime.dependencies.CacheDependency
com.alachisoft.ncache.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.HashMap<java.lang.String,OracleCmdParams> cmdParams)
Initializes a new instance of the OracleCacheDependency class,
using the supplied connection string and query string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.cmdTextcmdText
- to be used by dependency
OracleCacheDependency
public OracleCacheDependency(java.lang.String connectionString,
java.lang.String cmdText,
OracleCommandType cmdType,
java.util.HashMap<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 dependencycmdType
- The type of the command.cmdParams
- Parameters to be passed to the command.
getCommandParams
public java.util.HashMap<java.lang.String,OracleCmdParams> getCommandParams()
getCommandText
public java.lang.String getCommandText()
getCommandType
public CommandType getCommandType()
getConnectionString
public java.lang.String getConnectionString()