Codota Logo
AbstractJdbc2ResultSet.trimString
Code IndexAdd Codota to your IDE (free)

How to use
trimString
method
in
org.postgresql.jdbc2.AbstractJdbc2ResultSet

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2ResultSet.trimString (Showing top 3 results out of 315)

  • Common ways to obtain AbstractJdbc2ResultSet
private void myMethod () {
AbstractJdbc2ResultSet a =
  • Codota IconPreparedStatement preparedStatement;(AbstractJdbc2ResultSet) preparedStatement.executeQuery()
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public String getString(int columnIndex) throws SQLException
{
  checkResultSet( columnIndex );
  if (wasNullFlag)
    return null;
  Encoding encoding = connection.getEncoding();
  try
  {
    return trimString(columnIndex, encoding.decode(this_row[columnIndex - 1]));
  }
  catch (IOException ioe)
  {
    throw new PSQLException(GT.tr("Invalid character data was found.  This is most likely caused by stored data containing characters that are invalid for the character set the database was created in.  The most common example of this is storing 8bit data in a SQL_ASCII database."), PSQLState.DATA_ERROR, ioe);
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public String getString(int columnIndex) throws SQLException
{
  checkResultSet( columnIndex );
  if (wasNullFlag)
    return null;
  Encoding encoding = connection.getEncoding();
  try
  {
    return trimString(columnIndex, encoding.decode(this_row[columnIndex - 1]));
  }
  catch (IOException ioe)
  {
    throw new PSQLException(GT.tr("Invalid character data was found.  This is most likely caused by stored data containing characters that are invalid for the character set the database was created in.  The most common example of this is storing 8bit data in a SQL_ASCII database."), PSQLState.DATA_ERROR, ioe);
  }
}
origin: org.ancoron.postgresql/org.postgresql

public String getString(int columnIndex) throws SQLException
{
  checkResultSet( columnIndex );
  if (wasNullFlag)
    return null;
  Encoding encoding = connection.getEncoding();
  try
  {
    return trimString(columnIndex, encoding.decode(this_row[columnIndex - 1]));
  }
  catch (IOException ioe)
  {
    throw new PSQLException(GT.tr("Invalid character data was found.  This is most likely caused by stored data containing characters that are invalid for the character set the database was created in.  The most common example of this is storing 8bit data in a SQL_ASCII database."), PSQLState.DATA_ERROR, ioe);
  }
}
org.postgresql.jdbc2AbstractJdbc2ResultSettrimString

Popular methods of AbstractJdbc2ResultSet

  • absolute
  • addWarning
  • afterLast
  • beforeFirst
  • checkClosed
  • checkColumnIndex
  • checkResultSet
    Checks that the result set is not closed, it's positioned on a valid row and that the given column n
  • checkScrollable
  • checkUpdateable
  • clearRowBuffer
  • close
  • createArray
  • close,
  • createArray,
  • findColumn,
  • findColumnIndex,
  • getArray,
  • getAsciiStream,
  • getBigDecimal,
  • getBinaryStream,
  • getBlob,
  • getBoolean

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now