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
|
|
|
21
|
|
namespace Seasar.Dao
|
22
|
|
{
|
23
|
|
public interface ICommandContext
|
24
|
|
{
|
25
|
|
object GetArg(string name);
|
26
|
|
Type GetArgType(string name);
|
27
|
|
void AddArg(string name, object arg, Type argType);
|
28
|
|
string Sql { get; }
|
29
|
|
object[] BindVariables { get; }
|
30
|
|
Type[] BindVariableTypes { get; }
|
31
|
|
string[] BindVariableNames { get; }
|
32
|
|
ICommandContext AddSql(string sql);
|
33
|
|
ICommandContext AddSql(string sql, object bindVariable, Type bindVariableType, string bindVariableName);
|
34
|
|
ICommandContext AddSql(object bindVariable, Type bindVariableType, string bindVariableName);
|
35
|
|
ICommandContext AddSql(string sql, object[] bindVariables, Type[] bindVariableTypes, string[] bindVariableNames);
|
36
|
|
ICommandContext AppendSql(object bindVariable, Type bindVariableType, string bindVariableName);
|
37
|
|
bool IsEnabled { get; set; }
|
38
|
|
}
|
39
|
|
}
|
40
|
|
|