Tabnine Logo
DatabasePlatform.convertQuotedIdentifiers
Code IndexAdd Tabnine to your IDE (free)

How to use
convertQuotedIdentifiers
method
in
com.avaje.ebean.config.dbplatform.DatabasePlatform

Best Java code snippets using com.avaje.ebean.config.dbplatform.DatabasePlatform.convertQuotedIdentifiers (Showing top 6 results out of 315)

origin: org.avaje.ebean/ebean

/**
 * Replace back ticks (if they are used) with database platform specific
 * quoted identifiers.
 */
protected String quoteIdentifiers(String s) {
 return databasePlatform.convertQuotedIdentifiers(s);
}
origin: org.avaje.ebeanorm/avaje-ebeanorm-api

/**
 * Replace back ticks (if they are used) with database platform specific
 * quoted identifiers.
 */
protected String quoteIdentifiers(String s) {
 return databasePlatform.convertQuotedIdentifiers(s);
}
origin: org.avaje/ebean

/**
 * Replace back ticks (if they are used) with database platform specific
 * quoted identifiers.
 */
protected String quoteIdentifiers(String s) {
  return databasePlatform.convertQuotedIdentifiers(s);
}
origin: org.avaje.ebean/ebean

protected void readColumn(Column columnAnn, DeployBeanProperty prop) {
 if (!isEmpty(columnAnn.name())) {
  String dbColumn = databasePlatform.convertQuotedIdentifiers(columnAnn.name());
  prop.setDbColumn(dbColumn);
 }
 prop.setDbInsertable(columnAnn.insertable());
 prop.setDbUpdateable(columnAnn.updatable());
 prop.setNullable(columnAnn.nullable());
 prop.setUnique(columnAnn.unique());
 if (columnAnn.precision() > 0) {
  prop.setDbLength(columnAnn.precision());
 } else if (columnAnn.length() != 255) {
  // set default 255 on DbTypeMap
  prop.setDbLength(columnAnn.length());
 }
 prop.setDbScale(columnAnn.scale());
 prop.setDbColumnDefn(columnAnn.columnDefinition());
 String baseTable = descriptor.getBaseTable();
 String tableName = columnAnn.table();
 if (!"".equals(tableName) && !tableName.equalsIgnoreCase(baseTable)) {
  // its on a secondary table...
  prop.setSecondaryTable(tableName);
 }
}

origin: org.avaje.ebeanorm/avaje-ebeanorm-server

private void readColumn(Column columnAnn, DeployBeanProperty prop) {
  if (!isEmpty(columnAnn.name())){
    String dbColumn = databasePlatform.convertQuotedIdentifiers(columnAnn.name());
    prop.setDbColumn(dbColumn);
  }
  prop.setDbInsertable(columnAnn.insertable());
  prop.setDbUpdateable(columnAnn.updatable());
  prop.setNullable(columnAnn.nullable());
  prop.setUnique(columnAnn.unique());
  if (columnAnn.precision() > 0){
    prop.setDbLength(columnAnn.precision());
  } else if (columnAnn.length() != 255){
    // set default 255 on DbTypeMap
    prop.setDbLength(columnAnn.length());
  }
  prop.setDbScale(columnAnn.scale());
  prop.setDbColumnDefn(columnAnn.columnDefinition());
  String baseTable = descriptor.getBaseTable();
  String tableName = columnAnn.table();
  if (tableName.equals("") || tableName.equalsIgnoreCase(baseTable)) {
    // its a base table property...
  } else {
    // its on a secondary table...
    prop.setSecondaryTable(tableName);
    //DeployTableJoin tableJoin = info.getTableJoin(tableName);
    //tableJoin.addProperty(prop);
  }
}
origin: org.avaje/ebean

private void readColumn(Column columnAnn, DeployBeanProperty prop) {
  if (!isEmpty(columnAnn.name())){
    String dbColumn = databasePlatform.convertQuotedIdentifiers(columnAnn.name());
    prop.setDbColumn(dbColumn);
  }
  prop.setDbInsertable(columnAnn.insertable());
  prop.setDbUpdateable(columnAnn.updatable());
  prop.setNullable(columnAnn.nullable());
  prop.setUnique(columnAnn.unique());
  if (columnAnn.precision() > 0){
    prop.setDbLength(columnAnn.precision());
  } else if (columnAnn.length() != 255){
    // set default 255 on DbTypeMap
    prop.setDbLength(columnAnn.length());
  }
  prop.setDbScale(columnAnn.scale());
  prop.setDbColumnDefn(columnAnn.columnDefinition());
  String baseTable = descriptor.getBaseTable();
  String tableName = columnAnn.table();
  if (tableName.equals("") || tableName.equalsIgnoreCase(baseTable)) {
    // its a base table property...
  } else {
    // its on a secondary table...
    prop.setSecondaryTable(tableName);
    //DeployTableJoin tableJoin = info.getTableJoin(tableName);
    //tableJoin.addProperty(prop);
  }
}
com.avaje.ebean.config.dbplatformDatabasePlatformconvertQuotedIdentifiers

Javadoc

Convert backticks to the platform specific open quote and close quote

Specific plugins may implement this method to cater for platform specific naming rules.

Popular methods of DatabasePlatform

  • completeSql
  • getCloseQuote
    Return the close quote for quoted identifiers.
  • getDbDdlSyntax
    Return the DDL syntax for this platform.
  • getOpenQuote
    Return the open quote for quoted identifiers.
  • <init>
    Instantiates a new database platform.
  • createSequenceIdGenerator
    Return a DB Sequence based IdGenerator.
  • getBlobDbType
    Return the data type that should be used for Blob. This is typically Types.BLOB but for Postgres is
  • getBooleanDbType
    Return the JDBC type used to store booleans.
  • getClobDbType
    Return the data type that should be used for Clob. This is typically Types.CLOB but for Postgres is
  • getDbEncrypt
    Return the DbEncrypt handler for this DB platform.
  • getDbIdentity
    Return the DB identity/sequence features for this platform.
  • getDbTypeMap
    Return the mapping of JDBC to DB types.
  • getDbIdentity,
  • getDbTypeMap,
  • getName,
  • getSqlLimiter,
  • isIdInExpandedForm,
  • isSelectCountWithAlias,
  • isTreatEmptyStringsAsNull,
  • setDbEncrypt,
  • withForUpdate

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now