All,

Oh, one other thing, I would think that this would be a static
component.  You just pass in your query and some and you get back a
modified query.

Thanks,
Troy

Troy Simpson wrote:

> Thanks all for the very helpful responses.
>
> Here is a situation I have.
>
> I retrieve a number of query result sets based on the users criteria.
> The queries have an sqlAction column which contains "Update", "Delete",
> "Insert" or "NoAction".  I then allow the user to make changes to the
> result sets.  As the user makes changes, I mark records based on the
> changes the user makes to the result set.  When the user saves/commits
> his/her changes, I process the query result sets based on the actions
> taken by the user which is marked in the sqlAction Column of the query
> result set.
>
> Here is an example of some of the functions I have:
>
> markRecordForInsertion
> markRecordForDeletion
> FindRecord
> InsertRecord
> setSQLActionOnRecord
> etc.
>
> Now I want to move these into a CFC.
>
> Would this be a Manager and would I name this queryManager.cfc?
> Or is this something else?
>
> Thanks a lot for you help.
> Sincerely,
> Troy
>
> Barney Boisvert wrote:
>
>  > A factory is a source of objects.  Frequestly these are used for objects
>  > that can't be constructed directly by the client for whatever reason.  A
>  > special case of a factory is a singleton class, like Java's System and
>  > Runtime classes, where you call a static method in order to get a
> reference
>  > to the actual object.
>  >
>  > A manager is (in my view) a class that provides a cohesive interface
> to one
>  > or more objects that do related tasks.  It might provide methods for
>  > creating business objects, updateing and deleting them, as well as
> various
>  > methods for recalling recordsets that back those BOs.  It'll probably
> have
>  > methods like createDocument, getDocumentById, updateDocument,
>  > deleteDocument, getDocumentList, getPostedDocumentList,
>  > getUnpostedDocumentList, getRecentDocumentList, etc.
>  >
>  > Cheers,
>  > barneyb
>  >
>  >  > -----Original Message-----
>  >  > From: Troy Simpson [mailto:[EMAIL PROTECTED]
>  >  > Sent: Thursday, February 26, 2004 11:18 AM
>  >  > To: CF-Talk
>  >  > Subject: What is a Factory?
>  >  >
>  >  > All,
>  >  >
>  >  > I noticed that some application user the terms Factory and Manager in
>  >  > the Class/Object Names.  Like AppFactory, AppManager, and
>  >  > EventManager
>  >  > in Mach-II
>  >  >
>  >  > 1. What is the general definition of a Factory?
>  >  > 2. What is the general definition of a Manager?
>  >  >
>  >  > Thanks,
>  >  >
>  >  > --
>  >  > Troy Simpson
>  >  >    Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
>  >  > North Carolina State University Libraries
>  >  > Campus Box 7111 | Raleigh | North Carolina
>  >  > ph.919.515.3855 | fax.919.513.3330
>  >  > E-mail: [EMAIL PROTECTED]
>  >  >
>  >  >
>  >  >
>  >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to