Moving on from the reason for the change that is outlined below I need to
fix the code that access what was previously returned as a String class and
is now returned as a byte array.
When the Peers write a String into a BLOB what encoding is used. To be able
to create the String from th ebytwe array I need to know the encoding used
during the wrting of the string into the BLOB.
In other words I figure I can do somethign like replace the statement shown
below in th eoriginal emial with somethign like
String aQuery=new String(aView.getQuery(), "ISO-8859-1");
Sound OK?
David
-----Original Message-----
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 11:48
To: Turbine-User
Subject: Problem with getting 4000 byte String from Peer
Hi,
I have a Turbine application that worked, and now, suddenly it doesn't.
I have the following line in my schema.xml file
<column name="query" size="4000" type="VARCHAR"/>
the peers etc. generate fine against a Oracle database.
I have the following line in my a class that uses with entity containing the
colun above
RwView aView=RwViewPeer.retrieveByPK(aViewKey);
String aQuery=aView.getQuery(); <----- at line 438
I get this error when i try to compile.
"TransformControl.java": Error #: 354 : incompatible types; found: byte[],
required: java.lang.String at line 438, column 45
I must have regenerated the Peers at some time using ant.
My question is: when did the templates change from returning a CString to
returning a byte array?
Thanks
David Wynter
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
[EMAIL PROTECTED]
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>