any framework for creating hierachy of object with expandable attributes and CRUD operation

A

Andrew Ng

Hi Everyone,
I have a problem scenario here with the following description

A generic object with a fix set of attributes that is flexible enought to
allow addition of more attributes programmatically.
The object can be atomic in nature or a container that contain object of
similar kind. A hierachy can be constructed out
of a group of these object. Create, Read, Update and Deletion operation must
be supported. Search operation must also be supported.

I am looking for a framework or pattern that can handle this. Is there a
name to the above mentioned problem scenario ?

Andrew
 
G

Gerbrand van Dieijen

Hi Everyone,
I have a problem scenario here with the following description

A generic object with a fix set of attributes that is flexible enought to
allow addition of more attributes programmatically.
The object can be atomic in nature or a container that contain object of
similar kind. A hierachy can be constructed out
of a group of these object. Create, Read, Update and Deletion operation must
be supported. Search operation must also be supported.

In Java a HashTable should be able to do that.

You can do
Object a; Object b;
...
Map myMap = new HashTable();
myMap.put("a", a)
myMap.put("b",b)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top