CreateManager |
|
Your trail: |
Difference between
version 67
and
version 66:
At line 6 changed 1 line. |
This tutorial will show you how to create a Business Delegate class (and a JUnit Test) to talk to the [DAO we created in Part I|CreateDAO]. |
This tutorial will show you how to create a Business Facade class (and a JUnit Test) to talk to the [DAO we created in Part I|CreateDAO]. |
At line 9 changed 1 line. |
web layer. The [Business Delegate|http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html] pattern from Sun says that these objects are useful for de-coupling your presentation layer from your database layer (i.e. for Swing apps). Managers should also be where you put any business logic for your application. |
web layer. It's also useful for de-coupling your presentation layer from your database layer (i.e. for Swing apps). Managers should also be where you put any business logic for your application. |
At line 36 removed 3 lines. |
import org.apache.commons.logging.Log; |
import org.apache.commons.logging.LogFactory; |
|
At line 44 changed 1 line. |
private Person person; |
private Person person = null; |
At line 46 removed 1 line. |
private Log log = LogFactory.getLog(PersonManagerTest.class); |
At line 48 changed 1 line. |
protected void setUp() { |
protected void setUp() throws Exception { |
super.setUp(); |
At line 52 changed 1 line. |
protected void tearDown() { |
protected void tearDown() throws Exception { |
super.tearDown(); |
At line 55 removed 4 lines. |
|
public static void main(String[] args) { |
junit.textui.TestRunner.run(PersonManagerTest.class); |
} |
Back to CreateManager,
or to the Page History.
|