Are there any databases that can store multidiimensional boolean arrays?
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Tue, 4 Jul 2006 10:44:38 -0400
I'm helping someone on another newsgroup but I need to know something. This
person wants to store a four dimensional boolean array, i.e.
boolean[][][][], in a column of a database. There are 53,000 entries in a
single occurrence of this array and they wan to store over 200,000 instances
of the array, one in each row of the table.
Ideally, that array could be stored as an Object of type boolean[][][][]:
then the user wouldn't have to turn it into something else for storage and
then convert it back when reading it. Are there any databases that can do
that? Or would I inevitably have to convert this array into a simpler object
like a String to store it? For example, it wouldn't be hard to convert this
boolean array:
boolean[] myArray = {true, false, true};
to a String like this:
String myString = "TFT"; //T=true; F=false
I know that JDBC has setObject() and getObject() methods but I'm really not
clear on how they are used, even after reading the API. It appears that I
still have to identify the object as one of the standard java.sql.Type
values and boolean[][][][] is NOT a standard java.sql.Type!
Can anyone shed some light on this for me?
--
Rhino
.
- Follow-Ups:
- Re: Are there any databases that can store multidiimensional boolean arrays?
- From: Robert Klemme
- Re: Are there any databases that can store multidiimensional boolean arrays?
- Prev by Date: Re: How to access a MySQL database from Java code?
- Next by Date: Re: Are there any databases that can store multidiimensional boolean arrays?
- Previous by thread: How to access a MySQL database from Java code?
- Next by thread: Re: Are there any databases that can store multidiimensional boolean arrays?
- Index(es):
Relevant Pages
|
|