Codota Logo
Dialect.createDialect
Code IndexAdd Codota to your IDE (free)

How to use
createDialect
method
in
org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect

Best Java code snippets using org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect.createDialect (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public void initialize(KeyValueStoreDescriptor descriptor) {
  super.initialize(descriptor);
  logger = new JDBCLogger(name);
  Map<String, String> properties = descriptor.properties;
  dataSourceName = properties.get(DATASOURCE_PROP);
  if (StringUtils.isAllBlank(dataSourceName)) {
    throw new NuxeoException("Missing " + DATASOURCE_PROP + " property in configuration");
  }
  String tableProp = properties.get(TABLE_PROP);
  String namespace = descriptor.namespace;
  String tbl;
  if (isBlank(tableProp)) {
    tbl = defaultIfBlank(namespace, name).trim();
  } else if (isBlank(namespace)) {
    tbl = tableProp.trim();
  } else {
    tbl = tableProp.trim() + "_" + namespace.trim();
  }
  // check connection, get dialect and create table if needed
  runWithConnection(connection -> {
    dialect = Dialect.createDialect(connection, null);
    getTable(connection, tbl);
  });
  prepareSQL();
  startTTLThread();
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

SQLDirectoryDescriptor descriptor = getDescriptor();
try (Connection sqlConnection = getConnection()) {
  dialect = Dialect.createDialect(sqlConnection, null);
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

  dialect = Dialect.createDialect(connection, repositoryDescriptor);
} catch (SQLException cause) {
  throw new NuxeoException("Cannot get connection from datasource: " + dataSourceName, cause);
org.nuxeo.ecm.core.storage.sql.jdbc.dialectDialectcreateDialect

Javadoc

Creates a Dialect by connecting to the datasource to check what database is used.

Popular methods of Dialect

  • closeQuote
  • openQuote
  • addPagingClause
    Returns the SQL query with a paging clause
  • getColumnName
  • getLikeEscaping
    Gets the SQL fragment to add after a LIKE match to specify the escaping character.
  • getTableName
  • isConcurrentUpdateException
    Checks if an exception received means that a concurrent update was detected.
  • supportsIlike
    Does the dialect support ILIKE operator
  • supportsPaging
    Indicates if dialect supports paging
  • castIdToVarchar
    Casts an id column to a VARCHAR type. Used for uuid/varchar joins.
  • checkStoredProcedure
    Checks if a given stored procedure exists and is identical to the passed creation SQL. There are 3 c
  • createArrayOf
    Factory method for creating Array objects, suitable for passing to PreparedStatement#setArray. (An e
  • checkStoredProcedure,
  • createArrayOf,
  • doesUpdateFromRepeatSelf,
  • getAddColumnString,
  • getAddForeignKeyConstraintString,
  • getAddPrimaryKeyConstraintString,
  • getAncestorsIdsSql,
  • getArrayElementString,
  • getArrayIlikeSql

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now