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

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

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

origin: org.avaje.ebean/ebean

/**
 * Set default server and platform if necessary.
 */
protected void setDefaults() {
 if (server == null) {
  setServer(Ebean.getDefaultServer());
 }
 if (databasePlatform == null && platforms.isEmpty()) {
  // not explicitly set not set a list of platforms so
  // default to the platform of the default server
  databasePlatform = server.getDatabasePlatform();
  logger.debug("set platform to {}", databasePlatform.getName());
 }
}
origin: org.avaje.ebeanorm/avaje-ebeanorm-server

/**
 * Set the DatabasePlatform if it has not already been set.
 */
private void setDatabasePlatform(ServerConfig config) {
 DatabasePlatform dbPlatform = config.getDatabasePlatform();
 if (dbPlatform == null) {
  DatabasePlatformFactory factory = new DatabasePlatformFactory();
  DatabasePlatform db = factory.create(config);
  config.setDatabasePlatform(db);
  logger.info("DatabasePlatform name:" + config.getName() + " platform:" + db.getName());
 }
}
origin: org.avaje/ebean

/**
 * Set the DatabasePlatform if it has not already been set.
 */
private void setDatabasePlatform(ServerConfig config) {
 DatabasePlatform dbPlatform = config.getDatabasePlatform();
 if (dbPlatform == null) {
  DatabasePlatformFactory factory = new DatabasePlatformFactory();
  DatabasePlatform db = factory.create(config);
  config.setDatabasePlatform(db);
  logger.info("DatabasePlatform name:" + config.getName() + " platform:" + db.getName());
 }
}
origin: org.avaje.ebean/ebean

protected void runCreateSql() throws IOException {
 if (createAllContent == null) {
  createAllContent = readFile(getCreateFileName());
 }
 runScript(false, createAllContent, getCreateFileName());
 String ignoreExtraDdl = System.getProperty("ebean.ignoreExtraDdl");
 if (!"true".equalsIgnoreCase(ignoreExtraDdl)) {
  String extraApply = ExtraDdlXmlReader.buildExtra(server.getDatabasePlatform().getName());
  if (extraApply != null) {
   runScript(false, extraApply, "extra-dll");
  }
 }
}
origin: org.avaje.ebean/ebean

/**
 * Set the DatabasePlatform if it has not already been set.
 */
private void setDatabasePlatform(ServerConfig config) {
 DatabasePlatform dbPlatform = config.getDatabasePlatform();
 if (dbPlatform == null) {
  if (config.getTenantMode().isDynamicDataSource()) {
   throw new IllegalStateException("DatabasePlatform must be explicitly set on ServerConfig for TenantMode "+config.getTenantMode());
  }
  DatabasePlatformFactory factory = new DatabasePlatformFactory();
  DatabasePlatform db = factory.create(config);
  db.configure(config.getDbTypeConfig());
  config.setDatabasePlatform(db);
  logger.info("DatabasePlatform name:{} platform:{}", config.getName(), db.getName());
 }
}
origin: org.avaje.ebean/ebean

/**
 * Generate "repeatable" migration scripts.
 * <p>
 * These take scrips from extra-dll.xml (typically views) and outputs "repeatable"
 * migration scripts (starting with "R__") to be run by FlywayDb or Ebean's own
 * migration runner.
 * </p>
 */
private void generateExtraDdl(File migrationDir, DatabasePlatform dbPlatform) throws IOException {
 if (dbPlatform != null) {
  ExtraDdl extraDdl = ExtraDdlXmlReader.read("/extra-ddl.xml");
  if (extraDdl != null) {
   List<DdlScript> ddlScript = extraDdl.getDdlScript();
   for (DdlScript script : ddlScript) {
    if (ExtraDdlXmlReader.matchPlatform(dbPlatform.getName(), script.getPlatforms())) {
     writeExtraDdl(migrationDir, script);
    }
   }
  }
 }
}
origin: org.avaje/ebean

if (dbPlatform.getName().startsWith("oracle")) {
 PstmtDelegate pstmtDelegate = serverConfig.getPstmtDelegate();
 if (pstmtDelegate == null) {
origin: org.avaje.ebeanorm/avaje-ebeanorm-server

if (dbPlatform.getName().startsWith("oracle")) {
 PstmtDelegate pstmtDelegate = serverConfig.getPstmtDelegate();
 if (pstmtDelegate == null) {
com.avaje.ebean.config.dbplatformDatabasePlatformgetName

Javadoc

Return the name of the underlying Platform in lowercase.

"generic" is returned when no specific database platform has been set or found.

Popular methods of DatabasePlatform

  • completeSql
  • convertQuotedIdentifiers
    Convert backticks to the platform specific open quote and close quote Specific plugins may implement
  • 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.
  • getDbEncrypt,
  • getDbIdentity,
  • getDbTypeMap,
  • getSqlLimiter,
  • isIdInExpandedForm,
  • isSelectCountWithAlias,
  • isTreatEmptyStringsAsNull,
  • setDbEncrypt,
  • withForUpdate

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • From CI to AI: The AI layer in your organization
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