Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Fields of type java.io.InputStream
Fields of type java.io.InputStream [message #382513] Mon, 13 October 2008 14:11 Go to next message
Frank Schwarz is currently offline Frank SchwarzFriend
Messages: 26
Registered: July 2009
Location: Dresden
Junior Member
Hi,

is it possible to have a persistent field of type InputStream mapped to a
CLOB database column?

Kind regards,
Frank
Re: Fields of type java.io.InputStream [message #382517 is a reply to message #382513] Mon, 13 October 2008 14:59 Go to previous messageGo to next message
Frank Schwarz is currently offline Frank SchwarzFriend
Messages: 26
Registered: July 2009
Location: Dresden
Junior Member
> is it possible to have a persistent field of type InputStream mapped to a
> CLOB database column?

Minor correction: A BLOB column, of course!

-- Frank
Re: Fields of type java.io.InputStream [message #382520 is a reply to message #382517] Tue, 14 October 2008 14:32 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Not really,
You should be able to map a java.sql.Blob as an attribute type, and
get a stream for it. However be careful in doing so, as a Blob requires a
live connection, and cannot be detached. If the Blob is too big to be
read, you may consider dealing with it directly through JDBC or a native
query, not mapping it to your object model.

-- James
http://www.nabble.com/EclipseLink---Users-f26658.html


James : Wiki : Book : Blog : Twitter
Previous Topic:Content provider with a long loading time
Next Topic:JPA QL Question
Goto Forum:
  


Current Time: Sat Apr 27 00:44:19 GMT 2024

Powered by FUDForum. Page generated in 0.03136 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top