public final class SqlCacheDependency extends CacheDependency
Constructor | Description |
---|---|
SqlCacheDependency(java.lang.String connectionString,
java.lang.String cmdText) |
Initializes a new instance of the SqlCacheDependency class,
using the supplied connection string and query string.
|
SqlCacheDependency(java.lang.String connectionString,
java.lang.String cmdText,
SqlCommandType cmdType,
java.util.Map<java.lang.String,SqlCmdParams> cmdParams) |
Initializes a new instance of the SqlCacheDependency class.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,SqlCmdParams> |
getCommandParams() |
Gets the sql command parameters passed to SqlCacheDependency.
|
java.lang.String |
getCommandText() |
CommandText(Query string) to be used by dependency.
|
CommandType |
getCommandType() |
Gets the type of the Sql command passed to the SqlDependency.
|
java.lang.String |
getConnectionString() |
The connection string that is required to the cache in order to connect with database.
|
dispose, getDependencies
public SqlCacheDependency(java.lang.String connectionString, java.lang.String cmdText)
connectionString
- connection string to be used by dependency.cmdText
- cmdText to be used by dependency.public SqlCacheDependency(java.lang.String connectionString, java.lang.String cmdText, SqlCommandType cmdType, java.util.Map<java.lang.String,SqlCmdParams> cmdParams)
connectionString
- connection string to be used by dependency.cmdText
- cmdText to be used by dependency.cmdType
- The type of the command. (text/stored procedure)cmdParams
- Parameters to be passed to the command.public java.lang.String getConnectionString()
public java.lang.String getCommandText()
public CommandType getCommandType()
public java.util.Map<java.lang.String,SqlCmdParams> getCommandParams()