congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ParameterList.setNull
Code IndexAdd Tabnine to your IDE (free)

How to use
setNull
method
in
org.postgresql.core.ParameterList

Best Java code snippets using org.postgresql.core.ParameterList.setNull (Showing top 16 results out of 315)

origin: postgresql/postgresql

  void populateParameter(ParameterList params, int index) throws SQLException {
    if (bytes == null)
      params.setNull(index, 0);
    else
      params.setBytea(index, bytes, bytesStart, bytesLength);
  }
}
origin: org.postgresql/postgresql

 void populateParameter(ParameterList params, int index) throws SQLException {
  if (bytes == null) {
   params.setNull(index, 0);
  } else {
   params.setBytea(index, bytes, bytesStart, bytesLength);
  }
 }
}
origin: org.postgresql/postgresql

protected void setString(int parameterIndex, String x, int oid) throws SQLException {
 // if the passed string is null, then set this column to null
 checkClosed();
 if (x == null) {
  preparedParameters.setNull(parameterIndex, oid);
 } else {
  bindString(parameterIndex, x, oid);
 }
}
origin: postgresql/postgresql

protected void setString(int parameterIndex, String x, int oid) throws SQLException
{
  // if the passed string is null, then set this column to null
  checkClosed();
  if (x == null)
  {
    if ( adjustIndex )
      parameterIndex--;   
    preparedParameters.setNull( parameterIndex, oid);
  }
  else
    bindString(parameterIndex, x, oid);
}
origin: postgresql/postgresql

public void setNull(int parameterIndex, int targetSqlType) throws SQLException
{
  checkClosed();
  int oid;
  switch (targetSqlType)
  {
    case Types.SQLXML:
      oid = Oid.XML;
      break;
    default:
      super.setNull(parameterIndex, targetSqlType);
      return;
  }
  if (adjustIndex)
    parameterIndex--;
  preparedParameters.setNull(parameterIndex, oid);
}
origin: org.postgresql/postgresql

public void setNull(int parameterIndex, int t, String typeName) throws SQLException {
 if (typeName == null) {
  setNull(parameterIndex, t);
  return;
 }
 checkClosed();
 TypeInfo typeInfo = connection.getTypeInfo();
 int oid = typeInfo.getPGType(typeName);
 preparedParameters.setNull(parameterIndex, oid);
}
origin: org.postgresql/postgresql

preparedParameters.setNull(parameterIndex, oid);
origin: postgresql/postgresql

preparedParameters.setNull( parameterIndex, oid);
origin: org.ancoron.postgresql/org.postgresql

  void populateParameter(ParameterList params, int index) throws SQLException {
    if (bytes == null)
      params.setNull(index, 0);
    else
      params.setBytea(index, bytes, bytesStart, bytesLength);
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

  void populateParameter(ParameterList params, int index) throws SQLException {
    if (bytes == null)
      params.setNull(index, 0);
    else
      params.setBytea(index, bytes, bytesStart, bytesLength);
  }
}
origin: org.ancoron.postgresql/org.postgresql

protected void setString(int parameterIndex, String x, int oid) throws SQLException
{
  // if the passed string is null, then set this column to null
  checkClosed();
  if (x == null)
  {
    if ( adjustIndex )
      parameterIndex--;   
    preparedParameters.setNull( parameterIndex, oid);
  }
  else
    bindString(parameterIndex, x, oid);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

protected void setString(int parameterIndex, String x, int oid) throws SQLException
{
  // if the passed string is null, then set this column to null
  checkClosed();
  if (x == null)
  {
    if ( adjustIndex )
      parameterIndex--;   
    preparedParameters.setNull( parameterIndex, oid);
  }
  else
    bindString(parameterIndex, x, oid);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void setNull(int parameterIndex, int targetSqlType) throws SQLException
{
  checkClosed();
  int oid;
  switch (targetSqlType)
  {
    case Types.SQLXML:
      oid = Oid.XML;
      break;
    default:
      super.setNull(parameterIndex, targetSqlType);
      return;
  }
  if (adjustIndex)
    parameterIndex--;
  preparedParameters.setNull(parameterIndex, oid);
}
origin: org.ancoron.postgresql/org.postgresql

public void setNull(int parameterIndex, int targetSqlType) throws SQLException
{
  checkClosed();
  int oid;
  switch (targetSqlType)
  {
    case Types.SQLXML:
      oid = Oid.XML;
      break;
    default:
      super.setNull(parameterIndex, targetSqlType);
      return;
  }
  if (adjustIndex)
    parameterIndex--;
  preparedParameters.setNull(parameterIndex, oid);
}
origin: org.ancoron.postgresql/org.postgresql

preparedParameters.setNull( parameterIndex, oid);
origin: org.ancoron.postgresql/org.postgresql.osgi

preparedParameters.setNull( parameterIndex, oid);
org.postgresql.coreParameterListsetNull

Javadoc

Binds a SQL NULL value to a parameter. Associated with the parameter is a typename for the parameter that should correspond to an entry in pg_types.

Popular methods of ParameterList

  • clear
    Unbind all parameter values bound in this list.
  • copy
    Perform a shallow copy of this ParameterList, returning a new instance (still suitable for passing t
  • getInParameterCount
    Get the number of IN parameters in this list.
  • getOutParameterCount
    Get the number of OUT parameters in this list.
  • getParameterCount
    Get the number of parameters in this list. This value never changes for a particular instance, and m
  • getTypeOIDs
    Return the oids of the parameters in this list. May be null for a ParameterList that does not suppor
  • registerOutParameter
  • setBytea
    Binds a binary bytea value stored as a bytearray to a parameter. The parameter's type is implicitly
  • setLiteralParameter
    Binds a String value that is an unquoted literal to the server's query parser (for example, a bare i
  • setStringParameter
    Binds a String value that needs to be quoted for the server's parser to understand (for example, a t
  • toString
    Return a human-readable representation of a particular parameter in this ParameterList. If the param
  • appendAll
    Use this operation to append more parameters to the current list.
  • toString,
  • appendAll,
  • setBinaryParameter,
  • setText

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Notification (javax.management)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now