Codota Logo
Field.getFormat
Code IndexAdd Codota to your IDE (free)

How to use
getFormat
method
in
org.postgresql.core.Field

Best Java code snippets using org.postgresql.core.Field.getFormat (Showing top 9 results out of 315)

  • Common ways to obtain Field
private void myMethod () {
Field f =
  • Codota IconString str;new Field(str, oid)
  • Codota IconString str;String columnName;new Field(str, columnName, oid, length, mod, int1, int2)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

/**
 * Returns true if the value of the given column is in binary format.
 *
 * @param column The column to check. Range starts from 1.
 * @return True if the column is in binary format.
 */
protected boolean isBinary(int column) {
 return fields[column - 1].getFormat() == Field.BINARY_FORMAT;
}
origin: org.postgresql/postgresql

public int getFormat(int column) throws SQLException {
 return getField(column).getFormat();
}
origin: postgresql/postgresql

case Types.LONGVARBINARY:
case Types.VARBINARY:
  if (fields[columnIndex].getFormat() == Field.BINARY_FORMAT) {
    rowBuffer[columnIndex] = (byte[]) valueObject;
  } else {
origin: org.postgresql/postgresql

 if (field.getFormat() != Field.TEXT_FORMAT) {
  field.setFormat(Field.TEXT_FORMAT);
pgStream.sendInteger2(fields[i].getFormat());
origin: postgresql/postgresql

  return null;
if (fields[columnIndex - 1].getFormat() == Field.BINARY_FORMAT)
origin: org.ancoron.postgresql/org.postgresql

case Types.LONGVARBINARY:
case Types.VARBINARY:
  if (fields[columnIndex].getFormat() == Field.BINARY_FORMAT) {
    rowBuffer[columnIndex] = (byte[]) valueObject;
  } else {
origin: org.ancoron.postgresql/org.postgresql.osgi

case Types.LONGVARBINARY:
case Types.VARBINARY:
  if (fields[columnIndex].getFormat() == Field.BINARY_FORMAT) {
    rowBuffer[columnIndex] = (byte[]) valueObject;
  } else {
origin: org.ancoron.postgresql/org.postgresql

  return null;
if (fields[columnIndex - 1].getFormat() == Field.BINARY_FORMAT)
origin: org.ancoron.postgresql/org.postgresql.osgi

  return null;
if (fields[columnIndex - 1].getFormat() == Field.BINARY_FORMAT)
org.postgresql.coreFieldgetFormat

Popular methods of Field

  • <init>
  • getColumnLabel
  • getMod
  • getOID
  • getTableOid
  • setFormat
  • getAutoIncrement
  • getColumnName
  • getNullable
  • getPositionInTable
  • getSchemaName
  • getTableName
  • getSchemaName,
  • getTableName,
  • setAutoIncrement,
  • setColumnName,
  • setNullable,
  • setSchemaName,
  • setTableName,
  • getLength,
  • getMetadata

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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