-
Notifications
You must be signed in to change notification settings - Fork 935
/
Copy pathCollectionStatistics.cs
55 lines (47 loc) · 1.11 KB
/
CollectionStatistics.cs
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
using System;
using System.Text;
namespace NHibernate.Stat
{
/// <summary> Collection related statistics </summary>
[Serializable]
public class CollectionStatistics : CategorizedStatistics
{
internal long loadCount;
internal long fetchCount;
internal long updateCount;
internal long removeCount;
internal long recreateCount;
internal CollectionStatistics(string categoryName) : base(categoryName) { }
public long LoadCount
{
get { return loadCount; }
}
public long FetchCount
{
get { return fetchCount; }
}
public long UpdateCount
{
get { return updateCount; }
}
public long RemoveCount
{
get { return removeCount; }
}
public long RecreateCount
{
get { return recreateCount; }
}
public override string ToString()
{
return new StringBuilder()
.Append("CollectionStatistics[")
.Append("loadCount=").Append(loadCount)
.Append(",fetchCount=").Append(fetchCount)
.Append(",recreateCount=").Append(recreateCount)
.Append(",removeCount=").Append(removeCount)
.Append(",updateCount=").Append(updateCount)
.Append(']').ToString();
}
}
}