iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

SqlMapper Members

SqlMapper overview

Public Instance Constructors

SqlMapper Constructor Initializes a new instance of the SqlMapper class.

Public Instance Properties

AccessorFactory The factory which build IAccessor
DataExchangeFactory Factory for DataExchange objects
DataSource The DataSource
Id Name used to identify the the SqlMapper
IsCacheModelsEnabled A flag that determines whether cache models were enabled when this SqlMap was built.
IsSessionStarted Gets a value indicating whether this instance is session started.
LocalSession Returns the DalSession instance currently being used by the SqlMap.
MappedStatements The MappedStatements collection
ObjectFactory The meta factory for object factory
ParameterMaps The ParameterMap collection
ResultMaps The ResultMap collection
SessionStore Allow to set a custom session store like the HybridWebThreadSessionStore
TypeHandlerFactory The TypeHandlerFactory

Public Instance Methods

AddCache Adds a (named) cache.
AddMappedStatement Adds a (named) MappedStatement.
AddParameterMap Adds a (named) ParameterMap.
AddResultMap Adds a (named) ResultMap
BeginTransactionOverloaded. Begins a database transaction.
CloseConnection Open a connection
CommitTransactionOverloaded. Commits the database transaction.
CreateSqlMapSessionOverloaded. Creates a new SqlMapSession that will be used to query the data source.
Delete Executes a Sql DELETE statement. Delete returns the number of rows effected.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FlushCaches Flushes all cached objects that belong to this SqlMap
GetCache Gets a cache by name
GetDataCacheStats
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.
GetMappedStatement Gets a MappedStatement by name
GetParameterMap Get a ParameterMap by name
GetResultMap Gets a ResultMap by name
GetType (inherited from Object)Gets the Type of the current instance.
Insert Executes a Sql INSERT statement. Insert is a bit different from other update methods, as it provides facilities for returning the primary key of the newly inserted row (rather than the effected rows). This functionality is of course optional. The parameter object is generally used to supply the input data for the INSERT values.
OpenConnectionOverloaded. Open a connection
QueryForDictionaryOverloaded. Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the keyProperty parameter. The value at each key will be the value of the property specified in the valueProperty parameter. If valueProperty is null, the entire result object will be entered.
QueryForListOverloaded. Executes a Sql SELECT statement that returns data to populate a number of result objects. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
QueryForMapOverloaded. Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the keyProperty parameter. The value at each key will be the entire result object.
QueryForMapWithRowDelegate Runs a query with a custom object that gets a chance to deal with each row as it is processed. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
QueryForObjectOverloaded. Executes a Sql SELECT statement that returns that returns data to populate a single object instance. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
QueryForPaginatedListObsolete. Executes the SQL and retuns a subset of the results in a dynamic PaginatedList that can be used to automatically scroll through results from a database table.
QueryWithRowDelegateOverloaded. Runs a query for list with a custom object that gets a chance to deal with each row as it is processed. The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
RollBackTransactionOverloaded. Rolls back a transaction from a pending state.
ToString (inherited from Object)Returns a String that represents the current Object.
Update Executes a Sql UPDATE statement. Update can also be used for any other update statement type, such as inserts and deletes. Update returns the number of rows effected. The parameter object is generally used to supply the input data for the UPDATE values as well as the WHERE clause parameter(s).

Protected Instance Methods

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.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace