C# 클래스 Azavea.Open.DAO.SQL.DbCommandCache

Holds DbCommands, we save them to allow us to reuse them (saves time).
파일 보기 프로젝트 열기: azavea/net-dao

공개 메소드들

메소드 설명
Get ( string sql, IDbConnection conn ) : IDbCommand

This returns a command from the cache, or creates a new one if necessary. This method is thread-safe.

Return ( string sql, IDbConnection conn, IDbCommand cmd ) : void

Returns a command to the cache when it is no longer used, allowing another call to reuse it. This method is thread-safe.

메소드 상세

Get() 공개 메소드

This returns a command from the cache, or creates a new one if necessary. This method is thread-safe.
public Get ( string sql, IDbConnection conn ) : IDbCommand
sql string
conn IDbConnection
리턴 IDbCommand

Return() 공개 메소드

Returns a command to the cache when it is no longer used, allowing another call to reuse it. This method is thread-safe.
public Return ( string sql, IDbConnection conn, IDbCommand cmd ) : void
sql string
conn IDbConnection
cmd IDbCommand
리턴 void