Codota Logo
AbstractJdbc2Statement.checkIndex
Code IndexAdd Codota to your IDE (free)

How to use
checkIndex
method
in
org.postgresql.jdbc2.AbstractJdbc2Statement

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2Statement.checkIndex (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

private void checkIndex (int parameterIndex) throws SQLException
{
  checkIndex(parameterIndex, true);
}
origin: postgresql/postgresql

public short getShort(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.SMALLINT, "Short");
  if (callResult[parameterIndex-1] == null)
    return 0;
  return ((Integer)callResult[parameterIndex-1]).shortValue ();
}
origin: postgresql/postgresql

public Object getObject(int parameterIndex)
throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex);        
  return callResult[parameterIndex-1];
}
origin: postgresql/postgresql

public java.math.BigDecimal getBigDecimal(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.NUMERIC, "BigDecimal");
  return ((BigDecimal)callResult[parameterIndex-1]);
}
origin: postgresql/postgresql

public java.sql.Timestamp getTimestamp(int parameterIndex)
throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.TIMESTAMP, "Timestamp");
  return (java.sql.Timestamp)callResult[parameterIndex-1];
}
origin: postgresql/postgresql

public boolean getBoolean(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.BIT, "Boolean");
  if (callResult[parameterIndex-1] == null)
    return false;
  
  return ((Boolean)callResult[parameterIndex-1]).booleanValue ();
}
origin: postgresql/postgresql

public int getInt(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.INTEGER, "Int");
  if (callResult[parameterIndex-1] == null)
    return 0;
  
  return ((Integer)callResult[parameterIndex-1]).intValue ();
}
origin: postgresql/postgresql

public BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.NUMERIC, "BigDecimal");
  return ((BigDecimal)callResult[parameterIndex-1]);
}
origin: postgresql/postgresql

public java.sql.Date getDate(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.DATE, "Date");     
  return (java.sql.Date)callResult[parameterIndex-1];
}
origin: postgresql/postgresql

public double getDouble(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.DOUBLE, "Double");
  if (callResult[parameterIndex-1] == null)
    return 0;
  
  return ((Double)callResult[parameterIndex-1]).doubleValue ();
}
origin: postgresql/postgresql

public byte getByte(int parameterIndex) throws SQLException
{
  checkClosed();
  // fake tiny int with smallint
  checkIndex (parameterIndex, Types.SMALLINT, "Byte");
  
  if (callResult[parameterIndex-1] == null)
    return 0;
  
  return ((Integer)callResult[parameterIndex-1]).byteValue();
}
origin: postgresql/postgresql

public java.sql.Array getArray(int i) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.ARRAY, "Array");
  return (Array)callResult[i-1];
}
origin: postgresql/postgresql

public java.sql.Time getTime(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.TIME, "Time");
  return (java.sql.Time)callResult[parameterIndex-1];
}
origin: postgresql/postgresql

public float getFloat(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.REAL, "Float");
  if (callResult[parameterIndex-1] == null)
    return 0;
  return ((Float)callResult[parameterIndex-1]).floatValue ();
}
origin: postgresql/postgresql

public String getString(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.VARCHAR, "String");
  return (String)callResult[parameterIndex-1];
}
origin: postgresql/postgresql

public long getLong(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.BIGINT, "Long");
  if (callResult[parameterIndex-1] == null)
    return 0;
  
  return ((Long)callResult[parameterIndex-1]).longValue ();
}
origin: postgresql/postgresql

public byte[] getBytes(int parameterIndex) throws SQLException
{
  checkClosed();
  checkIndex (parameterIndex, Types.VARBINARY, Types.BINARY, "Bytes");
  return ((byte [])callResult[parameterIndex-1]);
}
origin: postgresql/postgresql

public java.sql.Date getDate(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.DATE, "Date");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toDate(cal, value);
}
origin: postgresql/postgresql

public Time getTime(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.TIME, "Time");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toTime(cal, value);
}
origin: postgresql/postgresql

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.TIMESTAMP, "Timestamp");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toTimestamp(cal, value);
}
org.postgresql.jdbc2AbstractJdbc2StatementcheckIndex

Javadoc

helperfunction for the getXXX calls to check isFunction and index == 1 Compare BOTH type fields against the return type.

Popular methods of AbstractJdbc2Statement

  • addWarning
    This adds a warning to the warning chain.
  • bindLiteral
  • bindString
  • checkClosed
  • clearWarnings
  • close
  • createInternalType
  • createResultSet
  • escapeFunction
    generate sql for escaped functions
  • execute
  • executeWithFlags
  • getLastOID
  • executeWithFlags,
  • getLastOID,
  • getObject,
  • getResultSet,
  • getUpdateCount,
  • modifyJdbcCall,
  • parseSql,
  • registerOutParameter,
  • replaceProcessing

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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