Re: [enhydra] How set null value to integer or long DB field in DODS

João Paulo Ribeiro <[email protected]> Fri, 05 Aug 2005 17:59:23 +0100
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1123261189-26505-156
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi!<br>
<br>
I dont know a way to this with DODS using int and long&nbsp; java primitive
types.<br>
If you really need to set and get a value of null for fields of type
INTEGER or BIGINT use the java Object wrappers Integer and Long instead
of the primitive types.<br>
I hope this help.<br>
<br>
Best regards.<br>
Jo&atilde;o Paulo Ribeiro<br>
<br>
<br>
Daniel Guryca wrote:
<blockquote cite="[email protected]" type="cite">I have a
problem with setting DB field which is of type INTEGER or BIGINT.
  <br>
  <br>
It is imposible to set this field with DO object to null value. (0 is
saved instead of null) - because it accepts java int (long) types only.
  <br>
It is also imposible to get null value from this field. (0 is return) -
because it gets java int (long) types only.
  <br>
  <br>
So is there a way how to set or get a value of null for DB fields of
type INTEGER or BIGINT?
  <br>
  <br>
Thank you for your help.
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">

--
You receive this message as a subscriber of the <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> mailing list.
To unsubscribe: <a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>
For general help: <a class="moz-txt-link-freetext" href="mailto:[email protected]?subject=help">mailto:[email protected]?subject=help</a>
ObjectWeb mailing lists service home page: <a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws">http://www.objectweb.org/wws</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Jo&atilde;o Paulo Ribeiro | Senior Software Engineer
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>

PHONE: + 351 253 305 250 
FAX  : + 351 253 305 250
<a class="moz-txt-link-abbreviated" href="http://www.mobicomp.com">www.mobicomp.com</a>
 
________________________________________________________________

About Solutions | Wireless World

CONFIDENTIALITY NOTICE: This message, as well as existing attached files, is confidential and intended exclusively for the individual(s) named as addressees. If you are not the intended recipient, you are kindly requested not to make any use whatsoever of its contents and to proceed to the destruction of the message, thereby notifying the sender. 
DISCLAIMER: The sender of this message can not ensure the security of its electronic transmission and consequently does not accept liability for any fact which may interfere with the integrity of its content.</pre>
</body>
</html>


------------=_1123261189-26505-156
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1123261189-26505-156--