Re: SFieldBlob convenience constructors
Franck Routier <[email protected]> Wed, 30 Jun 2010 17:21:17 +0200
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Organization | Axège sarl |
| Message-ID | <1277911277.7811.9.camel@franck-laptop> |
Ok, I added a new constructor without the max size.
Beware, the field type is quite untested...
Thanks for your suggestions and please keep us informed about your
success with blobs in simpleorm,
Franck
Le mercredi 30 juin 2010 à 16:48 +0200, Noel Grandin a écrit :
>
> Hi
>
> You are correct, the first one is unnecessary.
>
> Most of the time, a maximumSize is unnecessary for a blob - it exists,
> but generally you don't bother checking because it's pretty unlikely
> that you'd ever hit it.
>
> Regards, Noel
>
> Franck Routier wrote:
> >
> >
> > Hi,
> >
> > actualy the first does exist (it is even the only constructor
> > available) :
> >
> > public SFieldBlob(SRecordMeta meta, String columnName, int maxSize,
> > SFieldFlags... pvals) {
> > super(meta, columnName, pvals);
> > setMaxSize(maxSize);
> > }
> >
> > As for the second one, it means you can have a SFieldBlob without a
> > max
> > size. I don't use blobs myself, so I don't really know if this makes
> > sense...
> >
> > Franck
> >
> > Le mercredi 30 juin 2010 à 16:00 +0200, Noel Grandin a écrit :
> > >
> > > Hi
> > >
> > > For convenience and symmetry with the other types, SFieldBlob
> > needs
> > > constructors that look like:
> > >
> > > public SFieldBlob(SRecordMeta meta, String columnName, int
> > > maxSize)
> > >
> > > public SFieldBlob(SRecordMeta meta, String columnName)
> > >
> > >
> > > Thanks,
> > > Noel Grandin
> > >
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________________
> > > Disclaimer: http://www.peralex.com/disclaimer.html
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
> ______________________________________________________________________
> 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/