Hi, thanks for the suggestion. I took a look at <dynamic-component>. I interpreted its use as:
"Map physical database columns to a hash, where there is a direct correspondence between columns/values of the database and keys/values of the map."
Is this a correct interpretation of <dynamic-component>? If so, this is somewhat the opposite of what I'm trying to do.
What I'm trying to do is: map the key/values built up using two columns of a table (OBJECT_PROPERTIES in the example above) to the actual methods of an object. For example, if the table OBJECT_PROPERTIES had the following rows:
Code:
OBJECT_ID, PROPERTY_NAME, PROPERTY_VALUE
1234, FIRST_NAME, Ryan
1234, LAST_NAME, Dewell
I want to map the row with the PROPERTY_NAME of "FIRST_NAME" to a method on OBJECT 1234 named getFirstName(), for example.
I understand the normal solution would be to simply add a column called FIRST_NAME to the OBJECTS table. :) But, OBJECTS will contain many different subclasses of OBJECT, all with very different OBJECT_PROPERTIES. Being able to map the name/value pairs from OBJECT_PROPERTIES to the different OBJECT subclasses is what we're trying to accomplish.
Any ideas?
Thanks again,
Ryan