|
|
Àâòîðèçàöèÿ |
|
|
Ïîèñê ïî óêàçàòåëÿì |
|
|
|
|
|
|
|
|
|
|
Marinescu F. — EJB design patterns: advanced patterns, processes, and idioms |
|
|
Ïðåäìåòíûé óêàçàòåëü |
36-digit key strings 116
Account BMP bean subclass, code listing 222—228
Account CMP bean superclass, code listing 221—222
Account deployment descriptor, code listing 218—220
Account home interface, code listing 220
Account remote interface, code listing 220
Aggregate data transfer objects 53
Aggregate entity bean pattern 199—200
Airline registration scenario 12—17
Ant, build files 152 156
Ant, definition 149
Ant, project directory structure 154—155
Ant, setup 153 155—156
Ant, targets 156—168
Application layer, Business Delegate pattern 141—142
Application layer, definition 128
Application layer, EJBHomeFactory pattern 141
Application layer, unit testing 170
Architectural patterns see "Business Interface pattern" "EJB "Generic "Message "Session
Architecture, layered 144—145 see
Architecture, pattern-driven see "J2EE layers"
Asynchronous communication 15
Asynchronous use cases services layer 134 see
Attribute Access pattern see "Generic Attribute Access pattern"
Attribute key values, maintaining 61
Attribute validation, client-side 54
Auto-generated keys, stored procedures, code listing 239 see
Banking scenario 5—9
BaseReadCommand.java, code listing 213—214
BaseUpdateCommand.java, code listing 214—215
Bean-managed persistence (BMP) see "BMP"
Bean-Managed Transactions (BMT) 192—193
Beans, business logic in see "EJB Command pattern"
Beans, command 19—21 23 see
Beans, message-driven 13—16
Beans, multiple use cases in see "Session Facade pattern"
Beans, self referencing 41
Beans, session, configuring for JDOs 190
Beck, Kent 169
Blocking 13
BMP (Bean-Managed Persistence) vs. CMP 131
BMP (Bean-Managed Persistence), account BMP bean subclass, code listing 222—228
BMP (Bean-Managed Persistence), account deployment descriptor, code listing 219—220
BMP (Bean-Managed Persistence), CMP dual support see "Dual Persistent Entity Bean pattern"
BMP (Bean-Managed Persistence), performance 78—79
BMT (Bean-Managed Transactions) 192—193
Build files (Ant) 152 156
Built-in caching 78—79
Bulk data transfer see also "Data Transfer HashMap pattern" "Data "Domain
Bulk data transfer, development strategy 201
Bulk execution of use cases see "EJB Command pattern" "Session
bulk updates see "Data Transfer Object pattern" "Domain
Business delegate 99
Business Delegate pattern, application layer 141—142
Business Delegate pattern, caching data locally 100
Business Delegate pattern, code listing 231—233
Business Delegate pattern, combining with Session Facade pattern 18—19
Business Delegate pattern, creating dummy data 101
Business Delegate pattern, decoupling client from EJB 98—103
Business Delegate pattern, definition 91
Business Delegate pattern, delegating method calls 100
Business Delegate pattern, development process, effects on 18—19
Business Delegate pattern, executing business logic locally 101
Business Delegate pattern, hiding EJB-specific exceptions 100
Business Delegate pattern, implementing 101—103
Business Delegate pattern, retrying failed transactions 100
Business Delegate pattern, serialization 102—103
Business Delegate pattern, server resources, effects on 19
business interface 42
Business Interface pattern, definition 4
Business Interface pattern, domain layer 133
Business Interface pattern, remote/local interface 40—43
Business logic, definition 129
Business logic, executing locally 101
Business logic, including in beans see "EJB Command pattern"
Business logic, partitioning see "Session Facade pattern"
Business logic, placing 18—21 23
Business logic, separation 10 15
Caching, built-in 78—79
Caching, EJBHome objects 93—97
Caching, JDOs 193—194
Caching, locally 100
Car dealership scenario 52
case studies see "Scenarios"
Casting requirements 62
Checkout targets 156—157
Clashing UUIDs 115
Client layers, order of development 148—149
Client-side attribute validation 54
Client-side interaction patterns see "Business Delegate pattern" "EJBHomeFactory
Client-side routing 21—22
Clients, bulk data transfer see "Bulk data transfer"
Clients, coupling/decoupling see "Coupling" "Decoupling
Clients, interacting with entity beans 53
Clock setbacks 115
Clustering, EJBHome objects 94
CMP (Container-Managed Persistence) vs. BMP 131
CMP (Container-Managed Persistence), account CMP bean superclass, code listing 221—222
CMP (Container-Managed Persistence), account deployment descriptor, code listing 218—219
CMP (Container-Managed Persistence), BMP dual support see "Dual Persistent Entity Bean pattern"
CMP (Container-Managed Persistence), entity bean validation 200
CMP (Container-Managed Persistence), pros 180
CMT (Container-Managed Transactions) 191—192
Coarse-Grained entity bean pattern 199—200
Code listings, account BMP bean subclass 222—228
Code listings, account CMP bean superclass 221—222
Code listings, account deployment descriptor for BMP 219—220
Code listings, account deployment descriptor for CMP 218—219
Code listings, account home interface 220
Code listings, account remote interface 220
Code listings, BaseReadCommand.java 213—214
Code listings, BaseUpdateCommand.java 214—215
Code listings, Business Delegate 231—233
Code listings, command superclass 209
Code listings, CommandException 210—211
Code listings, CommandExecutor 212
Code listings, CommandServer, session bean 209—210
Code listings, CommandTarget interface 211
Code listings, Data Access, Command Bean 213—218
Code listings, Dual Persistent Entity Bean 218—228
Code listings, EJB Command pattern 208—212
Code listings, EJBCommandTarget 211—212
Code listings, EJBHomeFactory 228—231
Code listings, InsertAccount stored procedure 239
Code listings, InsertEmployee, Command.java 215—216
Code listings, processing error exception 228
Code listings, QueryEmployeeByName.java 217—218
Code listings, Sequence Blocks 233—239
Code listings, sequence entity bean code 234
Code listings, sequence entity bean local home interface 234
Code listings, sequence entity bean local interface 233
Code listings, sequence session and entity EJB-JAR.xml 237—239
Code listings, sequence session bean implementation 235—237
Code listings, sequence session home interface 235
Code listings, sequence session local home interface 235
Code listings, sequence session local interface 235
Code listings, sequence session remote interface 235
Code listings, stored procedures for auto-generated keys 239
Code listings, Transfer Funds command 208—209
Codebase, checking out 156—157
Cognitive dissonance 180—182
Command framework 21—22
Command inheritance 84—85
Command pattern see "EJB Command pattern"
Command Server ejb-jar 24
Command superclass, code listing 209
CommandException, code listing 210—211
CommandExecutor, code listing 212
CommandServer session bean, code listing 209—210
CommandTarget interface, code listing 211
| Compile targets 157—158
Compile-time checking, consistency 40 42—43
Compile-time checking, Data Transfer HashMap pattern 61
Compile-time checking, Data Transfer RowSet query results 67
Compile-time checking, Generic Attribute Access pattern 38—39
Compile-time checking, method signatures see "Business Interface pattern"
compiling source code 157—158
Composite Entity Bean pattern 199—200
Concurrency, domain layer 132
Concurrency, Session Facade pattern 6
Configuring see also "Customizing"
Configuring, session beans for JDOs 190
Container-managed persistence (CMP) see "CMP"
Container-Managed Transactions (CMT) 191—192
Cost of operations, Data Transfer HashMap pattern 59 61
Cost of operations, Generic Attribute Access pattern 38
Cost of operations, maintenance costs 38
Cost of operations, network overhead 6
Cost of operations, Session Facade pattern 6
Coupling see also "Decoupling client from EJB"
Coupling, client to EJB 98—99
Coupling, client to object model 54
Coupling, client to server 59—60
Coupling, Session Facade pattern 6 11
Creating, Data Transfer Object pattern 28 49
Creating, data transfer objects 49
Creating, DTOs 28
Creating, dummy data 101
Creating, entity beans 53
Creating, UUIDs 113—115
Custom Data Transfer Object pattern, definition 45
Custom Data Transfer Object pattern, description 56—58
Customizing see also "Configuring"
Customizing, Data Transfer Object pattern 56—58
DATA see also "Transactions"
Data Access Command Bean pattern see also "EJB Command pattern"
Data Access Command Bean pattern and JDBC for Reading pattern 86
Data Access Command Bean pattern, accessing persistent stores 81—82
Data Access Command Bean pattern, advanced JDBC features 86
Data Access Command Bean pattern, BaseReadCommand.java, code listing 213—214
Data Access Command Bean pattern, BaseUpdateCommand.java, code listing 214—215
Data Access Command Bean pattern, code listings 213—218
Data Access Command Bean pattern, command inheritance 84—85
Data Access Command Bean pattern, cons 86
Data Access Command Bean pattern, data source independence 85—86
Data Access Command Bean pattern, decoupling client from EJB 81—86 183
Data Access Command Bean pattern, definition 69
Data Access Command Bean pattern, InsertEmployeeCommand.java, code listing 215—216
Data Access Command Bean pattern, interface consistency 86
Data Access Command Bean pattern, persistence layers 85 131
Data Access Command Bean pattern, pros 85—86
Data Access Command Bean pattern, QueryEmployeeByName.java, code listing 217—218
Data Access Object pattern 79 131
Data objects, mapping to clients 61
Data Transfer HashMap pattern see also "EJB Command pattern" "Generic
Data Transfer HashMap pattern and DTOs 59
Data Transfer HashMap pattern and the development process 140
Data Transfer HashMap pattern, attribute key values, maintaining 61
Data Transfer HashMap pattern, casting requirements 62
Data Transfer HashMap pattern, client coupling to server 59—60
Data Transfer HashMap pattern, compile-time checking 61
Data Transfer HashMap pattern, cons 59—62
Data Transfer HashMap pattern, costs 59 61
Data Transfer HashMap pattern, data transfer object layers 59
Data Transfer HashMap pattern, definition 46
Data Transfer HashMap pattern, description 59—62
Data Transfer HashMap pattern, maintainability 61
Data Transfer HashMap pattern, mapping data objects to clients 61
Data Transfer HashMap pattern, primitives, wrapping 62
Data Transfer HashMap pattern, pros 61
Data Transfer HashMap pattern, strong typing 61
Data Transfer Object Factory see "DTOFactory"
Data transfer object layers 59
Data Transfer Object pattern see also "DTOFactory" "Session
Data Transfer Object pattern and Data Transfer HashMap pattern 59
Data Transfer Object pattern and ejbCreate method 204
Data Transfer Object pattern and the development process 138—139
Data Transfer Object pattern and XML 204
Data Transfer Object pattern vs. RowSets 65
Data Transfer Object pattern, bulk data transfer and update 52
Data Transfer Object pattern, creating 28 49
Data Transfer Object pattern, customizing 56—58
Data Transfer Object pattern, decoupling data from objects see "Data Transfer HashMap pattern"
Data Transfer Object pattern, definition 45
Data Transfer Object pattern, description 47—50
Data Transfer Object pattern, development strategy 201
Data Transfer Object pattern, domain layer 133
Data Transfer Object pattern, granularity 49
Data Transfer Object pattern, graphing 30
Data transfer objects, aggregate 53
Data transfer objects, changing 26
Data transfer objects, creating 49
Data transfer patterns see "Custom Data Transfer Object pattern" "Data "Data "Data "Domain
Data Transfer RowSet pattern and JDBC for Reading pattern 63—67
Data Transfer RowSet pattern and the development process 140
Data Transfer RowSet pattern vs. DTOs 65
Data Transfer RowSet pattern, automation 66
Data Transfer RowSet pattern, column names 66
Data Transfer RowSet pattern, common query interface 66
Data Transfer RowSet pattern, cons 64 66—67
Data Transfer RowSet pattern, definition 46
Data Transfer RowSet pattern, disconnected RowSets 64
Data Transfer RowSet pattern, domain model 66
Data Transfer RowSet pattern, object orientation 66
Data Transfer RowSet pattern, performance 64
Data Transfer RowSet pattern, pros 66
Data Transfer RowSet pattern, query results, compile-time checking 67
Data Transfer RowSet pattern, redundant data translation 66
Data Transfer RowSet pattern, transferring relational data 63—67
Data Transfer RowSet pattern, updates from applications 67
Data typing, strong 38—39 61
Data typing, weakly-typed input parameters 16
Data, presenting in tables see "JDBC for Reading pattern"
Data, redundant translation 66
Data, relational, transferring see "Data Transfer RowSet pattern"
Data, stale, identifying see "Version Number pattern"
Data, transferring between layers see "Inter-tier data transfer"
Data, transferring in bulk see "Bulk data transfer"
Data, transferring relational data see "Data Transfer RowSet pattern"
Database operations, consistency checking see "Version Number pattern"
Database operations, direct access see also "JDBC for Reading pattern"
Database operations, direct access, cons 81
Database operations, direct access, pros 130
Database operations, direct access, stored procedures 183
Database operations, generating primary keys see "Sequence Blocks pattern" "Stored "UUID
Database operations, initializing during development 165—167
Database operations, inserting data with stored procedures 118—120
Database operations, passing ResultSet data see "Data Transfer RowSet pattern"
Database operations, relational databases, autogenerated keys see "Stored Procedures for Autogenerated Keys pattern"
Database operations, relational databases, direct access see "JDBC for Reading pattern"
Database transactions see "Data" "Transactions"
Decoupling client from EJB see also "Business Delegate pattern" "Coupling" "Data "Data "EJB
Decoupling client from EJB, DTO-related logic 26—29
Decoupling client from EJB, errors caused by 40
Decoupling client from EJB, interface definition 40
Delegating method calls 100
Delegation schemes 200
Dependent objects 199
Deploy targets 160—162
Deployment, applications 160—162
Deployment, JDOs 187—188
Deployment, packaging for 158—160
Deployment, test suites 173
Deprecated patterns 199—200 201
Development process, accelerating 54
Development process, development roles 7 98
Development process, Domain Data Transfer Object pattern, effects of 54
Development process, entity beans, overhead 182
Development process, server resources 19
Development process, Session Facade pattern, effects of 18—19
|
|
|
Ðåêëàìà |
|
|
|