wiki:FmgVen/Development/UseCases

Version 2 (modified by fmguler, 14 years ago) (diff)

adding use cases to the same page for brevity

fmgVen Use Cases

The typical use cases for fmgVen are described here. With fmgVen, user can;

  • Save an object
  • Delete an object
  • Get an object by primary key
  • List the collection of objects
  • List the collection of objects according to some criteria and also sort

Use Case 1: Save an Object

To save an object, user calls;

SomeDomainObject obj = new SomeDomainObject();
obj.setName("name");
obj.setDescription("desc");
obj.setDate(new Date());
ven.save(obj);

Use Case 2: Delete an Object

To delete an object, user calls;

ven.delete(1, SomeDomainObject.class);

Use Case 3: Get an Object by Primary Key

To get an object by its primary key, user calls;

SomeDomainObject obj = (SomeDomainObject)ven.get(1, SomeDomainObject.class);

Use Case 4: List the Collection of Objects

To list the collection of objects, user calls;

List objList = ven.list(SomeDomainObject.class);

Use Case 5: List the Collection of Objects By Some Criteria

To list the collection of objects by some criteria, user calls;

List objList = ven.list(SomeDomainObject.class, criteria);