DataType.getSQLType
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.jooq.DataType.getSQLType (Showing top 11 results out of 315)

  • Common ways to obtain DataType
private void myMethod () {
DataType d =
  • Field field;field.getDataType()
  • Smart code suggestions by Codota
}
origin: org.jooq/jooq

@Override
public int getSQLType() {
  return delegate.getSQLType();
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public int getSQLType() {
  return delegate.getSQLType();
}
origin: com.torodb.torod.backends/common

public int getSQLType() {
  return dataType.getSQLType();
}
origin: org.jooq/jooq

@Override
public int getBaseType() {
  return DefaultDataType.getDataType(dialect, type.getComponentType()).getSQLType();
}
origin: org.jooq/jooq

@Override
public int getColumnType(int column) throws SQLException {
  rs.checkNotClosed();
  return rs.result.field(column - 1).getDataType().getSQLType();
}
origin: com.torodb.torod.backends/mysql

@Override
public int compare(Field o1, Field o2) {
  if (o1.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return 1;
  }
  if (o1.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return 1;
  }
  int i1 = sqlTypeOrder.indexOf(o1.getDataType().getSQLType());
  int i2 = sqlTypeOrder.indexOf(o2.getDataType().getSQLType());
  if (i1 == i2) {
    return o1.getName().compareTo(o2.getName());
  }
  if (i1 == -1) {
    return 1;
  }
  if (i2 == -1) {
    return -1;
  }
  return i1 - i2;
}
origin: com.torodb.torod.backends/postgresql

@Override
public int compare(Field o1, Field o2) {
  if (o1.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return 1;
  }
  if (o1.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return 1;
  }
  int i1 = sqlTypeOrder.indexOf(o1.getDataType().getSQLType());
  int i2 = sqlTypeOrder.indexOf(o2.getDataType().getSQLType());
  if (i1 == i2) {
    return o1.getName().compareTo(o2.getName());
  }
  if (i1 == -1) {
    return 1;
  }
  if (i2 == -1) {
    return -1;
  }
  return i1 - i2;
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public int getColumnType(int column) throws SQLException {
  rs.checkNotClosed();
  return rs.result.field(column - 1).getDataType().getSQLType();
}
origin: com.torodb.torod.backends/greenplum

@Override
public int compare(Field o1, Field o2) {
  if (o1.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.DID_COLUMN_NAME)) {
    return 1;
  }
  if (o1.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return -1;
  } else if (o2.getName().equals(SubDocTable.INDEX_COLUMN_NAME)) {
    return 1;
  }
  int i1 = sqlTypeOrder.indexOf(o1.getDataType().getSQLType());
  int i2 = sqlTypeOrder.indexOf(o2.getDataType().getSQLType());
  if (i1 == i2) {
    return o1.getName().compareTo(o2.getName());
  }
  if (i1 == -1) {
    return 1;
  }
  if (i2 == -1) {
    return -1;
  }
  return i1 - i2;
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

int sqlType = parameter.getDataType().getDataType(c).getSQLType();
origin: com.ning.billing/killbill-osgi-bundles-analytics

int sqlType = DefaultDataType.getDataType(dialect, type).getSQLType();
org.jooqDataTypegetSQLType

Javadoc

Get JDBC Types value.

Popular methods of DataType

  • nullable
    Return a new data type like this, with a new nullability. This is the same as calling #nullability(N
  • getTypeName
    Retrieve the dialect-specific type name associated with this data type.
  • getType
    Retrieve the Java type associated with this data type.
  • convert
    Convert an arbitrary set of objects into . See Convert#convert(Object,Class) for details about co
  • getSQLDataType
    Get the standard SQL data type of this (dialect-specific) data type if available.
  • hasLength
    Whether this data type has a length.
  • hasPrecision
    Whether this data type has a precision.
  • hasScale
    Whether this data type has a scale.
  • isNumeric
    Whether this data type is any numeric data type. This applies to any of these types: * SQLDataType#
  • length
    Return a new data type like this, with a new length value. This will have no effect if #hasLength()
  • precision
    Return a new data type like this, with a new precision and scale value. This will have no effect if
  • scale
    Return a new data type like this, with a new scale value. This will have no effect if #hasScale() is
  • precision,
  • scale,
  • getCastTypeName,
  • identity,
  • isDateTime,
  • defaultValue,
  • defaulted,
  • getArrayDataType,
  • getArrayType

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)