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

How to use
getDatabaseType
method
in
com.speedment.runtime.config.Column

Best Java code snippets using com.speedment.runtime.config.Column.getDatabaseType (Showing top 9 results out of 315)

origin: speedment/speedment

@Override
public Type getJavaType(Column column) {
  final String type = column.getDatabaseType();
  switch (type) {
    case "java.lang.Byte"      : return byte.class;
    case "java.lang.Short"     : return short.class;
    case "java.lang.Integer"   : return int.class;
    case "java.lang.Long"      : return long.class;
    case "java.lang.Float"     : return float.class;
    case "java.lang.Double"    : return double.class;
    case "java.lang.Boolean"   : return boolean.class;
    case "java.lang.Character" : return char.class;
    default : throw new UnsupportedOperationException(
      "Type " + type + " is not a wrapper for a primitive type."
    );
  }
}
origin: speedment/speedment

private boolean isCastingRequired(Column column, String getterName) {
  return ("getObject".equals(getterName)
    && !Object.class.getName().equals(column.getDatabaseType()));
}
origin: speedment/speedment

.filter(c -> c.getId().equals(column.getId()))
.filter(c -> c.getDatabaseType().equals(column.getDatabaseType()))
origin: speedment/speedment

    file.add(Import.of(SimpleType.create(c.getDatabaseType())));
    sb.append("(").append(shortName(c.getDatabaseType())).append(") ");
} else {
  if (isCastingRequired(c, getterName)) {
    file.add(Import.of(SimpleType.create(c.getDatabaseType())));
    sb.append("(").append(shortName(c.getDatabaseType())).append(") ");
origin: speedment/speedment

ImmutableColumn(ImmutableTable parent, Map<String, Object> data) {
  super(parent, data);
  
  final Column prototype = new ColumnImpl(parent, data);
  
  this.enabled                = prototype.isEnabled();
  this.id                     = prototype.getId();
  this.name                   = prototype.getName();
  this.alias                  = prototype.getAlias();
  this.nullable               = prototype.isNullable();
  this.nullableImplementation = prototype.getNullableImplementation();
  this.autoincrement          = prototype.isAutoIncrement();
  this.typeMapper             = prototype.getTypeMapper();
  this.databaseType           = prototype.getDatabaseType();
  this.databaseTypeObject     = prototype.findDatabaseType();
  this.enumConstants          = prototype.getEnumConstants();
  this.decimalDigits          = prototype.getDecimalDigits();
  this.columnSize             = prototype.getColumnSize();
  this.ordinalPosition        = prototype.getOrdinalPosition();
}
origin: speedment/speedment

final Type databaseType   = SimpleType.create(column.getDatabaseType());
final TypeMapper.Category category = tm.getJavaTypeCategory(column);
origin: com.speedment.generator/generator-standard

private boolean isCastingRequired(Column column, String getterName) {
  return ("getObject".equals(getterName)
    && !Object.class.getName().equals(column.getDatabaseType()));
}
origin: com.speedment.generator/generator-standard

    file.add(Import.of(SimpleType.create(c.getDatabaseType())));
    sb.append("(").append(shortName(c.getDatabaseType())).append(") ");
} else {
  if (isCastingRequired(c, getterName)) {
    file.add(Import.of(SimpleType.create(c.getDatabaseType())));
    sb.append("(").append(shortName(c.getDatabaseType())).append(") ");
origin: com.speedment.generator/generator-standard

final Type databaseType   = SimpleType.create(column.getDatabaseType());
final TypeMapper.Category category = tm.getJavaTypeCategory(column);
com.speedment.runtime.configColumngetDatabaseType

Popular methods of Column

  • findDatabaseType
  • getId
  • getName
  • getParentOrThrow
  • getTypeMapper
  • isNullable
  • mutator
  • getJavaName
  • getEnumConstants
  • getNullableImplementation
  • isAutoIncrement
  • isEnabled
  • isAutoIncrement,
  • isEnabled,
  • getAlias,
  • getAsBoolean,
  • getAsString,
  • getColumnSize,
  • getData,
  • getDecimalDigits,
  • getOrdinalPosition

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Menu (java.awt)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 12 Jupyter Notebook Extensions
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