-
Notifications
You must be signed in to change notification settings - Fork 934
/
Copy pathSettings.cs
132 lines (80 loc) · 3.8 KB
/
Settings.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
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
121
122
123
124
125
126
127
128
129
130
131
132
using System.Collections.Generic;
using System.Data;
using NHibernate.AdoNet;
using NHibernate.AdoNet.Util;
using NHibernate.Cache;
using NHibernate.Connection;
using NHibernate.Exceptions;
using NHibernate.Hql;
using NHibernate.Linq.Functions;
using NHibernate.Transaction;
namespace NHibernate.Cfg
{
/// <summary>
/// Settings that affect the behavior of NHibernate at runtime.
/// </summary>
public sealed class Settings
{
public Settings()
{
MaximumFetchDepth = -1;
}
// not ported - private TransactionManagerLookup transactionManagerLookup;
// not ported - private bool strictJPAQLCompliance;
#region JDBC Specific (Not Ported)
//private int jdbcFetchSize;
//private bool isJdbcBatchVersionedData;
#endregion
public SqlStatementLogger SqlStatementLogger { get; internal set; }
public int MaximumFetchDepth { get; internal set; }
public IDictionary<string, string> QuerySubstitutions { get; internal set; }
public Dialect.Dialect Dialect { get; internal set; }
public int AdoBatchSize { get; internal set; }
public int DefaultBatchFetchSize { get; internal set; }
public bool IsScrollableResultSetsEnabled { get; internal set; }
public bool IsGetGeneratedKeysEnabled { get; internal set; }
public string DefaultSchemaName { get; set; }
public string DefaultCatalogName { get; internal set; }
public string SessionFactoryName { get; internal set; }
public bool IsAutoCreateSchema { get; internal set; }
public bool IsAutoDropSchema { get; internal set; }
public bool IsAutoUpdateSchema { get; internal set; }
public bool IsAutoValidateSchema { get; internal set; }
public bool IsAutoQuoteEnabled { get; internal set; }
public bool IsKeywordsImportEnabled { get; internal set; }
public bool IsQueryCacheEnabled { get; internal set; }
public bool IsStructuredCacheEntriesEnabled { get; internal set; }
public bool IsSecondLevelCacheEnabled { get; internal set; }
public string CacheRegionPrefix { get; internal set; }
public bool IsMinimalPutsEnabled { get; internal set; }
public bool IsCommentsEnabled { get; internal set; }
public bool IsStatisticsEnabled { get; internal set; }
public bool IsIdentifierRollbackEnabled { get; internal set; }
public bool IsFlushBeforeCompletionEnabled { get; internal set; }
public bool IsAutoCloseSessionEnabled { get; internal set; }
public ConnectionReleaseMode ConnectionReleaseMode { get; internal set; }
public ICacheProvider CacheProvider { get; internal set; }
public IQueryCacheFactory QueryCacheFactory { get; internal set; }
public IConnectionProvider ConnectionProvider { get; internal set; }
public ITransactionFactory TransactionFactory { get; internal set; }
public IBatcherFactory BatcherFactory { get; internal set; }
public IQueryTranslatorFactory QueryTranslatorFactory { get; internal set; }
public ISQLExceptionConverter SqlExceptionConverter { get; internal set; }
public bool IsWrapResultSetsEnabled { get; internal set; }
public bool IsOrderUpdatesEnabled { get; internal set; }
public bool IsOrderInsertsEnabled { get; internal set; }
public EntityMode DefaultEntityMode { get; internal set; }
public bool IsDataDefinitionImplicitCommit { get; internal set; }
public bool IsDataDefinitionInTransactionSupported { get; internal set; }
public bool IsNamedQueryStartupCheckingEnabled { get; internal set; }
#region NH specific
public IsolationLevel IsolationLevel { get; internal set; }
public bool IsOuterJoinFetchEnabled { get; internal set; }
/// <summary>
/// Get the registry to provide Hql-Generators for known properties/methods.
/// </summary>
public ILinqToHqlGeneratorsRegistry LinqToHqlGeneratorsRegistry { get; internal set; }
public bool IsInterceptorsBeforeTransactionCompletionIgnoreExceptionsEnabled { get; internal set; }
#endregion
}
}