. (dot)
IntelliSense, 26
joins, 55
= (equals sign), Restrictions, 121
> (greater than sign), Restrictions, 121
< (less than sign), Restrictions, 121
A
AbstractQueryImpl, 54
Add Reference, 10
AddOrder, 32
ADODB.Connection, 1
ADODB.Recordset, 1
adonet.batch_size, 199
aggregate database functions
AND, 121
And, 121
appender-ref, 39
AppendToFile, 38
Application_BeginRequest(), 207
Application_EndRequest(), 207
Application_Start(), 206
appSetting, 42
installation, 204
session-per-web-request, 207
Assembly, 43
assembly, 15
Assigned, 184
AuditDeleteEvent(), 52
AutoGenerateColumns, 55
B
<bag>, 17
batch processes
ConfigureNHibernate(), 200
IStatelessSession, 199
QueryImpl, 201
UPDATE, 199
BeginTransaction(), 172
BETWEEN, 121
Between, 136
binaries, 205
/bin/Debug, 40
/bin/release, 40
Build Action, 17
BuildDataTable(), 57, 98, 99, 106
CreateMultiCriteria(), 105
IList, 58
BuildSessionFactory(), 23
DetachedQuery, 81
LINQ, 167
buttonCount_Click(), 130
buttonMaximum_Click(), 79
buttonMinimum_Click(), 167
DetachedSearch(), 109
MainWindow.xaml.cs, 81, 109, 137
buttonSubmit_Click(), 182–183, 196
buttonTotalValue_Click, 89
C
cache, 23
DataAccess, 191
ExecuteUpdate(), 202
foreign keys, 189
Get(), 189
IStatelessSession, 202
Load(), 189
strategies, 193
cache.provider_class, 190
cache.use_second_level_cache, 192, 193–194
CheckBox, 138
class, 15
<class>, 15
Class1.cs, 6
ClassMapping, 17c
LINQ, 167
MainWindow.xaml.cs, 121
Common, 6
concurrency control, 172
concurrency strategy
optimistic control, 172
pessimistic control, 172
<configSections>, 25
property-ref, 19
GetNamedQuery(), 73
SessionFactory, 24
<configuration>, 25
ConfigurationManager, 42
ConfigureNHibernate(), 23, 27, 44, 200
Interceptor, 47
connectionString, 204, 205–207
console application
lambda expressions, 160
COUNT, 76
CountDistinct, 127
CreateCriteria(), 95, 98, 107, 120
CreateCriteria<T>(), 98
CreateMultiCriteria(), 105–108, 119
CurrentSessionContext, 206
CustomIdGenerator, 185
D
DAL. See data access layer
data access layer (DAL), 8
data transfer object (DTO), 139–143
DataAccess, 6
database management systems (DBMSs)
CreateMultiQuery(), 72
detached objects, 170
ExecuteDetachedQuery(), 81
GetNamedQuery(), 73
PopulateDataGrid(), 61
WPF, 56
DBMSs. See database management systems
DefaultProxyFactory, 20
DELETE, 199
detached objects, 170
DetachedCriteria, 92, 109–111, 132
DetachedSearch(), 109
Distinct, 127
Driver_Class, 25
DriverConnectionProvider, 20
DTO. See data transfer object
E
entity, 11
Eq, 121
ERROR, 39
ExecuteCriteria<T>(), 208, 209
ExecuteDetachedQuery(), 81
ExecuteHQL<T>(), 208
ExecuteICriteriaOrderBy(), 32
ExecuteICriteria<T>(), 32
F
FATAL, 39
FetchMode.Default, 125
FetchMode.Eager, 125
FetchMode.Join, 125
FetchMode.Lazy, 125
FetchMode.Select, 125
FileInfo, 43
FileStream, 41
Flush(), 170
foreach, 199
Foreign, 184
Future(), 47
CreateCriteria(), 120
CriteriaImpl, 119
QueryOver, 116
Future<T>(), 85
Get(), 189
{get: set:}, 12
GetCountByTypeHQL, 79
GetCurrentSession(), 206, 209, 210
GetInventoryPaging(), 86
GetLogger, 40
GetNamedQuery, 53
GetNamedQuery()
aggregate database functions, 76–80
GetResult(), 70
Global.asax.cs, 204
Group, 127
Gt, 121
Guid, 184
H
Embedded Resource, 141
versioning, 174
*.hbm.xml, 13
HI, 184
Hibernate Query Language (HQL), 3, 23, 29, 53–90. See also specific HQL elements
round-trip database counter, 65–66
strongly typed configuration, 55, 57
hibernate-mapping, 15
<hibernate-mapping>, 15
Hilo, 184
HLO, 184
HQL. See Hibernate Query Language
HttpContext, 206
I
AddOrder, 32
aggregate database functions, 126–131
data transfer object (DTO), 139–143
fetch, 95
Interceptor, 46
joins, 93
lazy loading, 36
LINQ, 147
Nhibernate.Criterion, 32
SetFirstResult(), 102
SetMaxResults(), 102
SQL queries, 93
id, 15
<idbag>, 17
IDENTITY, 184
Identity, 184
IInterceptor, 46
IList<T>, 208
ILMerge, 146
Image, 50
IN, 121
In, 121
Index.aspx, 211
INFO, 39
Initialize(), 23
InnerException.Message, 29
Insert(), 199
insert="false", 186
installation, 10
ASP.NET MVC3, 204
int, 86
Event, 48
OnPrepareStatement(), 47
OpenSession(), 48
INVERSE, 187
aggregate database functions, 130
Future(), 85
GetExecutableQuery(), 83
Interceptor, 46
LINQ, 147
SetFirstResult(), 61
SetMaxResults(), 61
IQueryOver, 23
ISerializable, 41
IsNotNull, 121
IsNull, 121
IStatelessSession, 97–98, 106, 199, 202
IUserType
J
JBoss, 2
JOIN, 93
join, 36
jpGrid, 212
jQuery, 211
Json, 209
L
Label, 181
lambda expressions
console application, 160
LastWriteTime, 43
private field value, 12
Session, 23
Le, 121
Like, 121
aggregate database functions, 164–168
buttonMinimum_Click(), 167
ICriteria, 147
IList, 152
IQuery, 147
Json, 209
QueryOver, 147
Query<T>(), 148
SUM, 165
<list>, 17
List<T>, 170
LoadConfigurationFromFile(), 44
log4net.dll, 40
LogManager, 40
long, 86
lost update problem, 172
LOW, 184
Lt, 121
M
Between, 136
CheckBox, 138
ComboBox, 33
Image, 50
buttonMaximum_Click(), 79
buttonSearch_Click(), 81, 84, 109, 137, 160
buttonSubmit_Click(), 196
ComboBox, 121
PopulateDataGrid(), 104, 113, 149, 163
SetDataBaseRoundTripImage(), 50
MainWindow.xml.cs, 99
ManagedWebSessionContext, 206
Mapping, 6
mapping files
SessionFactory, 73
SQL queries, 14
MappingException, 174
maxResult, 117
maxSizeRollBackups, 38
MemCache, 190
metadata, 16
Model, 56
MoveFirst(), 1
MoveLast(), 1
MoveNext(), 1
MovePrevious(), 1
MultiCriteria, 47
MultiQuery, 47
N
name="hibernate-configuration", 25
namespace.class, 185
Native, 184
NHErrorLog, 39
NHibernate.AdoNet.Util.BasicFormatter.Format(), 47
NHibernateBase, 10
NHibernateBase.ConfigureNHibernate(), 41
NHibernate.Cfg.Configuration, 19, 23
NHibernate.Cfg.Environment.cs, 19
NHibernate.Criterion, 92
DetachedCriteria, 109
ICriteria, 32
Projection, 126
NHibernate.Driver, 9
SupportMultipleQueries(), 108
NHibernate.EmptyInterceptor.cs, 46
NHibernate.Event, 48
NHibernate.FetchMode, 125
NHibernate.ISession.cs, 23
NHibernate.ISessionFactory, 19
NHibernate.ITransaction, 23
NHibernate.Mapping.ByCode.Conformist, 17
NHibernate.NonUniqueObjectException, 197
NHibernate.Proxy, 20
NHLog, 40
NHLog.txt, 38
NhQueryProvider, 148
nonstrict-read-write, 193
NOT, 121
Not, 121
O
object-relational mapping (ORM), 3–4
ODP.NET, 20
OID, 19
OnDelete(), 46
OnLoad(), 46
OnSave(), 46
OPD.NET, 78
OpenStatelessSession(), 98
optimistic control, 172
OR, 121
Oracle
CreateMultiQuery(), 73
OPD.NET, 78
rownum, 19
OracleDataClientDriver, 20
orderBy, 30
ORM. See object-relational mapping
P
paging
persistent objects, 170, 195–197
pessimistic control, 172
PopulateComboBox(), 33
PopulateDataGrid(), 99
CreateMultiCriteria(), 107–108
CreateMultiQuery(), 71
DataGrid, 61
Load(), 121
MainWindow.xaml.cs, 104, 113, 149, 163
SetDataBaseRoundTripImage(), 66
strongly typed configuration, 69
Prevalence, 190
Price, 56
private field value, 12
Program.cs, 117
Projection, 126
property, 15
PropertyNotFoundException, 15
property-ref, 19
PropertyValueException, 12
proxy, 11
pseudo-foreign keys, 19
Q
QOH, 56
QueryableBase<T>(), 146
QueryOver
CriteriaImpl, 112
Future(), 116
LINQ, 147
PopulateDataGrid(), 113–114, 117
Take(), 117
Query<T>(), 148
R
read-only, 193
ReadUncommitted, 171
read-write, 193
RedCommitted, 171
Reference, 205
References, 10
reflection, 16
regsrv32.exe, 1
Relationships, 8
Remotion.Data.Linq.dll, 146
RepeatableRead, 171
Restrictions, 35
DetachedCriteria, 132
Rollback(), 23
ROUND, 78
round-trip database counter, 49–51, 65–66
RowCount, 127
rownum, 19
S
IStatelessSession, 199
select count(*), 72
SelectionChanged(), 34–35, 150–151
lazy loading, 36
Seqhillo, 184
SEQUENCE, 184
Sequence, 184
Serializable, 171
serialization, 41
ConfigureNHibernate(), 44
Serialize(), 45
SerializedConfiguration, 41–42
Server.CreateObject, 1
Session
cache, 188
detached objects, 170
DetachedQuery, 80
GetCurrentSession(), 210
Interceptor, 47
lazy loading, 23
Session.CreateQuery(), 54
batch processes, 200
Configuration, 24
mapping files, 73
OpenStatelessSession(), 98
session-factory, 200
SessionImpl, 201
session-per-web-request, 207
Sessions, 19
<set>, 17
SetDataBaseRoundTripImage(), 50, 66
SetInterceptor(), 47
SetParameter(), 148
SharedCache, 190
showDetails, 212
Snapshot, 171
SQL queries
DAL, 8
Future(), 119
ICriteria, 93
mapping files, 14
View SQL, 108
SQL Server, 7
CreateMultiQuery(), 72
SqlClientDriver, 20
SqlClientDriver, 20
sql-query, 74
StaleObjectException, 23
batch processes, 201
versioning, 175
detached objects, 170
persistent objects, 170, 195–197
StatelessSession, 199
Stopwatch, 45
strongly typed configuration, 19, 26–28
DetachedQuery, 84
FutureValue<T>(), 86
PopulateDataGrid(), 69
SubGridRowExpanded, 212
SupportMultipleQueries(), 108
SysCache, 190
SysCache2, 190
System.Configuration, 41
System.DateTime, 11
System.Diagnostics, 45
System.IO, 43
System.Linq.Expression, 119
System.Linq.IQueryProvider, 148
System.Reflection, 43
T
table, 15
Table Designer, 8
Take()
QueryOver, 117
ThreadStaticSessionContext, 207
transactional, 193
transient objects, 197
Persist(), 198
state, 170
TYPE, 9
type, 15
U
uniqueidentifier, 9
Update(), 170
V
validation
.hbm.xml, 45
serialized configuration, 42–43
value comparison logic, 131
varchar(), 9
Velocity, 190
VERSION, 174
<version …>, 174
View
Index.aspx, 211
Visual Studio, 5
XML schema templates, 13
W
WARN, 39
WcfOperationSessionContext, 206
WebSessionContext, 207
Where, 121
CreateQuery, 63
PopulateComboBox(), 33
Windows Presentation Foundation (WPF), 3, 56
X
3.141.19.185