Package com.avaje.ebean.config.dbplatform

Examples of com.avaje.ebean.config.dbplatform.DbType


  public DbDdlSyntax getDdlSyntax() {
    return ddlSyntax;
  }

  public String getColumnDefn(BeanProperty p) {
    DbType dbType = getDbType(p);
    return p.renderDbType(dbType);
  }
View Full Code Here


    InheritInfo inheritInfo = descriptor.getInheritInfo();
    if (inheritInfo != null && inheritInfo.isRoot()) {
      String discColumn = inheritInfo.getDiscriminatorColumn();
      int discType = inheritInfo.getDiscriminatorType();
      int discLength = inheritInfo.getDiscriminatorLength();
      DbType dbType = ctx.getDbTypeMap().get(discType);
      String discDbType = dbType.renderType(discLength, 0);

      writeColumnName(discColumn, null);
      ctx.write(discDbType);
      ctx.write(" not null,");
      ctx.writeNewLine();
View Full Code Here

TOP

Related Classes of com.avaje.ebean.config.dbplatform.DbType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.