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 an Oracle query. This class can not be inherited.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.Map<java.lang.String,OracleCmdParams> cmdParams)Initializes a new instance of the OracleCacheDependency class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,OracleCmdParams>getCommandParams()Gets the Oracle command parameters passed to the Oracle command.java.lang.StringgetCommandText()CommandText(Query string) to be used by dependency.CommandTypegetCommandType()Gets the type of the Oracle command passed to the OracleDependency.java.lang.StringgetConnectionString()Gets the connection string that is required by the cache in order to connect with database.-
Methods inherited from class com.alachisoft.ncache.runtime.dependencies.CacheDependency
dispose, getDependencies
-
-
-
-
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.- Parameters:
connectionString- Connection string to be used by dependency.cmdText- Oracle statement, table name or stored procedure to execute on the data source.
-
OracleCacheDependency
public OracleCacheDependency(java.lang.String connectionString, java.lang.String cmdText, OracleCommandType cmdType, java.util.Map<java.lang.String,OracleCmdParams> cmdParams)Initializes a new instance of the OracleCacheDependency class. It supports the use of stored procedures.- Parameters:
connectionString- Connection String that is required by the cache in order to connect with database.cmdText- CommandText(Query string) to be used by the dependency.cmdType- Describes the type of the Oracle command passed to the OracleDependency.cmdParams- Parameters to be passed to the command.
-
-
Method Detail
-
getConnectionString
public java.lang.String getConnectionString()
Gets the connection string that is required by the cache in order to connect with database.- Returns:
- The connection string of the dependency.
-
getCommandText
public java.lang.String getCommandText()
CommandText(Query string) to be used by dependency.- Returns:
- The commandText(Query string) of the dependency.
-
getCommandType
public CommandType getCommandType()
Gets the type of the Oracle command passed to the OracleDependency.- Returns:
- The type of Oracle command used for dependency.
-
getCommandParams
public java.util.Map<java.lang.String,OracleCmdParams> getCommandParams()
Gets the Oracle command parameters passed to the Oracle command.- Returns:
- The Oracle command parameters of the dependency.
-
-