Codota Logo
Table.getPrimaryColumn
Code IndexAdd Codota to your IDE (free)

How to use
getPrimaryColumn
method
in
org.nuxeo.ecm.core.storage.sql.jdbc.db.Table

Best Java code snippets using org.nuxeo.ecm.core.storage.sql.jdbc.db.Table.getPrimaryColumn (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public Column getPrimaryColumn() {
  return new Column(table.getPrimaryColumn(), this);
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

@Override
public void deleteEntryWithoutReferences(String id) {
  // second step: clean stored fields
  Delete delete = new Delete(table);
  String whereString = table.getPrimaryColumn().getQuotedName() + " = ?";
  delete.setWhere(whereString);
  String sql = delete.getStatement();
  if (logger.isLogEnabled()) {
    logger.logSQL(sql, Collections.singleton(id));
  }
  try (PreparedStatement ps = sqlConnection.prepareStatement(sql)) {
    setFieldValue(ps, 1, table.getPrimaryColumn(), id);
    ps.execute();
  } catch (SQLException e) {
    checkConcurrentUpdate(e);
    throw new DirectoryException("deleteEntry failed", e);
  }
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

List<Serializable> values = new ArrayList<>(1 + map.size());
whereClause.append(table.getPrimaryColumn().getQuotedName());
whereClause.append(" = ?");
values.add(id);
  for (int i = 0; i < values.size(); i++) {
    if (i == 0) {
      setFieldValue(ps, 1, table.getPrimaryColumn(), values.get(i));
    } else {
      ps.setString(1 + i, (String) values.get(i));
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

@Override
public boolean hasEntry(String id) {
  acquireConnection();
  Select select = new Select(table);
  select.setFrom(table.getQuotedName());
  select.setWhat("1");
  select.setWhere(table.getPrimaryColumn().getQuotedName() + " = ?");
  String sql = select.getStatement();
  if (logger.isLogEnabled()) {
    logger.logSQL(sql, Collections.singleton(id));
  }
  try (PreparedStatement ps = sqlConnection.prepareStatement(sql)) {
    setFieldValue(ps, 1, table.getPrimaryColumn(), id);
    try (ResultSet rs = ps.executeQuery()) {
      boolean has = rs.next();
      if (logger.isLogEnabled()) {
        logger.logCount(has ? 1 : 0);
      }
      return has;
    }
  } catch (SQLException e) {
    throw new DirectoryException("hasEntry failed", e);
  }
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

String whereClause = table.getPrimaryColumn().getQuotedName() + " = ?";
whereClause = addFilterWhereClause(whereClause);
select.setWhere(whereClause);
  setFieldValue(ps, 1, table.getPrimaryColumn(), id);
  addFilterValues(ps, 2);
  try (ResultSet rs = ps.executeQuery()) {
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

select.setWhat(getReadColumnsSQL());
String whereClause = table.getPrimaryColumn().getQuotedName() + " = ?";
whereClause = addFilterWhereClause(whereClause);
  setFieldValue(ps, 1, table.getPrimaryColumn(), id);
  addFilterValues(ps, 2);
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

String whereString = table.getPrimaryColumn().getQuotedName() + " = ?";
update.setWhere(whereString);
String sql = update.getStatement();
    index++;
  setFieldValue(ps, index, table.getPrimaryColumn(), docModel.getId());
  ps.execute();
} catch (SQLException e) {
org.nuxeo.ecm.core.storage.sql.jdbc.dbTablegetPrimaryColumn

Popular methods of Table

  • addIndex
    Adds an index on one or several columns.
  • getAddColumnSql
    Computes the SQL statement to alter a table and add a column to it.
  • getColumn
  • getColumns
  • getCreateSql
    Computes the SQL statement to create the table.
  • getDialect
  • getKey
  • getPhysicalName
  • getPostCreateSqls
    Computes the SQL statements to finish creating the table, usually some ALTER TABLE statements to add
  • getQuotedName
  • addColumn
    Adds a Column to the table.
  • getDropSql
    Computes the SQL statement to drop the table. TODO drop constraints and indexes
  • addColumn,
  • getDropSql,
  • getPostAddSqls,
  • getRealTable,
  • isAlias

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Path (java.nio.file)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
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