Hi,
  Here I have a lot of thinking about refactoring
FieldConversion interface to enhance anonymous fields:

1. Since anonymous fields have no corresponding java
fields, their values must come from some other places.
As I know, it can come from 
  a. referece to other object (foreign key)
  b. reference to super object
  c. auto-increment (used as oid)

2. Maybe we can refactor FieldConversion to let it to
provide anonymous fields' value too. In this way, a
field in java can be mapped to multiple columns in
table.

3. How is FieldConversion changed? I am trying figure
it out and the following is my rough suggestion and
still need more consideration.
    
    // one java source generates mulitple object
columns
    public abstract Object[] javaToSql(Object source)
throws ConversionException;

    // multiple columns combine to one java object
    public abstract Object sqlToJava(ResultSet rs,
fields[]) throws ConversionException;


Regards,
Rice



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to