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

ISqlMapper Members

ISqlMapper overview

Public Instance Properties

AccessorFactory The factory which build IAccessor
DataExchangeFactory Factory for DataExchange objects
DataSource Gets or sets the data source.
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 the transaction.
CloseConnection Closes the connection.
CommitTransactionOverloaded. Commits the transaction.
CreateSqlMapSession 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.
FlushCaches Flushes all cached objects that belong to this SqlMap
GetCache Gets a cache by name
GetDataCacheStats Gets the data cache stats.
GetMappedStatement Gets a MappedStatement by name
GetParameterMap Get a ParameterMap by name
GetResultMap Gets a ResultMap by name
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. Opens the 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 a single object of the type of the resultObject parameter.
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 the back transaction.
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).

See Also

ISqlMapper Interface | IBatisNet.DataMapper Namespace