Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate Members

AdoTemplate overview

Public Instance Constructors

AdoTemplate Overloaded. Initializes a new instance of the AdoTemplate class.

Public Instance Properties

ClassicAdoTemplate Gets the 'Classic' AdoTemplate in Spring.Data
CommandTimeout Gets or sets the command timeout for IDbCommands that this AdoTemplate executes. It also sets the value of the contained 'ClassicAdoTemplate'.
DataReaderWrapperType Gets or set the System.Type to use to create an instance of IDataReaderWrapper for the purpose of having defaults values to use in case of DBNull values read from IDataReader.
DbProvider An instance of a DbProvider implementation.
ExceptionTranslator Gets or sets the exception translator. If no custom translator is provided, a default ErrorCodeExceptionTranslator is used.
LazyInit Gets or sets a value indicating whether to lazily initialize the IAdoExceptionTranslator for this accessor, on first encounter of a exception from the data provider. Default is "true"; can be switched to "false" for initialization on startup.

Public Instance Methods

AfterPropertiesSet Checks if DbProvider is not null and creates ExceptionTranslator if not LazyInit.
CreateDataReaderWrapper Creates the data reader wrapper for use in AdoTemplate callback methods.
CreateDbParameters (inherited from AdoAccessor)Overloaded. Creates a new instance of DbParameters
DeriveParametersOverloaded. Derives the parameters of a stored procedure including the return parameter
DeriveParameters (inherited from AdoAccessor)Overloaded. Derives the parameters of a stored procedure, not including the return parameter.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Execute(T)Overloaded. Execute a ADO.NET operation on a command object using a interface based callback.
ExecuteNonQueryOverloaded. Executes a non query returning the number of rows affected.
ExecuteScalarOverloaded. Execute the query with the specified command text.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
QueryForObject(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryForObject``1(System.Data.CommandType,System.String,Spring.Data.Generic.IRowMapper{``0})
QueryForObjectDelegate(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryForObjectDelegate``1(System.Data.CommandType,System.String,Spring.Data.Generic.RowMapperDelegate{``0})
QueryWithCommandCreatorOverloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithCommandCreator(Spring.Data.IDbCommandCreator,Spring.Data.IRowCallback)
QueryWithCommandCreator(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithCommandCreator``1(Spring.Data.IDbCommandCreator,Spring.Data.Generic.IRowMapper{``0},System.Collections.IDictionary)
QueryWithResultSetExtractor(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithResultSetExtractor``1(System.Data.CommandType,System.String,Spring.Data.Generic.IResultSetExtractor{``0})
QueryWithResultSetExtractorDelegate(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithResultSetExtractorDelegate``1(System.Data.CommandType,System.String,Spring.Data.Generic.ResultSetExtractorDelegate{``0})
QueryWithRowCallbackOverloaded. Execute a query given IDbCommand's type and text by passing the created IDbCommand to a ICommandSetter implementation that knows how to bind values to the IDbCommand, reading a single result set on a per-row basis with a IRowCallback.
QueryWithRowCallbackDelegateOverloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithRowCallbackDelegate(System.Data.CommandType,System.String,Spring.Data.RowCallbackDelegate)
QueryWithRowMapper(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithRowMapper``1(System.Data.CommandType,System.String,Spring.Data.Generic.IRowMapper{``0})
QueryWithRowMapperDelegate(T)Overloaded. Missing <summary> documentation for M:Spring.Data.Generic.AdoTemplate.QueryWithRowMapperDelegate``1(System.Data.CommandType,System.String,Spring.Data.Generic.RowMapperDelegate{``0})
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

commandTimeout (inherited from AdoAccessor)Missing <summary> documentation for F:Spring.Data.Core.AdoAccessor.commandTimeout
dataReaderWrapperTypeMissing <summary> documentation for F:Spring.Data.Generic.AdoTemplate.dataReaderWrapperType

Protected Instance Methods

ApplyCommandSettings (inherited from AdoAccessor) Prepare the command setting the transaction timeout.
CreateDbParameters (inherited from AdoAccessor)Overloaded. Creates the a db parameters collection, adding to the collection a parameter created from the method parameters.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetCommandText (inherited from AdoAccessor)Missing <summary> documentation for M:Spring.Data.Core.AdoAccessor.GetCommandText(System.Object)
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

AdoTemplate Class | Spring.Data.Generic Namespace