Re: [Waba-spec] The registry, etc.
Status: Abandoned
Brought to you by:
bornet
From: Guilherme C. H. <gu...@us...> - 2001-10-17 21:31:28
|
> Serialization is a LARGE addition to the VM, both in terms of VM support > underneath, and in terms of supporting Java classes. That's why, for > example, that the CLDC doesn't support it. I think we should think very > hard whether or not the advantages of the feature (which I use heavily > in "real" Java programs) outweigh its significant disadvantages in terms > of majorly bloating the system. I already did a function that does serialization in SW (but it didnt worked :-) ). It receives an object and stores all primitive/String types. We could use something like that. > But that's why they're *Palm* programs! If you want to run on other > platforms without being modified, use the Registry class and/or a > Database class replacement of some sort. Sean (and all), this is really out of discussion. There is *no* other options for storage in PalmOS. If the spec decides that it should be moved, SW will not implement that decision. > Record attributes are a Palm thing, ar they not? What kind of > general-purpose "attributes" are you thinking of? I can still be > convinced. /** Read Only database */ public static final int DB_ATTR_READ_ONLY = 0x0002; /** Set if Application Info block is dirty. Optionally supported by an App's conduit */ public static final int DB_ATTR_APPINFODIRTY = 0x0004; /** Set if database should be backed up to PC if no app-specific synchronization conduit has been supplied. */ public static final int DB_ATTR_BACKUP = 0x0008; /** This tells the backup conduit that it's OK for it to install a newer version of this database with a different name if the current database is open. This mechanism is used to update the Graffiti Shortcuts database, for example. */ public static final int DB_ATTR_OK_TO_INSTALL_NEWER = 0x0010; /** Device requires a reset after this database is installed. */ public static final int DB_ATTR_RESET_AFTER_INSTALL = 0x0020; /** This database should not be copied to */ public static final int DB_ATTR_COPY_PREVENTION = 0x0040; /** This database is used for file stream implementation. This attribute may not be used. */ public static final int DB_ATTR_STREAM = 0x0080; /** Record atribute: Deleted */ public static final byte REC_ATTR_DELETE = (byte)0x80; /** Record atribute: Dirty (has been modified since last sync) */ public static final byte REC_ATTR_DIRTY = (byte)0x40; /** Record atribute: Private */ public static final byte REC_ATTR_SECRET = (byte)0x10; regards guich |