Interface IDbAccessor
- Namespace
- Quartz.Impl.AdoJobStore
- Assembly
- Quartz.dll
Service interface or modifying IDbCommand parameters and resultset values.
public interface IDbAccessor
Methods
AddCommandParameter(DbCommand, string, object?, Enum?, int?)
Adds a parameter to IDbCommand.
void AddCommandParameter(DbCommand cmd, string paramName, object? paramValue, Enum? dataType = null, int? size = null)
Parameters
cmdDbCommandCommand to add parameter to
paramNamestringParameter's name
paramValueobjectParameter's value
dataTypeEnumParameter's data type
sizeint?Parameter's optional size
GetBooleanFromDbValue(object)
Gets the boolean value from db presentation. Subclasses can overwrite this behaviour.
bool GetBooleanFromDbValue(object columnValue)
Parameters
columnValueobjectValue to map from database.
Returns
GetDateTimeFromDbValue(object)
Gets the date/time value from db presentation. Subclasses can overwrite this behaviour.
DateTimeOffset? GetDateTimeFromDbValue(object columnValue)
Parameters
columnValueobjectValue to map from database.
Returns
GetDbBooleanValue(bool)
Gets the db presentation for boolean value. Subclasses can overwrite this behaviour.
object GetDbBooleanValue(bool booleanValue)
Parameters
booleanValueboolValue to map to database.
Returns
GetDbDateTimeValue(DateTimeOffset?)
Gets the db presentation for date/time value. Subclasses can overwrite this behaviour.
object? GetDbDateTimeValue(DateTimeOffset? dateTimeValue)
Parameters
dateTimeValueDateTimeOffset?Value to map to database.
Returns
GetDbTimeSpanValue(TimeSpan?)
Gets the db presentation for time span value. Subclasses can overwrite this behaviour.
object? GetDbTimeSpanValue(TimeSpan? timeSpanValue)
Parameters
timeSpanValueTimeSpan?Value to map to database.
Returns
GetTimeSpanFromDbValue(object)
Gets the time span value from db presentation. Subclasses can overwrite this behaviour.
TimeSpan? GetTimeSpanFromDbValue(object columnValue)
Parameters
columnValueobjectValue to map from database.
Returns
PrepareCommand(ConnectionAndTransactionHolder, string)
Prepares a IDbCommand to be used to access database.
DbCommand PrepareCommand(ConnectionAndTransactionHolder cth, string commandText)
Parameters
cthConnectionAndTransactionHolderConnection and transaction pair
commandTextstringSQL to run