Re: [Waba-spec] "Common File System or Database format" : need to make decisions
Status: Abandoned
Brought to you by:
bornet
From: Guilherme H. <gu...@us...> - 2001-10-17 15:27:35
|
Hi, >> - move the Catalog class to the Palm platform specific branch. This mean it's available for the Palm implementation, but not necessary for others. << Disagree. Catalog must be implemented in all platforms. Otherwise, no Palm programs will able to run other platforms without being modified. >> - take http://waba.sourceforge.net/javadoc/waba/io/CatalogSeanLuke.html for the base of the discussion when the topic "Catalog class" will come. << Does this make sense in other platforms too? /** Retrieves the attributes of the current record. Use the REC_ATTR_xxx masks to set/retrieve its states. @returns 0 if db dont exists @since 2.0 */ public byte getRecordAttributes() { return NativeMethods.nm.catalogGetRecordAttributes(this); } /** Sets the attributes of the current record. Use the REC_ATTR_xxx masks to set/retrieve its states. @since 2.0 */ public void setRecordAttributes(byte attr) { NativeMethods.nm.catalogSetRecordAttributes(this, attr); } /** Retrieves this catalog's attributes. Use the DB_ATTR_xxx masks to retrieve its states. @returns 0 if no current record @since 2.0 */ public int getAttributes() { return NativeMethods.nm.catalogGetAttributes(this); } /** Sets this catalog's attributes, defined by the DB_ATTR_xxx constants. The original attributes must be getted prior applying this value. If not, you can loose your database and your app will crash. @since 2.0 */ public void setAttributes(int i) { NativeMethods.nm.catalogSetAttributes(this, i); } ///////// guich: note this is a feature request, so it may be added. /** Returns the currect record position or -1 if there is no current record. @since SuperWaba2.0beta3 */ public int getRecordPos() { return NativeMethods.nm.catalogGetRecordPos(this); } regards |