Updating image data in the database  Using Date and Time datatypes

Chapter 2: Programming Information

Using text data

In earlier versions, jConnect used a TextPointer class with sendData( ) methods for updating a text column in an Adaptive Server or Adaptive Server Anywhere database.

The TextPointer class has been deprecated; that is, it is no longer recommended and may cease to exist in a future version of Java.

If your data server is Adaptive Server 12.5 or later or Adaptive Server Anywhere version 6.0 or later, use the standard JDBC form to send text data:

PreparedStatement.setAsciiStream(int paramIndex,
  InputStream text, int length)

or

PreparedStatement.setUnicodeStream(int paramIndex,
  InputStream text, int length)

or

PreparedStatement.setCharacterStream(int paramIndex,
  Reader reader, int length)




Copyright © 2003. Sybase Inc. All rights reserved. Using Date and Time datatypes

View this book as PDF