Title: Message

I was also thinking in the same direction. The only issue with this is whoever have written Interceptors would have to change their implementation.

The basic methods somebody would like to use in the Interceptors are

void put(String key, String value) and
String get(String key).

We can add the put method to the FieldValues, which can automatically create a FieldValue internally & add it to the FieldValues.
But changing the get method is not possible. So, the users would have to change their method calls from

get(String key) to get(String key).getFieldValue().

I think that would be safe.

I can also use those FieldValues to call getUpdateStatement/getInsertStatement on the Tables in my Interceptors.

Thanks
______________________________________________
Sunil Mishra, Manager, ADP Wilco (India) Private Limited
* +91-40-2340 8600 x-8202 ---- * +91-98490-61241




-----Original Message-----
From: Henner Kollmann [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 18, 2003 2:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [dbforms] Process interceptor interfaces


Hi all,

Could we change the Hashtable fieldValues the the FieldValues type in the the interceptor interfaces

   int preInsert(HttpServletRequest request, Hashtable fieldValues,
      DbFormsConfig config, Connection con) throws ValidationException;

   int preUpdate(HttpServletRequest request,
      java.util.Hashtable fieldValues, DbFormsConfig config, Connection con)
      throws ValidationException;

   int preDelete(HttpServletRequest request, Hashtable fieldValues,
      DbFormsConfig config, Connection con) throws ValidationException;

???

Holded information is the same.

Benefits are:
         - type save using of FieldValues
       - the time consumpting and faulty packing and unpacking could be removed.

Problem is that all people must change there interceptors to the new interface. The published methods are the same, so that changing the parameters does the work.

Any suggestions and comments?

Regards,
Henner



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

_
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the
message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.



This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify [EMAIL PROTECTED] immediately. You should not copy it or use it for any purpose, nor disclose its contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of ADP Wilco.

Reply via email to