The forum is currently being migrated to a new host. While the migration happens, the old server is still available. Once the new machine is ready, I will copy the database to the new machine. Feel free to ask and answer questions in the meantime.

Hi,

I've been using UltraliteJ for Android and trying to get and set a unsigned long value to my table from java, through the method set(int, DecimalNumber), but I don't know how can I use this interface to do it. There are some methods to implement, but how can I do it? Could anyone help me?

asked 11 May '12, 15:35

marcelopaparelli's gravatar image

marcelopapar...
61348
accept rate: 0%


I would use Connection.createDecimalNumber(20, 0, "18446744073709551615") to create a DecimalNumber object for the maximum unsigned bigint value. By retrieving unsigned bigint's as DecimalNumber's you can perform arithmetic operations with them. If you are simply setting and getting unsigned bigint values, without needing to do arithmetic operations, you could just set and retrieve them as String's.

permanent link

answered 11 May '12, 16:23

Andy%20Quick's gravatar image

Andy Quick
2.2k2737
accept rate: 45%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×70
×29
×14

question asked: 11 May '12, 15:35

question was seen: 1,621 times

last updated: 11 May '12, 16:23