-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISqlObjectVisitor.cs
More file actions
120 lines (105 loc) · 4.93 KB
/
ISqlObjectVisitor.cs
File metadata and controls
120 lines (105 loc) · 4.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
//-----------------------------------------------------------------------
// <copyright file="ISqlObjectVisitor.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace PosInformatique.Testing.Databases
{
/// <summary>
/// Used to visit all the <see cref="SqlObject"/>.
/// </summary>
/// <typeparam name="TResult">Type of the result returned by the visit.</typeparam>
public interface ISqlObjectVisitor<TResult>
{
/// <summary>
/// Visits the specified <paramref name="checkConstraint"/>.
/// </summary>
/// <param name="checkConstraint"><see cref="SqlCheckConstraint"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlCheckConstraint checkConstraint);
/// <summary>
/// Visits the specified <paramref name="column"/>.
/// </summary>
/// <param name="column"><see cref="SqlColumn"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlColumn column);
/// <summary>
/// Visits the specified <paramref name="defaultConstraint"/>.
/// </summary>
/// <param name="defaultConstraint"><see cref="SqlDefaultConstraint"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlDefaultConstraint defaultConstraint);
/// <summary>
/// Visits the specified <paramref name="foreignKey"/>.
/// </summary>
/// <param name="foreignKey"><see cref="SqlForeignKey"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlForeignKey foreignKey);
/// <summary>
/// Visits the specified <paramref name="column"/>.
/// </summary>
/// <param name="column"><see cref="SqlForeignKeyColumn"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlForeignKeyColumn column);
/// <summary>
/// Visits the specified <paramref name="index"/>.
/// </summary>
/// <param name="index"><see cref="SqlIndex"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlIndex index);
/// <summary>
/// Visits the specified <paramref name="column"/>.
/// </summary>
/// <param name="column"><see cref="SqlIndexColumn"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlIndexColumn column);
/// <summary>
/// Visits the specified <paramref name="primaryKey"/>.
/// </summary>
/// <param name="primaryKey"><see cref="SqlPrimaryKey"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlPrimaryKey primaryKey);
/// <summary>
/// Visits the specified primary key <paramref name="column"/>.
/// </summary>
/// <param name="column"><see cref="SqlPrimaryKeyColumn"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlPrimaryKeyColumn column);
/// <summary>
/// Visits the specified <paramref name="storedProcedure"/>.
/// </summary>
/// <param name="storedProcedure"><see cref="SqlStoredProcedure"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlStoredProcedure storedProcedure);
/// <summary>
/// Visits the specified <paramref name="table"/>.
/// </summary>
/// <param name="table"><see cref="SqlTable"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlTable table);
/// <summary>
/// Visits the specified <paramref name="trigger"/>.
/// </summary>
/// <param name="trigger"><see cref="SqlTrigger"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlTrigger trigger);
/// <summary>
/// Visits the specified <paramref name="uniqueConstraint"/>.
/// </summary>
/// <param name="uniqueConstraint"><see cref="SqlUniqueConstraint"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlUniqueConstraint uniqueConstraint);
/// <summary>
/// Visits the specified <paramref name="userType"/>.
/// </summary>
/// <param name="userType"><see cref="SqlUserType"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlUserType userType);
/// <summary>
/// Visits the specified <paramref name="view"/>.
/// </summary>
/// <param name="view"><see cref="SqlView"/> to visit.</param>
/// <returns>The result of the visit.</returns>
TResult Visit(SqlView view);
}
}