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

How to use
openQuote
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.openQuote (Showing top 14 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

public String getTable(Dialect dialect) {
  if (tableAlias == null) {
    return table;
  } else {
    return table + " " + dialect.openQuote() + tableAlias + dialect.closeQuote();
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public String getQuotedSuffixedName(String suffix) {
  return dialect.openQuote() + alias + suffix + dialect.closeQuote();
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public String getQuotedName() {
  return dialect.openQuote() + alias + dialect.closeQuote();
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public String getQuotedName() {
  return dialect.openQuote() + name + dialect.closeQuote();
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public String getQuotedSuffixedName(String suffix) {
  return dialect.openQuote() + name + suffix + dialect.closeQuote();
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

  @Override
  public String getFullQuotedName() {
    return dialect.openQuote() + subQueryAlias + dialect.closeQuote() + '.' + getQuotedName();
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

/**
 * Gets a CREATE INDEX statement for an index.
 *
 * @param indexName the index name (for fulltext)
 * @param indexType the index type
 * @param table the table
 * @param columns the columns to index
 * @param model the model
 */
public String getCreateIndexSql(String indexName, Table.IndexType indexType, Table table, List<Column> columns,
    Model model) {
  List<String> qcols = new ArrayList<>(columns.size());
  List<String> pcols = new ArrayList<>(columns.size());
  for (Column col : columns) {
    qcols.add(col.getQuotedName());
    pcols.add(col.getPhysicalName());
  }
  String quotedIndexName = openQuote() + getIndexName(table.getKey(), pcols) + closeQuote();
  if (indexType == Table.IndexType.FULLTEXT) {
    return getCreateFulltextIndexSql(indexName, quotedIndexName, table, columns, model);
  } else {
    String unique = indexType == Table.IndexType.UNIQUE ? "UNIQUE " : "";
    return String.format("CREATE %sINDEX %s ON %s (%s)", unique, quotedIndexName, table.getQuotedName(),
        String.join(", ", qcols));
  }
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-tag-core

@Override
protected void fixSelect(Select select) {
  if (type == COUNT_SOURCE) {
    // add a GROUP BY on first col
    String name;
    if (dialect.needsOriginalColumnInGroupBy()) {
      name = firstSelectedColumn.getFullQuotedName();
    } else {
      name = dialect.openQuote() + COL_ALIAS_PREFIX + "1" + dialect.closeQuote();
    }
    select.setGroupBy(name);
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

/**
 * Creates a new column with the given name and type.
 *
 * @param table the column's table
 * @param physicalName the column physical name
 * @param type the column's type
 * @param key the associated field name
 */
public Column(Table table, String physicalName, ColumnType type, String key) {
  this.table = table;
  dialect = table.getDialect();
  this.physicalName = physicalName;
  this.type = type;
  JDBCInfo jdbcInfo = dialect.getJDBCTypeAndString(type);
  jdbcType = jdbcInfo.jdbcType;
  jdbcTypeString = jdbcInfo.string;
  jdbcBaseType = jdbcInfo.jdbcBaseType;
  jdbcBaseTypeString = jdbcInfo.jdbcBaseTypeString;
  this.key = key;
  quotedName = dialect.openQuote() + physicalName + dialect.closeQuote();
  freeVariableSetter = dialect.getFreeVariableSetterForType(type);
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

protected void postAddColumn(Column column, List<String> sqls, Model model) {
  if (column.isPrimary() && !(column.isIdentity() && dialect.isIdentityAlreadyPrimary())) {
    StringBuilder buf = new StringBuilder();
    String constraintName = dialect.openQuote() + dialect.getPrimaryKeyConstraintName(key)
        + dialect.closeQuote();
    buf.append("ALTER TABLE ");
  if (ft != null) {
    Column fc = ft.getColumn(column.getForeignKey());
    String constraintName = dialect.openQuote()
        + dialect.getForeignKeyConstraintName(key, column.getPhysicalName(), ft.getPhysicalName())
        + dialect.closeQuote();
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

  orderBy.append(", ");
orderBy.append(dialect.openQuote());
orderBy.append(ob.reference.name);
orderBy.append(dialect.closeQuote());
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

for (Iterator<Map.Entry<String, String>> it = orderBy.entrySet().iterator(); it.hasNext();) {
  Entry<String, String> entry = it.next();
  orderby.append(dialect.openQuote())
      .append(entry.getKey())
      .append(dialect.closeQuote())
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

  orderBy.append(", ");
orderBy.append(dialect.openQuote());
orderBy.append(ob.reference.name);
orderBy.append(dialect.closeQuote());
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

  alias = dialect.openQuote() + COL_ALIAS_PREFIX + (i + 1) + dialect.closeQuote();
  whatName = getSelectColName(col, key);
  if (col.getTable().getRealTable() == hier && col.getKey().equals(Model.MAIN_KEY)) {
  String racl = dialect.openQuote() + READ_ACL_ALIAS + dialect.closeQuote();
  String aclrum = dialect.openQuote() + READ_ACL_USER_MAP_ALIAS + dialect.closeQuote();
  securityJoins.add(new Join(Join.INNER, Model.HIER_READ_ACL_TABLE_NAME, READ_ACL_ALIAS, null, id,
      racl + '.' + Model.HIER_READ_ACL_ID));
if (dialect.supportsWith()) {
  String withTable = dialect.openQuote() + WITH_ALIAS_PREFIX + (statements.size() + 1)
      + dialect.closeQuote();
  withTables.add(withTable);
selectFrom += " AS " + dialect.openQuote() + UNION_ALIAS + dialect.closeQuote();
org.nuxeo.ecm.core.storage.sql.jdbc.dialectDialectopenQuote

Popular methods of Dialect

  • closeQuote
  • addPagingClause
    Returns the SQL query with a paging clause
  • createDialect
    Creates a Dialect by connecting to the datasource to check what database is used.
  • 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

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • setContentView (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JButton (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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