Tabnine Logo
DbPool.getDialect
Code IndexAdd Tabnine to your IDE (free)

How to use
getDialect
method
in
de.mhus.lib.sql.DbPool

Best Java code snippets using de.mhus.lib.sql.DbPool.getDialect (Showing top 7 results out of 315)

origin: de.mhus.lib/mhu-lib-persistence

DbPrepared(DbPool pool, String queryString, String language) throws MException {
  this.original = queryString;
  this.pool = pool;
  query = pool.getDialect().getQueryParser(language).compileString(queryString);
  //		query = new SimpleQueryParser().compileString(queryString);
  //		query = new SqlCompiler().compileString(queryString);
}
origin: de.mhus.lib/mhu-lib-persistence

/** {@inheritDoc} */
@Override
public Parser createQueryCompiler(String language) throws MException {
  if (pool != null) return pool.getDialect().getQueryParser(language);
  return new SimpleQueryCompiler();
}
origin: de.mhus.lib/mhu-lib-persistence

@Override
public <T> String toQualification(AQuery<T> qualification) {
  StringBuilder buffer = new StringBuilder();
  qualification.setContext(new SqlDialectCreateContext(this, buffer));
  getPool().getDialect().createQuery(qualification, qualification);
  return buffer.toString();
}
origin: de.mhus.lib/mhu-lib-persistence

/**
 * <p>Constructor for FieldPersistent.</p>
 *
 * @param manager a {@link de.mhus.lib.adb.DbManager} object.
 * @param table a {@link de.mhus.lib.adb.model.Table} object.
 * @param isPrimary a boolean.
 * @param readOnly a boolean.
 * @param attribute a {@link de.mhus.lib.core.pojo.PojoAttribute} object.
 * @param attr2 a {@link de.mhus.lib.core.directory.ResourceNode} object.
 * @param dynamicField a {@link de.mhus.lib.adb.DbDynamic.Field} object.
 * @param features an array of {@link java.lang.String} objects.
 * @throws de.mhus.lib.errors.MException if any.
 */
@SuppressWarnings("unchecked")
public FieldPersistent(DbManager manager, Table table, boolean isPrimary, boolean readOnly, PojoAttribute<?> attribute, ResourceNode<?> attr2,DbDynamic.Field dynamicField, String[] features) throws MException {
  this.manager = manager;
  this.table = table;
  this.manager = table.manager;
  this.nameOrg = attribute.getName();
  this.name = manager.getPool().getDialect().normalizeColumnName(nameOrg.toLowerCase());
  this.createName = nameOrg.toLowerCase();
  this.methodName = nameOrg;
  this.isPrimary = isPrimary;
  this.attribute = (PojoAttribute<Object>) attribute;
  this.attr = attr2;
  this.dynamicField = dynamicField;
  this.readOnly = readOnly;
  init(features);
}
origin: de.mhus.cherry.reactive/reactive-util

public void init() {
  try {
    URL url = MSystem.locateResource(this, "SqlDbStorage.xml");
    DbConnection con = pool.getConnection();
    XmlConfigFile data = new XmlConfigFile(url.openStream());
    data.setString("prefix", prefix);
    pool.getDialect().createStructure(data, con, null, false);
    con.close();
  } catch (Exception e) {
    log().e(e);
  }
}
origin: de.mhus.lib/mhu-lib-persistence

manager.getPool().getDialect().createStructure(cstr, con, manager.getCaoMetadata(), cleanup);
origin: de.mhus.lib/mhu-lib-persistence

tableName = manager.getPool().getDialect().normalizeTableName(tableNameOrg);
de.mhus.lib.sqlDbPoolgetDialect

Javadoc

Returns the database dialect object. (Delegated to DbProvider).

Popular methods of DbPool

  • close
    Close the pool and all connections.
  • getConnection
    Look into the pool for an unused DbProvider. If no one find, create one.
  • cleanup
    Cleanup the connection pool. Unused or closed connections will be removed. TODO new strategy to remo
  • createStatement
    Create a new prepared statement for further use.
  • doCreateConfig
  • getConfig
  • getName
  • getPoolId
  • getProvider
    Returns the DbProvider, it implements the database behavior and creates new connections.
  • getStackTraces
  • init
  • isClosed
  • init,
  • isClosed,
  • log,
  • setProvider

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
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