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

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

Best Java code snippets using org.postgresql.core.Field.getOID (Showing top 20 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 the OID of a field. It is used internally by the driver.
 *
 * @param field field index
 * @return OID of a field
 */
public int getColumnOID(int field) {
 return fields[field - 1].getOID();
}
origin: org.postgresql/postgresql

/**
 * Returns true if the specified field should be retrieved using binary encoding.
 *
 * @param field The field whose Oid type to analyse.
 * @return True if {@link Field#BINARY_FORMAT} should be used, false if
 *         {@link Field#BINARY_FORMAT}.
 */
private boolean useBinary(Field field) {
 int oid = field.getOID();
 return useBinaryForReceive(oid);
}
origin: postgresql/postgresql

protected String getPGType( int column ) throws SQLException
{
  return connection.getTypeInfo().getPGType(fields[column - 1].getOID());
}
origin: postgresql/postgresql

public Array createArray(int i) throws SQLException
{
  checkResultSet(i);
  int oid = fields[i - 1].getOID();
  String value = getFixedString(i);
  return new Jdbc4Array(connection, oid, value);
}
origin: org.postgresql/postgresql

protected int getSQLType(int columnIndex) throws SQLException {
 return connection.getTypeInfo().getSQLType(getField(columnIndex).getOID());
}
origin: org.postgresql/postgresql

/**
 * {@inheritDoc}
 *
 * <p>Is the column a signed number? In PostgreSQL, all numbers are signed, so this is trivial.
 * However, strings are not signed (duh!)
 *
 * @param column the first column is 1, the second is 2...
 * @return true if so
 * @exception SQLException if a database access error occurs
 */
public boolean isSigned(int column) throws SQLException {
 Field field = getField(column);
 return connection.getTypeInfo().isSigned(field.getOID());
}
origin: org.postgresql/postgresql

protected String getPGType(int columnIndex) throws SQLException {
 return connection.getTypeInfo().getPGType(getField(columnIndex).getOID());
}
origin: postgresql/postgresql

public boolean isSigned(int column) throws SQLException
{
  Field field = getField(column);
  return connection.getTypeInfo().isSigned(field.getOID());
}
origin: org.postgresql/postgresql

/**
 * {@inheritDoc}
 *
 * <p>Does a column's case matter? ASSUMPTION: Any field that is not obviously case insensitive is
 * assumed to be case sensitive
 *
 * @param column the first column is 1, the second is 2...
 * @return true if so
 * @exception SQLException if a database access error occurs
 */
public boolean isCaseSensitive(int column) throws SQLException {
 Field field = getField(column);
 return connection.getTypeInfo().isCaseSensitive(field.getOID());
}
origin: postgresql/postgresql

public boolean isCaseSensitive(int column) throws SQLException
{
  Field field = getField(column);
  return connection.getTypeInfo().isCaseSensitive(field.getOID());
}
origin: postgresql/postgresql

protected int getSQLType(int columnIndex) throws SQLException
{
  return connection.getTypeInfo().getSQLType(getField(columnIndex).getOID());
}
origin: org.postgresql/postgresql

public int getScale(int column) throws SQLException {
 Field field = getField(column);
 return connection.getTypeInfo().getScale(field.getOID(), field.getMod());
}
origin: postgresql/postgresql

public int getScale(int column) throws SQLException
{
  Field field = getField(column);
  return connection.getTypeInfo().getScale(field.getOID(), field.getMod());
}
origin: org.postgresql/postgresql

public int getColumnDisplaySize(int column) throws SQLException {
 Field field = getField(column);
 return connection.getTypeInfo().getDisplaySize(field.getOID(), field.getMod());
}
origin: org.postgresql/postgresql

public int getPrecision(int column) throws SQLException {
 Field field = getField(column);
 return connection.getTypeInfo().getPrecision(field.getOID(), field.getMod());
}
origin: postgresql/postgresql

public int getPrecision(int column) throws SQLException
{
  Field field = getField(column);
  return connection.getTypeInfo().getPrecision(field.getOID(), field.getMod());
}
origin: postgresql/postgresql

public int getColumnDisplaySize(int column) throws SQLException
{
  Field field = getField(column);
  return connection.getTypeInfo().getDisplaySize(field.getOID(), field.getMod());
}
origin: org.postgresql/postgresql

public java.sql.Array getArray(int i) throws SQLException {
 checkResultSet(i);
 if (wasNullFlag) {
  return null;
 }
 int oid = fields[i - 1].getOID();
 if (isBinary(i)) {
  return makeArray(oid, this_row[i - 1]);
 }
 return makeArray(oid, getFixedString(i));
}
origin: postgresql/postgresql

public synchronized void updateNull(int columnIndex)
throws SQLException
{
  checkColumnIndex(columnIndex);
  String columnTypeName = connection.getTypeInfo().getPGType(fields[columnIndex - 1].getOID());
  updateValue(columnIndex, new NullObject(columnTypeName));
}
origin: org.postgresql/postgresql

private void initSqlType(Field field) throws SQLException {
 if (field.isTypeInitialized()) {
  return;
 }
 TypeInfo typeInfo = connection.getTypeInfo();
 int oid = field.getOID();
 String pgType = typeInfo.getPGType(oid);
 int sqlType = typeInfo.getSQLType(pgType);
 field.setSQLType(sqlType);
 field.setPGType(pgType);
}
org.postgresql.coreFieldgetOID

Popular methods of Field

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Kernel (java.awt.image)
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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