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

How to use
closeQuote
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.closeQuote (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

StringBuilder buf = new StringBuilder();
String constraintName = dialect.openQuote() + dialect.getPrimaryKeyConstraintName(key)
    + dialect.closeQuote();
buf.append("ALTER TABLE ");
buf.append(getQuotedName());
String constraintName = dialect.openQuote()
    + dialect.getForeignKeyConstraintName(key, column.getPhysicalName(), ft.getPhysicalName())
    + dialect.closeQuote();
StringBuilder buf = new StringBuilder();
buf.append("ALTER TABLE ");
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

orderBy.append(dialect.closeQuote());
if (ob.isDescending) {
  orderBy.append(" DESC");
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

orderby.append(dialect.openQuote())
    .append(entry.getKey())
    .append(dialect.closeQuote())
    .append(' ')
    .append(entry.getValue());
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

orderBy.append(dialect.closeQuote());
if (ob.isDescending) {
  orderBy.append(" DESC");
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));
      + dialect.closeQuote();
  withTables.add(withTable);
  Select withSelect = new Select(null);
selectFrom += " AS " + dialect.openQuote() + UNION_ALIAS + dialect.closeQuote();
org.nuxeo.ecm.core.storage.sql.jdbc.dialectDialectcloseQuote

Popular methods of Dialect

  • openQuote
  • 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

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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