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

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

Best Java code snippets using org.postgresql.core.Field.getColumnLabel (Showing top 8 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

public static Map<String, Integer> createColumnNameIndexMap(Field[] fields,
  boolean isSanitiserDisabled) {
 Map<String, Integer> columnNameIndexMap = new HashMap<String, Integer>(fields.length * 2);
 // The JDBC spec says when you have duplicate columns names,
 // the first one should be returned. So load the map in
 // reverse order so the first ones will overwrite later ones.
 for (int i = fields.length - 1; i >= 0; i--) {
  String columnLabel = fields[i].getColumnLabel();
  if (isSanitiserDisabled) {
   columnNameIndexMap.put(columnLabel, i + 1);
  } else {
   columnNameIndexMap.put(columnLabel.toLowerCase(Locale.US), i + 1);
  }
 }
 return columnNameIndexMap;
}
origin: org.postgresql/postgresql

public String getColumnLabel(int column) throws SQLException {
 Field field = getField(column);
 return field.getColumnLabel();
}
origin: postgresql/postgresql

public String getColumnLabel(int column) throws SQLException
{
  Field field = getField(column);
  return field.getColumnLabel();
}
origin: postgresql/postgresql

private int findColumnIndex(String columnName)
{
  if (columnNameIndexMap == null)
  {
    columnNameIndexMap = new HashMap(fields.length * 2);
    // The JDBC spec says when you have duplicate columns names,
    // the first one should be returned.  So load the map in
    // reverse order so the first ones will overwrite later ones.
    for (int i = fields.length - 1; i >= 0; i--)
    {
      columnNameIndexMap.put(fields[i].getColumnLabel().toLowerCase(Locale.US), new Integer(i + 1));
    }
  }
  Integer index = (Integer)columnNameIndexMap.get(columnName);
  if (index != null)
  {
    return index.intValue();
  }
  index = (Integer)columnNameIndexMap.get(columnName.toLowerCase(Locale.US));
  if (index != null)
  {
    columnNameIndexMap.put(columnName, index);
    return index.intValue();
  }
  return 0;
}
origin: org.ancoron.postgresql/org.postgresql

public String getColumnLabel(int column) throws SQLException
{
  Field field = getField(column);
  return field.getColumnLabel();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public String getColumnLabel(int column) throws SQLException
{
  Field field = getField(column);
  return field.getColumnLabel();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private int findColumnIndex(String columnName)
{
  if (columnNameIndexMap == null)
  {
    columnNameIndexMap = new HashMap(fields.length * 2);
    // The JDBC spec says when you have duplicate columns names,
    // the first one should be returned.  So load the map in
    // reverse order so the first ones will overwrite later ones.
    for (int i = fields.length - 1; i >= 0; i--)
    {
      columnNameIndexMap.put(fields[i].getColumnLabel().toLowerCase(Locale.US), new Integer(i + 1));
    }
  }
  Integer index = (Integer)columnNameIndexMap.get(columnName);
  if (index != null)
  {
    return index.intValue();
  }
  index = (Integer)columnNameIndexMap.get(columnName.toLowerCase(Locale.US));
  if (index != null)
  {
    columnNameIndexMap.put(columnName, index);
    return index.intValue();
  }
  return 0;
}
origin: org.ancoron.postgresql/org.postgresql

private int findColumnIndex(String columnName)
{
  if (columnNameIndexMap == null)
  {
    columnNameIndexMap = new HashMap(fields.length * 2);
    // The JDBC spec says when you have duplicate columns names,
    // the first one should be returned.  So load the map in
    // reverse order so the first ones will overwrite later ones.
    for (int i = fields.length - 1; i >= 0; i--)
    {
      columnNameIndexMap.put(fields[i].getColumnLabel().toLowerCase(Locale.US), new Integer(i + 1));
    }
  }
  Integer index = (Integer)columnNameIndexMap.get(columnName);
  if (index != null)
  {
    return index.intValue();
  }
  index = (Integer)columnNameIndexMap.get(columnName.toLowerCase(Locale.US));
  if (index != null)
  {
    columnNameIndexMap.put(columnName, index);
    return index.intValue();
  }
  return 0;
}
org.postgresql.coreFieldgetColumnLabel

Popular methods of Field

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

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JLabel (javax.swing)
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