|
|
Àâòîðèçàöèÿ |
|
|
Ïîèñê ïî óêàçàòåëÿì |
|
|
|
|
|
|
|
|
|
|
Marinescu F. — EJB design patterns: advanced patterns, processes, and idioms |
|
|
Ïðåäìåòíûé óêàçàòåëü |
Layer-independent code 145—146
layered architecture 144—145 see
Lazy loading 193—194
Local interfaces, development strategy 200
Looking up EJBHome objects 91—93
Main targets 156
Maintainability see also "Business Delegate pattern" "EJBHomeFactory
Maintainability, Data Transfer HashMap pattern 61
Maintainability, domain layer 133
Maintainability, DTOFactory 30
Maintainability, JDBC for Reading pattern 79
Maintainability, services layer 137
Maintainability, Session Facade pattern 7 11
Message Facade pattern see also "Session Facade pattern"
Message Facade pattern, airline registration scenario 12—17
Message Facade pattern, asynchronous communication 15
Message Facade pattern, blocking 13
Message Facade pattern, cons 15 16
Message Facade pattern, definition 3
Message Facade pattern, error handling 15—16
Message Facade pattern, failure notification 15
Message Facade pattern, fault-tolerance 13—15 17
Message Facade pattern, message-driven beans 13—15
Message Facade pattern, performance 17
Message Facade pattern, pros 15—16
Message Facade pattern, response time 15
Message Facade pattern, results notification 15—16
Message Facade pattern, return values 16
Message Facade pattern, scalability 17
Message Facade pattern, update operations 16
Message Facade pattern, weakly-typed input parameters 16
Message-driven beans, asynchronous facade 13—15
Message-driven beans, fault-tolerance 13—15
Message-driven beans, return values 16
Message-driven beans, type checking 202—203
Method calls, delegating 100
Method signatures, compile-time checking see "Business Interface pattern"
Method signatures, defining 42
Model data structures, replicating 54
mutable objects 53
N+1 calls problem 77 181—182
Naming conventions, development strategy 200
Network overhead, Session Facade pattern 6 10
Nouns 126—127
O/R mapping 183 184
Object Factory see "DTOFactory"
Object modeling, entity beans support 182
Online banking scenario 5—9
Optimistic concurrency, checking see "Version Number pattern"
Optimistic concurrency, recovery, and coupling 98
Optimistic concurrency, Stored Procedures for Autogenerated Keys pattern 107
Optimistic concurrency, version numbering as 73—75
Package targets 158—160
Packaging for deployment 158—160
Packaging, unit testing 173
Partitioning business logic see "Session Facade pattern"
Patterns, code listings see "Code listings"
Patterns, data transfer see "Custom Data Transfer Object pattern" "Data "Data "Data "Domain
Patterns, deprecated 199—200 201
Patterns, EJB layer architectural see "Business Interface pattern" "EJB "Generic "Message "Session
Patterns, inter-tier data transfer see "Custom Data Transfer Object pattern" "Data "Data "Data "Domain "DTOFactory"
Patterns, performance see "Business Delegate pattern" "Data "Dual "EJBHomeFactory "Version
Patterns, persistence see "Dual Persistent Entity Bean pattern"
Patterns, primary key generation, Sequence Blocks pattern 106—111
Patterns, primary key generation, Stored Procedures for Autogenerated Keys pattern 117—120 239
Patterns, primary key generation, UUID for EJB pattern 112—116
Patterns, transaction control see "Data Access Command Bean pattern" "Dual "JDBC "Version
Performance see also "Business Delegate pattern" "Data "Dual "EJBHomeFactory "Version
Performance, Data Transfer RowSet pattern 64
Performance, direct database access see "JDBC for Reading pattern"
Performance, DTOFactory 30—31
Performance, Message Facade pattern 17
Performance, response time 15
Performance, services layer 137
Performance, Session Facade pattern 8
Performance, Stored Procedures for Autogenerated Keys pattern 107 110
Performance, UUID for EJB pattern 116
Persistence see also "BMP" "CMP"
Persistence layer, CMP vs. BMP 131
Persistence layer, Data Access Command Bean pattern 131
Persistence layer, definition 129
Persistence layer, order of development 146—147
Persistence layer, patterns 130—131
Persistence layer, unit testing 170
Persistence logic, CMP/BMP dual support see "Dual Persistent Entity Bean pattern"
Persistence patterns see "Dual Persistent Entity Bean pattern"
Persistence, CMP 180
Persistence, custom frameworks 184
Persistence, entity beans 179—180
Persistence, PM 188
PersistenceManager (PM) 188
Persistent data stores, accessing 81—82 see
PM (PersistenceManager) 188
POJOs (plain ordinary Java objects) 183
Portability see also "Dual Persistent Entity Bean pattern"
Portability, domain layer 133
Portability, entity beans 183
Portability, Stored Procedures for Autogenerated Keys pattern 120
Postcompilation tools 40
Presentation layer 128
primary key generation see also "Sequence Blocks pattern" "Stored "UUID
Primary key generation, domain layer 133
Primitives, wrapping 62
Processing error exception, code listing 228
Project development see "Development process"
Project directory structure 154—155
QueryEmployeeByName.java, code listing 217—218
RAD (Rapid Application Development) 23
Rapid application development (RAD) 23
Reading operations see also "Data Transfer Object pattern" "DTOFactory" "Session
Reading operations, casting requirements 62
Reading operations, server data 29
READ_COMMITTED, isolating, Sequence Blocks pattern 109—110
READ_COMMITTED, isolating, Version Number pattern 74
Reference navigation 193—194
Relational databases, autogenerated keys see "Stored Procedures for Autogenerated Keys pattern"
Relational databases, direct access see "JDBC for Reading pattern"
Remote access, entity beans 51—52
Remote Command Server 22
Remote/local interfaces, consistency see "Business Interface pattern"
Remote/local interfaces, method signatures, compile-time checking see "Business Interface pattern"
Replicating model data structures 54
Response time, Message Facade pattern 15
Response time, Session Facade pattern 13
Results notification 15—16
Retrying failed transactions 100
Return values, Message Facade pattern 16
Reusability, DTOFactory 29—30
Reusability, Session Facade pattern 7 11
Reusability, Stored Procedures for Autogenerated Keys pattern 111
rolling back transactions 203
Rowsets see "Data Transfer RowSet pattern"
Scalability, Generic Attribute Access pattern 38
Scalability, Message Facade pattern 17
Scalability, Stored Procedures for Autogenerated Keys pattern 107 111
Scenarios, airline registration 12—17
Scenarios, automotive 27—30
Scenarios, car dealership 52
Scenarios, forum messaging system see "Development process walkthrough"
Scenarios, online banking 5—9
Security, entity beans 180 181
Sequence Blocks pattern, code listings 233—239
Sequence Blocks pattern, cons 107 111
Sequence Blocks pattern, definition 105
Sequence Blocks pattern, generating primary keys 106—111
Sequence Blocks pattern, key order 111
Sequence Blocks pattern, keys, losing 111
Sequence Blocks pattern, optimistic concurrency 107
Sequence Blocks pattern, performance 107 110
Sequence Blocks pattern, pros 110—111
| Sequence Blocks pattern, reusability 111
Sequence Blocks pattern, scalability 107 111
Sequence Blocks pattern, sequence entity bean code, code listing 234
Sequence Blocks pattern, sequence entity bean local home interface, code listing 234
Sequence Blocks pattern, sequence entity bean local interface, code listing 233
Sequence Blocks pattern, sequence session and entity EJB-JAR.xml, code listing 237—239
Sequence Blocks pattern, sequence session bean implementation, code listing 235—237
Sequence Blocks pattern, sequence session home interface, code listing 235
Sequence Blocks pattern, sequence session local home interface, code listing 235
Sequence Blocks pattern, sequence session local interface, code listing 235
Sequence Blocks pattern, sequence session remote interface, code listing 235
Sequence Blocks pattern, serialization 110
Sequence Blocks pattern, simplicity 111
Sequence entity bean local home interface, code listing 234
Sequence entity bean local interface, code listing 233
Sequence entity bean, code listing 234
Sequence session and entity EJB-JAR.xml, code listing 237—239
Sequence session bean implementation, code listing 235—237
Sequence session home interface, code listing 235
Sequence session local home interface, code listing 235
Sequence session local interface, code listing 235
Sequence session remote interface, code listing 235
SERIALIZABLE, isolating 74—75
Serialization, Business Delegate pattern 102—103
Serialization, Sequence Blocks pattern 110
Serialization, Stored Procedures for Autogenerated Keys pattern 110
Servers, bulk data transfer see "Bulk data transfer"
Servers, Business Delegate effects on 19
Servers, coupling to client 59—60
Servers, data, reading/updating 29
Servers, starting/ stopping 162—165
Services layer, asynchronous use cases 134
Services layer, definition 128
Services layer, EJB Command pattern 136—137
Services layer, order of development 148
Services layer, Session Facade pattern 135—136
Services layer, synchronous use cases 134—137
Services layer, unit testing 169
Session beans, configuring for JDOs 190
Session Facade pattern see also "Data Transfer Object pattern" "DTOFactory" "Message
Session Facade pattern, architectural benefits 8
Session Facade pattern, business logic separation 10
Session Facade pattern, calling from the client 18—19
Session Facade pattern, combining with Business Delegate pattern 18—19
Session Facade pattern, concurrency 6
Session Facade pattern, cons 10 13 18—19
Session Facade pattern, coupling 6 11
Session Facade pattern, definition 3
Session Facade pattern, development process, effects on 18—19
Session Facade pattern, direct database access 76—78
Session Facade pattern, entity beans, multiple in single transaction 13
Session Facade pattern, fault-tolerance 13
Session Facade pattern, maintainability 7 11
Session Facade pattern, network overhead 6 10
Session Facade pattern, online banking scenario 5—9
Session Facade pattern, performance benefits 8
Session Facade pattern, pros 10—11
Session Facade pattern, read operations 16
Session Facade pattern, response time 13
Session Facade pattern, reusability 7 11
Session Facade pattern, separation of development roles 7
Session Facade pattern, server resources, effects on 19
Session Facade pattern, services layer 135—136
Session Facade pattern, transactional integrity 11
Session Facade pattern, use cases, grouping into one bean 9
Session Facade pattern, verb-noun separation 11
SetRollBack() 203
single points of failure 15—16
Singletons see "Java singletons"
source code, compiling 157—158
Source code, listings see "Code listings"
Staleness, EJBHome objects 94
Staleness, preventing 70—75
Staleness, recovery procedure 72
Start targets 162—165
Stateless commands 24
stateless session beans 114—115
Static discovery 189
Stored procedures for auto-generated keys, code listing 239
Stored Procedures for Autogenerated Keys pattern, autogenerated keys 118—120
Stored Procedures for Autogenerated Keys pattern, code listing 239
Stored Procedures for Autogenerated Keys pattern, cons 120
Stored Procedures for Autogenerated Keys pattern, definition 105
Stored Procedures for Autogenerated Keys pattern, generating primary keys 117—120
Stored Procedures for Autogenerated Keys pattern, inserting data with stored procedures 118—120
Stored Procedures for Autogenerated Keys pattern, maintainability 120
Stored Procedures for Autogenerated Keys pattern, portability 120
Stored Procedures for Autogenerated Keys pattern, pros 120
Stored Procedures for Autogenerated Keys pattern, simplicity 120
Stored procedures, alternative to entity beans 183
Stored procedures, direct access to databases 183
Stored procedures, inserting data in databases 118—120
Strong typing, Data Transfer HashMap pattern 61
Strong typing, Generic Attribute Access pattern 38—39
Subtargets 156
Synchronous use cases 134—137
tables, populating see "JDBC for Reading pattern"
Targets, checkout 156—157
Targets, compile 157—158
targets, definition 156
Targets, deploy 160—162
Targets, initialize database 165—167
Targets, main 156
Targets, package 158—160
Targets, start 162—165
Targets, subtargets 156
Targets, test 167—168
Test targets 167—168
TestCase subclasses, naming 173—174
Testing see "Unit testing"
Timestamps vs. version numbers 73
Tools, domain layer 133
Transaction control, entity beans 180 181
Transactions see also "Data"
Transactions, control 23—24 see "Dual "JDBC "Version
Transactions, failed, retrying 100
Transactions, integrity 11
transactions, rolling back 203
Transfer Funds command 20—21 208—209
Type checking, message-driven beans 202—203
Type dependencies, Java 145
Typing, strong 38—39 61
Typing, weakly-typed input parameters 16
Unit testing, error handling 176—177
Unit testing, framework code 170
Unit testing, importance of 168—169
Unit testing, JUnit 168—169
Unit testing, layer boundaries 170
Unit testing, location 173
Unit testing, packaging 173
Unit testing, running test suites 167—168
Unit testing, scope, determining 169—171
Unit testing, test cases, selecting an author 175
Unit testing, test cases, setup and tear down 174—175
Unit testing, test code, separating from target code 173
Unit testing, test methods, naming 173—174
Unit testing, test suites, composition 171—173
Unit testing, test suites, deploying 173
Unit testing, test suites, organization 171
Unit testing, TestCase subclasses, naming 173—174
Unit testing, timing 175—176
universally unique identifiers (UUIDs) 113—115
Update operations see also "Data Transfer Object pattern" "DTOFactory" "Message
Update operations, bulk see "Data Transfer Object pattern" "Domain
Update operations, databases see "Data Transfer RowSet pattern"
Update operations, domain objects 55
Update operations, Message Facade pattern 16
Update operations, scheduled vs. real-time 201—202
Update operations, server data 29
Update operations, stale see "Version Number pattern"
|
|
|
Ðåêëàìà |
|
|
|