Re: [OT] Re: Struts Approach

2005-02-27 Thread Andrew Hill
> Not to hit below the belt, but the only place that I have seen that > naming used in practice is in the Win32/COM world. Can you name > another? ;-) We do it as part of our coding conventions (we also do the Abstractxxx thing too). Im rather pro doing it that way too. Mostly its a matter of t

Re: Struts Approach

2005-02-26 Thread Erik Weber
Thanks a lot. Erik Robert Taylor wrote: > So, this additional layer, in a Struts application, resides between the > Struts classes (Actions) and your managerial facade? The Action > instantiates/looks up a CustomerApplicationServiceImpl, which does CRUD > via the CustomerService component but also

Re: Struts Approach

2005-02-26 Thread Robert Taylor
> So, this additional layer, in a Struts application, resides between the > Struts classes (Actions) and your managerial facade? The Action > instantiates/looks up a CustomerApplicationServiceImpl, which does CRUD > via the CustomerService component but also manages (possibly by itself, > possibly

Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
> Personally, I find the "leading I on an interface" rule to > hurt readability, but worse is that it also tempts you to an > insidious practice of naming an interface with the I, and > then an implementation class the same way without the I. > Consider the two names: > > * IThisIsAVeryLongNa

Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
> Personally, I find the "leading I on an interface" rule to > hurt readability, but worse is that it also tempts you to an > insidious practice of naming an interface with the I, and > then an implementation class the same way without the I. > Consider the two names: > > * IThisIsAVeryLongNa

Re: Struts Approach

2005-02-26 Thread Erik Weber
Robert Taylor wrote: Tim, I think things look pretty good so far. Right now Customer is a domain object representing a customer. CustomerDAO is a DAO respsonible for mapping the Customer to its relational counterpart(s). CustomerService collaborates with CustomerDAO to manage the persistence and

Re: [OT] Re: Struts Approach

2005-02-26 Thread Larry Meadors
On Sat, 26 Feb 2005 14:30:18 +0100, <[EMAIL PROTECTED]> wrote: > Can you tell me the exact difference between a leading "I" and a leading > "Abstract" ? > > AbstractButton, AbstractModel, AbstractAction... > "Abstract" describes the behavior (the class is an abstract or partial implementation),

Re: Struts Approach

2005-02-26 Thread Larry Meadors
HAHAHAH On Sat, 26 Feb 2005 14:32:22 +0100, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > I am unaware of any interfaces in the JDK that are ISomething. > > I-terator? > > :- > > - > To unsubscribe, e-mail: [EMAIL PROT

Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
> I am unaware of any interfaces in the JDK that are ISomething. I-terator? :- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
> I am unaware of any interfaces in the JDK that are ISomething. I-terator? :- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
Can you tell me the exact difference between a leading "I" and a leading "Abstract" ? AbstractButton, AbstractModel, AbstractAction... > I am unaware of any interfaces in the JDK that are ISomething. There was almost none of those in jdks 1.0, 1.1.x and so on, till swing / 1.2. Wait till 1.6

[OT] Re: Struts Approach

2005-02-26 Thread Leon Rosenberg
Can you tell me the exact difference between a leading "I" and a leading "Abstract" ? AbstractButton, AbstractModel, AbstractAction... > I am unaware of any interfaces in the JDK that are ISomething. There was almost none of those in jdks 1.0, 1.1.x and so on, till swing / 1.2. Wait till 1.6

Re: Struts Approach

2005-02-26 Thread Larry Meadors
Tim, What you are describing is actually very close to how I build struts apps with iBATIS. Starting with your example of a Customer maintenance application, here are the components I would create: Customer.java - a typed bean that describes the properties of a customer CustomerDao.java - the in

Re: Struts Approach

2005-02-26 Thread Larry Meadors
On Fri, 25 Feb 2005 16:27:09 -0800, <[EMAIL PROTECTED]> wrote: > Without knowing more details it is hard to respond. I did find the > description of the relations between the DAO objects a bit "off" from > what I would have expected. I would have expected something like: > > CustomerDAO customer

Re: Struts Approach

2005-02-26 Thread Robert Taylor
Tim, I think things look pretty good so far. Right now Customer is a domain object representing a customer. CustomerDAO is a DAO respsonible for mapping the Customer to its relational counterpart(s). CustomerService collaborates with CustomerDAO to manage the persistence and data access of a Cus

Re: Struts Approach

2005-02-25 Thread Vamsee Kanakala
Tim Christopher wrote: CustomerService.java # Used to gain access to CustomerDAO and CustomerSqlMapDAO. CustomerDispatchAction.java (ex insert method - but will contain CRUD) # Gets instance of CustomerService; copies jsp form details into a DynaActionForm; copy form DynaActionForm to Customer.java

Re: Struts Approach

2005-02-25 Thread Shey Rab Pawo
Without knowing more details it is hard to respond. I did find the description of the relations between the DAO objects a bit "off" from what I would have expected. I would have expected something like: CustomerDAO customerDAO = FactoryDAO.getCustomerDAO(); This assumes that the CustomerDAO is

Re: Struts Approach

2005-02-25 Thread Erik Weber
I think you're doing fine. What is your cause for concern? Does your application behave as you expect? As long as the business decisions are mostly made by your CustomerService object, you're on the right track. DTO == value object. As far as adding "extra classes", why? The goal is to *reduce*