Class 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.
    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.
    • 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 - to be used by dependency.
      • 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 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()
        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.