ksh agarwal wrote:
Ohh..sorry...this is my code basically:
Example: Writing CLOB Data
Use the setCharacterStream method or the setAsciiStream method to write data to a CLOB. The setCharacterStream method returns a Unicode output stream. The setAsciiStream method returns an ASCII output stream.
The following example reads a vector of data into a character array, then uses the setCharacterStream method to write the array of character data to a CLOB.
java.io.Writer writer;
// read data into a character array
char[] data = {'0','1','2','3','4','5','6','7','8','9'};
// write the array of character data to a Clob
writer = ((CLOB)my_clob).setCharacterStream();
writer.write(data);
writer.flush();
writer.close();
...
The next example reads a vector of data into a byte array, then uses the setAsciiStream method to write the array of ASCII data to a CLOB.
java.io.OutputStream out;
// read data into a byte array
byte[] data = {'0','1','2','3','4','5','6','7','8','9'};
// write the array of ascii data to a CLOB
out = clob.setAsciiStream();
out.write(data);
out.flush();
out.close();
Punit Jain wrote:
To be short and precise..
where can i see my created databases in derby, in my system???
i have added derby to my eclipse plugins, and then i created one database, where can i see that database file??
Riaan Nel wrote:My question relates specifically to how one can store an enum value on persisted data. Yes, the gender field could be of type Gender, but if you tried to write that away to SQL (using JDBC for instance), your database will have no idea what the Gender type is.
Sagar Dumbre wrote:
Any Other way to achieve the same ?
Bob Grossman wrote:
The code that actually calls the database, tryUpdate(), is:
so
What am I doing wrong?
Red Ronin wrote:
Is this fast enough? Other comments? Thankx in advance!
Rajesh Nagaraju wrote:In the below link,
http://docs.oracle.com/javase/tutorial/essential/concurrency/atomic.html
there is a sentence
Reads and writes are atomic for reference variables and for most primitive variables (all types except long and double).
Can some one be kind enough to tell me why is there a exception to long and double primitive data types.
naved momin wrote:
if you look at the out put carefully and code you will find that value of this.name changes whenever hashmap put's or get's the value thats the only thing left here i m not getting
can any one explain ?