Re: about storing data
Per Nyfelt <[email protected]> Sat, 19 Mar 2005 16:19:42 +0100
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Resourcing Networks |
| Message-ID | <[email protected]> |
Hi,
lördagen den 19 mars 2005 02.53 skrev Adi:
> hello
>
> if i have class Car and CarImpl
> and i have to create the child class for example BigCar
> and SmallCar
> 1. is this child class must be extended OzoneRemote and
> OzoneObject????
> 2. if not my child class my extended from what??? the
> class Car or carImpl
You can do something like:
interface Car extends OzoneRemote{}
class CarImpl extebds OzoneObject{}
interface BigCar extends Car {...}
class BigCarImpl extends CarImpl {...}
interface SmallCar extends Car {...}
class SmallCarImpl extends CarImpl {...}
>
> 3. to create of list with OzoneZCompatible what can i do
> to implement it?
> any example use it?
>
The users guide has an example of storing OzoneCompatibles in a map
(GarageImpl containing a HashTable of Cars), The same principle applies to a
List.
>
> thanks
>
>
> On Fri, 18 Mar 2005 09:38:18 +0100
>
> Per Nyfelt <[email protected]> wrote:
> > fredagen den 18 mars 2005 03.12 skrev Adi:
> >> i confuse with some of example of ozone
> >> would you like to help me
> >>
> >> there are example use hashTable, treeMap, AbstractMap,
> >> ozoneObject.
> >> what different of them?
> >> and if i will create user account database, what of them
> >> can i use it????
> >
> > Assuming you have created your own user management
> >structure and each user is
> > an OzoneCompatible the following would apply:
> >
> > If the total number of users are less tan a couple of
> >thousand then any
> > standard Map implementation is fine.
> >
> > If the total number of users might be bigger than that
> >you should consider
> > looking at the (still experimental) persistant
> >collections module.
> >
> > If you are using the User object in Ozone things are
> >slightly different since
> > a User is a plain serializable and hence storing several
> >thousands of them in
> > a Memory-only Map is probably not a good idea (though it
> >might still be OK
> > since User is a pretty light-weight Object).
> >
> >> can i store a pic into ozone database??? can i use blog
> >>to
> >> implement it?
> >
> > Yes Blob would be a good choice. Small pictures can
> >alternatively be stored as
> > a byte[].
> >
> >> thanks
> >
> > Welcome,
> >
> > Per
> >
> >> ========================================================================
> >>=== ============= Akses Internet TELKOMNet-Instan beri Diskon
> >>s.d. 50 % khusus
> >> untuk wilayah Jawa Timur. Informasi selengkapnya di
> >>www.telkomnetinstan.com
> >> atau hub 0800-1-INSTAN (467826)
> >> ========================================================================
> >>=== =============
> >>
> >>
> >> -------------------------------------------------------
> >> SF email is sponsored by - The IT Product Guide
> >> Read honest & candid reviews on hundreds of IT Products
> >>from real users.
> >> Discover which products truly live up to the hype. Start
> >>reading now.
> >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >> _______________________________________________
> >> Ozone-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/ozone-users
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products
> >from real users.
> > Discover which products truly live up to the hype. Start
> >reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Ozone-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ozone-users
>
> ===========================================================================
>============= Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus
> untuk wilayah Jawa Timur. Informasi selengkapnya di www.telkomnetinstan.com
> atau hub 0800-1-INSTAN (467826)
> ===========================================================================
>=============
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Ozone-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ozone-users
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click