Changes between Version 1 and Version 2 of FmgVen/Development/UseCases


Ignore:
Timestamp:
Oct 3, 2010, 9:22:10 PM (14 years ago)
Author:
fmguler
Comment:

adding use cases to the same page for brevity

Legend:

Unmodified
Added
Removed
Modified
  • FmgVen/Development/UseCases

    v1 v2  
    1 = fmgVen Use Cases = 
    2  
    3 The typical use cases for fmgVen will be described here.  
     1= fmgVen Use Cases = 
     2The typical use cases for fmgVen are described here. With fmgVen, user can; 
    43 
    54 * Save an object 
     
    87 * List the collection of objects 
    98 * List the collection of objects according to some criteria and also sort 
     9 
     10== Use Case 1: Save an Object == 
     11To save an object, user calls; 
     12{{{ 
     13SomeDomainObject obj = new SomeDomainObject(); 
     14obj.setName("name"); 
     15obj.setDescription("desc"); 
     16obj.setDate(new Date()); 
     17ven.save(obj); 
     18}}} 
     19 
     20== Use Case 2: Delete an Object == 
     21To delete an object, user calls; 
     22{{{ 
     23ven.delete(1, SomeDomainObject.class); 
     24}}} 
     25 
     26== Use Case 3: Get an Object by Primary Key == 
     27To get an object by its primary key, user calls; 
     28{{{ 
     29SomeDomainObject obj = (SomeDomainObject)ven.get(1, SomeDomainObject.class); 
     30}}} 
     31 
     32== Use Case 4: List the Collection of Objects == 
     33To list the collection of objects, user calls; 
     34{{{ 
     35List objList = ven.list(SomeDomainObject.class); 
     36}}} 
     37 
     38== Use Case 5: List the Collection of Objects By Some Criteria == 
     39To list the collection of objects by some criteria, user calls; 
     40{{{ 
     41List objList = ven.list(SomeDomainObject.class, criteria); 
     42}}}