1
|
|
#region Copyright
|
2
|
|
|
3
|
|
|
4
|
|
|
5
|
|
|
6
|
|
|
7
|
|
|
8
|
|
|
9
|
|
|
10
|
|
|
11
|
|
|
12
|
|
|
13
|
|
|
14
|
|
|
15
|
|
|
16
|
|
|
17
|
|
#endregion
|
18
|
|
|
19
|
|
using System;
|
20
|
|
using System.Data;
|
21
|
|
|
22
|
|
namespace Seasar.Extension.ADO
|
23
|
|
{
|
24
|
|
|
25
|
|
|
26
|
|
|
27
|
|
public interface IDataSource
|
28
|
|
{
|
29
|
|
IDbConnection GetConnection();
|
30
|
|
|
31
|
|
IDbCommand GetCommand();
|
32
|
|
IDbCommand GetCommand(string cmdText);
|
33
|
|
IDbCommand GetCommand(string cmdText, IDbConnection connection);
|
34
|
|
IDbCommand GetCommand(string cmdText, IDbConnection connection, IDbTransaction transaction);
|
35
|
|
|
36
|
|
IDataParameter GetParameter();
|
37
|
|
IDataParameter GetParameter(string name, DbType dataType);
|
38
|
|
IDataParameter GetParameter(string name, object value);
|
39
|
|
IDataParameter GetParameter(string name, DbType dataType, int size);
|
40
|
|
IDataParameter GetParameter(string name, DbType dataType, int size, string srcColumn);
|
41
|
|
|
42
|
|
IDataAdapter GetDataAdapter();
|
43
|
|
IDataAdapter GetDataAdapter(IDbCommand selectCommand);
|
44
|
|
IDataAdapter GetDataAdapter(string selectCommandText, string selectConnectionString);
|
45
|
|
IDataAdapter GetDataAdapter(string selectCommandText, IDbConnection selectConnection);
|
46
|
|
|
47
|
|
IDbTransaction GetTransaction();
|
48
|
|
}
|
49
|
|
}
|
50
|
|
|