You can save null values with custom SQL queries. (e.g. UPDATE mytable set somecol=NULL where somekey='val')
I believe you're correct that the Row interface won't return null values. getInteger()/getLong() etc should just return zero in these cases. Steve On Tue, May 24, 2016 at 1:32 AM, Jérémy MARQUER <[email protected]> wrote: > Hi, > > I'm facing to a problem with load/read data in database. In case of > integer or long column type, we can't find/update/save object with null > values since these methods return primitive types : > /** > * Gets column value by index. > * > * @param index starts with zero > * @return a int data from the database > * @throws IOException > */ > public int getInteger(int index)throws IOException; > > > /** > * Gets column value by index. > * > * @param index starts with zero > * @return a long data from the database > * @throws IOException > */ > public long getLong(int index)throws IOException; > > > I absolutely need to save null value in my database. > > FYI, I use cn1-data-lib-access shannah's library. > > Thanks. > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA > Desktop OS > Simulator > Device > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at > https://groups.google.com/group/codenameone-discussions. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/2fb942eb-aec7-40a1-902a-d20e5781ce43%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/2fb942eb-aec7-40a1-902a-d20e5781ce43%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKU8M%2BBKAM_%3DYHgpS%3DCCzT_c_MuS9n22C%2BqOLeo4RMg3HA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
