1
- using System . Collections . Generic ;
2
- using System . Data ;
3
- using NHibernate . AdoNet ;
4
- using NHibernate . AdoNet . Util ;
5
- using NHibernate . Cache ;
6
- using NHibernate . Connection ;
7
- using NHibernate . Exceptions ;
8
- using NHibernate . Hql ;
9
- using NHibernate . Linq . Functions ;
10
- using NHibernate . Transaction ;
11
-
12
- namespace NHibernate . Cfg
13
- {
14
- /// <summary>
15
- /// Settings that affect the behavior of NHibernate at runtime.
16
- /// </summary>
17
- public sealed class Settings
18
- {
19
- public Settings ( )
20
- {
21
- MaximumFetchDepth = - 1 ;
22
- }
23
-
24
- // not ported - private TransactionManagerLookup transactionManagerLookup;
25
- // not ported - private bool strictJPAQLCompliance;
26
-
27
- #region JDBC Specific (Not Ported)
28
-
29
- //private int jdbcFetchSize;
30
- //private bool isJdbcBatchVersionedData;
31
-
32
- #endregion
33
- public SqlStatementLogger SqlStatementLogger { get ; internal set ; }
34
-
35
- public int MaximumFetchDepth { get ; internal set ; }
36
-
37
- public IDictionary < string , string > QuerySubstitutions { get ; internal set ; }
38
-
39
- public Dialect . Dialect Dialect { get ; internal set ; }
40
-
41
- public int AdoBatchSize { get ; internal set ; }
42
-
43
- public int DefaultBatchFetchSize { get ; internal set ; }
44
-
45
- public bool IsScrollableResultSetsEnabled { get ; internal set ; }
46
-
47
- public bool IsGetGeneratedKeysEnabled { get ; internal set ; }
48
-
49
- public string DefaultSchemaName { get ; set ; }
50
-
51
- public string DefaultCatalogName { get ; internal set ; }
52
-
53
- public string SessionFactoryName { get ; internal set ; }
54
-
55
- public bool IsAutoCreateSchema { get ; internal set ; }
56
-
57
- public bool IsAutoDropSchema { get ; internal set ; }
58
-
59
- public bool IsAutoUpdateSchema { get ; internal set ; }
60
-
61
- public bool IsAutoValidateSchema { get ; internal set ; }
62
-
63
- public bool IsAutoQuoteEnabled { get ; internal set ; }
64
-
65
- public bool IsKeywordsImportEnabled { get ; internal set ; }
66
-
67
- public bool IsQueryCacheEnabled { get ; internal set ; }
68
-
69
- public bool IsStructuredCacheEntriesEnabled { get ; internal set ; }
70
-
71
- public bool IsSecondLevelCacheEnabled { get ; internal set ; }
72
-
73
- public string CacheRegionPrefix { get ; internal set ; }
74
-
75
- public bool IsMinimalPutsEnabled { get ; internal set ; }
76
-
77
- public bool IsCommentsEnabled { get ; internal set ; }
78
-
79
- public bool IsStatisticsEnabled { get ; internal set ; }
80
-
81
- public bool IsIdentifierRollbackEnabled { get ; internal set ; }
82
-
83
- public bool IsFlushBeforeCompletionEnabled { get ; internal set ; }
84
-
85
- public bool IsAutoCloseSessionEnabled { get ; internal set ; }
86
-
87
- public ConnectionReleaseMode ConnectionReleaseMode { get ; internal set ; }
88
-
89
- public ICacheProvider CacheProvider { get ; internal set ; }
90
-
91
- public IQueryCacheFactory QueryCacheFactory { get ; internal set ; }
92
-
93
- public IConnectionProvider ConnectionProvider { get ; internal set ; }
94
-
95
- public ITransactionFactory TransactionFactory { get ; internal set ; }
96
-
97
- public IBatcherFactory BatcherFactory { get ; internal set ; }
98
-
99
- public IQueryTranslatorFactory QueryTranslatorFactory { get ; internal set ; }
100
-
101
- public ISQLExceptionConverter SqlExceptionConverter { get ; internal set ; }
102
-
103
- public bool IsWrapResultSetsEnabled { get ; internal set ; }
104
-
105
- public bool IsOrderUpdatesEnabled { get ; internal set ; }
106
-
107
- public bool IsOrderInsertsEnabled { get ; internal set ; }
108
-
109
- public EntityMode DefaultEntityMode { get ; internal set ; }
110
-
111
- public bool IsDataDefinitionImplicitCommit { get ; internal set ; }
112
-
113
- public bool IsDataDefinitionInTransactionSupported { get ; internal set ; }
114
-
115
- public bool IsNamedQueryStartupCheckingEnabled { get ; internal set ; }
116
-
117
- #region NH specific
118
-
119
- public IsolationLevel IsolationLevel { get ; internal set ; }
120
-
121
- public bool IsOuterJoinFetchEnabled { get ; internal set ; }
122
-
123
- /// <summary>
124
- /// Get the registry to provide Hql-Generators for known properties/methods.
125
- /// </summary>
126
- public ILinqToHqlGeneratorsRegistry LinqToHqlGeneratorsRegistry { get ; internal set ; }
127
-
128
- #endregion
129
- }
1
+ using System . Collections . Generic ;
2
+ using System . Data ;
3
+ using NHibernate . AdoNet ;
4
+ using NHibernate . AdoNet . Util ;
5
+ using NHibernate . Cache ;
6
+ using NHibernate . Connection ;
7
+ using NHibernate . Exceptions ;
8
+ using NHibernate . Hql ;
9
+ using NHibernate . Linq . Functions ;
10
+ using NHibernate . Transaction ;
11
+
12
+ namespace NHibernate . Cfg
13
+ {
14
+ /// <summary>
15
+ /// Settings that affect the behavior of NHibernate at runtime.
16
+ /// </summary>
17
+ public sealed class Settings
18
+ {
19
+ public Settings ( )
20
+ {
21
+ MaximumFetchDepth = - 1 ;
22
+ }
23
+
24
+ // not ported - private TransactionManagerLookup transactionManagerLookup;
25
+ // not ported - private bool strictJPAQLCompliance;
26
+
27
+ #region JDBC Specific (Not Ported)
28
+
29
+ //private int jdbcFetchSize;
30
+ //private bool isJdbcBatchVersionedData;
31
+
32
+ #endregion
33
+ public SqlStatementLogger SqlStatementLogger { get ; internal set ; }
34
+
35
+ public int MaximumFetchDepth { get ; internal set ; }
36
+
37
+ public IDictionary < string , string > QuerySubstitutions { get ; internal set ; }
38
+
39
+ public Dialect . Dialect Dialect { get ; internal set ; }
40
+
41
+ public int AdoBatchSize { get ; internal set ; }
42
+
43
+ public int DefaultBatchFetchSize { get ; internal set ; }
44
+
45
+ public bool IsScrollableResultSetsEnabled { get ; internal set ; }
46
+
47
+ public bool IsGetGeneratedKeysEnabled { get ; internal set ; }
48
+
49
+ public string DefaultSchemaName { get ; set ; }
50
+
51
+ public string DefaultCatalogName { get ; internal set ; }
52
+
53
+ public string SessionFactoryName { get ; internal set ; }
54
+
55
+ public bool IsAutoCreateSchema { get ; internal set ; }
56
+
57
+ public bool IsAutoDropSchema { get ; internal set ; }
58
+
59
+ public bool IsAutoUpdateSchema { get ; internal set ; }
60
+
61
+ public bool IsAutoValidateSchema { get ; internal set ; }
62
+
63
+ public bool IsAutoQuoteEnabled { get ; internal set ; }
64
+
65
+ public bool IsKeywordsImportEnabled { get ; internal set ; }
66
+
67
+ public bool IsQueryCacheEnabled { get ; internal set ; }
68
+
69
+ public bool IsStructuredCacheEntriesEnabled { get ; internal set ; }
70
+
71
+ public bool IsSecondLevelCacheEnabled { get ; internal set ; }
72
+
73
+ public string CacheRegionPrefix { get ; internal set ; }
74
+
75
+ public bool IsMinimalPutsEnabled { get ; internal set ; }
76
+
77
+ public bool IsCommentsEnabled { get ; internal set ; }
78
+
79
+ public bool IsStatisticsEnabled { get ; internal set ; }
80
+
81
+ public bool IsIdentifierRollbackEnabled { get ; internal set ; }
82
+
83
+ public bool IsFlushBeforeCompletionEnabled { get ; internal set ; }
84
+
85
+ public bool IsAutoCloseSessionEnabled { get ; internal set ; }
86
+
87
+ public ConnectionReleaseMode ConnectionReleaseMode { get ; internal set ; }
88
+
89
+ public ICacheProvider CacheProvider { get ; internal set ; }
90
+
91
+ public IQueryCacheFactory QueryCacheFactory { get ; internal set ; }
92
+
93
+ public IConnectionProvider ConnectionProvider { get ; internal set ; }
94
+
95
+ public ITransactionFactory TransactionFactory { get ; internal set ; }
96
+
97
+ public IBatcherFactory BatcherFactory { get ; internal set ; }
98
+
99
+ public IQueryTranslatorFactory QueryTranslatorFactory { get ; internal set ; }
100
+
101
+ public ISQLExceptionConverter SqlExceptionConverter { get ; internal set ; }
102
+
103
+ public bool IsWrapResultSetsEnabled { get ; internal set ; }
104
+
105
+ public bool IsOrderUpdatesEnabled { get ; internal set ; }
106
+
107
+ public bool IsOrderInsertsEnabled { get ; internal set ; }
108
+
109
+ public EntityMode DefaultEntityMode { get ; internal set ; }
110
+
111
+ public bool IsDataDefinitionImplicitCommit { get ; internal set ; }
112
+
113
+ public bool IsDataDefinitionInTransactionSupported { get ; internal set ; }
114
+
115
+ public bool IsNamedQueryStartupCheckingEnabled { get ; internal set ; }
116
+
117
+ #region NH specific
118
+
119
+ public IsolationLevel IsolationLevel { get ; internal set ; }
120
+
121
+ public bool IsOuterJoinFetchEnabled { get ; internal set ; }
122
+
123
+ /// <summary>
124
+ /// Get the registry to provide Hql-Generators for known properties/methods.
125
+ /// </summary>
126
+ public ILinqToHqlGeneratorsRegistry LinqToHqlGeneratorsRegistry { get ; internal set ; }
127
+
128
+ public bool IsInterceptorsBeforeTransactionCompletionIgnoreExceptions { get ; internal set ; }
129
+
130
+ #endregion
131
+ }
130
132
}
0 commit comments