Re: reducing generic verbosity

Franck Routier <[email protected]> Wed, 30 Jun 2010 12:31:27 +0200
Newsgroups gmane.comp.java.orm.simpleorm
Organization Axège sarl
Message-ID <1277893887.3457.17.camel@franck-laptop>
Hi,

I don't see such a big difference between the two versions !
...and I personaly prefer keeping it simple and using straight 'new'
syntax, instead of hiding it in a create method.

Maybe that a matter of taste.

What do others think about it ?

Franck


Le mercredi 30 juin 2010 à 10:46 +0200, Noel Grandin a écrit :
>   
> Hi
> 
> A method like this on SQuery:
> 
>     public static <T extends SRecordInstance> SQuery<T>
> create(SRecordMeta<T> recordMeta) {
>         return new SQuery<T>(recordMeta);
>     }
> 
> would greatly help to reduce the verbosity of the instantiation of
> SQuery objects.
> 
> For example, instead of this:
> 
>         SQuery<OrderWidebandMeasurementRecord> query = new
> SQuery<OrderWidebandMeasurementRecord>(META);
> 
> I can do this:
> 
>         SQuery<OrderWidebandMeasurementRecord> query =
> SQuery.create(META);
> 
> Regards, 
>     Noel Grandin 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> Disclaimer: http://www.peralex.com/disclaimer.html
> 
> 
> 
> 
> 






------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/