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

How to use
getFullyQualifiedTableName
method
in
org.jumpmind.db.model.Table

Best Java code snippets using org.jumpmind.db.model.Table.getFullyQualifiedTableName (Showing top 20 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.jumpmind.symmetric/symmetric-io

public String getFullyQualifiedSourceTableName() {
  return Table.getFullyQualifiedTableName(sourceCatalogName, sourceSchemaName,
      sourceTableName);
}
origin: org.jumpmind.symmetric/symmetric-io

public String getFullyQualifiedTargetTableName() {
  return Table.getFullyQualifiedTableName(sourceCatalogName, sourceSchemaName,
      sourceTableName);
}
origin: org.jumpmind.symmetric/symmetric-core

public String getFullyQualifiedSourceTableName() {
  return Table.getFullyQualifiedTableName(sourceCatalogName, sourceSchemaName, sourceTableName);
}
origin: org.jumpmind.symmetric/symmetric-core

public String getFullyQualifiedSourceTableName() {
  return Table.getFullyQualifiedTableName(sourceCatalogName, sourceSchemaName, sourceTableName, null);
}
origin: org.jumpmind.symmetric/symmetric-io

public String toQualifiedTableName() {
  if (StringUtils.isNotBlank(targetTableName)) {
    return Table.getFullyQualifiedTableName(targetCatalogName, targetSchemaName,
        targetTableName);
  } else {
    return null;
  }
}
origin: org.jumpmind.symmetric/symmetric-io

@Override
public boolean start(Table table) {
  activeTransforms = transformsBySourceTable.get(table.getFullyQualifiedTableName());
  if (activeTransforms != null && activeTransforms.size() > 0) {
    this.sourceTable = table;
    return true;
  } else {
    this.sourceTable = null;
    return super.start(table);
  }
}
origin: org.jumpmind.symmetric/symmetric-jdbc

@Override
public void allowInsertIntoAutoIncrementColumns(boolean allow, Table table, String quote) {
  if (table != null && table.getAutoIncrementColumns().length > 0) {
    if (allow) {
      execute(String.format("SET IDENTITY_INSERT %s ON",
          table.getFullyQualifiedTableName(quote)));
    } else {
      execute(String.format("SET IDENTITY_INSERT %s OFF",
          table.getFullyQualifiedTableName(quote)));
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-jdbc

@Override
public void allowInsertIntoAutoIncrementColumns(boolean allow, Table table, String quote) {
  if (table != null && table.getAutoIncrementColumns().length > 0) {
    if (allow) {
      execute(String.format("SET IDENTITY_INSERT %s ON",
          table.getFullyQualifiedTableName(quote)));
    } else {
      execute(String.format("SET IDENTITY_INSERT %s OFF",
          table.getFullyQualifiedTableName(quote)));
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-io

public TableExtractDataReaderSource(IDatabasePlatform platform, String catalogName,
    String schemaName, String tableName, String whereClause, boolean streamLobs, String sourceNodeId, String targetNodeId) {
  this.platform = platform;
  this.table = platform.getTableFromCache(catalogName, schemaName, tableName, true);
  if (table == null) {
    throw new IllegalStateException(String.format("Could not find table %s",
        Table.getFullyQualifiedTableName(catalogName, schemaName, tableName)));
  }
  this.whereClause = whereClause;
  this.streamLobs = streamLobs;
  this.batch = new Batch(BatchType.EXTRACT, -1, "default", BinaryEncoding.BASE64, sourceNodeId, targetNodeId, false);
}
origin: org.jumpmind.symmetric/symmetric-ftp

protected void println(String... data) {
  FileInfo fileInfo = fileInfoByTable.get(table.getFullyQualifiedTableName());
  if (fileInfo != null) {
    try {
      StringBuilder buffer = new StringBuilder();
      for (int i = 0; i < data.length; i++) {
        if (i != 0) {
          buffer.append(",");
        }
        buffer.append(data[i]);
      }
      buffer.append("\n");
      fileInfo.outputFileWriter.write(buffer.toString());
      long byteCount = buffer.length();
      statistics.get(batch).increment(DataWriterStatisticConstants.BYTECOUNT, byteCount);
    } catch (IOException e) {
      throw new IoException(e);
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-ftp

protected void createFile(Table table, Batch batch) {
  FileInfo fileInfo = fileInfoByTable.get(table.getFullyQualifiedTableName());
  if (fileInfo == null) {
    try {
      fileInfo = new FileInfo();
      fileInfo.outputFile = new File(stagingDir, batch.getBatchId() + "-"
          + table.getFullyQualifiedTableName() + "." + format.name().toLowerCase());
      fileInfo.outputFile.getParentFile().mkdirs();
      fileInfo.outputFileWriter = new BufferedWriter(new FileWriter(fileInfo.outputFile));
      fileInfoByTable.put(table.getFullyQualifiedTableName(), fileInfo);
      if (format == Format.CSV) {
        printCsvTableHeader();
      }
    } catch (IOException e) {
      throw new IoException(e);
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-postgres

private String createCopyMgrSql() {
  StringBuilder sql = new StringBuilder("COPY ");
  String quote = platform.getDatabaseInfo().getDelimiterToken();
  sql.append(targetTable.getFullyQualifiedTableName(quote));
  sql.append("(");
  Column[] columns = targetTable.getColumns();
  for (Column column : columns) {
    String columnName = column.getName();
    if (StringUtils.isNotBlank(columnName)) {
      sql.append(quote);
      sql.append(columnName);
      sql.append(quote);
      sql.append(",");
    }
  }
  sql.replace(sql.length() - 1, sql.length(), ")");
  sql.append("FROM STDIN with delimiter ',' csv quote ''''");
  return sql.toString();
}
origin: org.jumpmind.symmetric/symmetric-core

public boolean start(Table table) {
  if (table != null) {
    processInfo.setCurrentTableName(table.getFullyQualifiedTableName());
  }
  return super.start(table);
}
origin: org.jumpmind.symmetric/symmetric-io

protected String buildSelect(Table table, Column lobColumn, Column[] pkColumns) {
  StringBuilder sql = new StringBuilder("select ");
  String quote = platform.getDdlBuilder().isDelimitedIdentifierModeOn() ? platform
      .getDatabaseInfo().getDelimiterToken() : "";
  sql.append(quote);
  sql.append(lobColumn.getName());
  sql.append(quote);
  sql.append(",");
  sql.delete(sql.length() - 1, sql.length());
  sql.append(" from ");
  sql.append(table.getFullyQualifiedTableName(quote));
  sql.append(" where ");
  for (Column col : pkColumns) {
    sql.append(quote);
    sql.append(col.getName());
    sql.append(quote);
    sql.append("=? and ");
  }
  sql.delete(sql.length() - 5, sql.length());
  return sql.toString();
}
origin: org.jumpmind.symmetric/symmetric-io

protected void startNewCursor() {
  String sql = String.format("select * from %s %s", table.getFullyQualifiedTableName(platform
      .getDatabaseInfo().getDelimiterToken()),
      StringUtils.isNotBlank(whereClause) ? " where " + whereClause : "");
  this.cursor = platform.getSqlTemplate().queryForCursor(sql, new ISqlRowMapper<CsvData>() {
    public CsvData mapRow(Row row) {
      return new CsvData(DataEventType.INSERT, toStringData(row, table.getPrimaryKeyColumns()), toStringData(row, table.getColumns()));
    }
  });
}
origin: org.jumpmind.symmetric/symmetric-core

public boolean handlesMissingTable(DataContext context, Table table) {
  if (engine!=null && engine.getParameterService()!=null && 
      engine.getParameterService().is(ParameterConstants.BSH_LOAD_FILTER_HANDLES_MISSING_TABLES)) {
    return true;
  } else {
    String tableName = table.getFullyQualifiedTableName();
    if (isIgnoreCase()) {
      tableName = tableName.toUpperCase();
    }
    return loadFilters.containsKey(tableName);
  }
}
origin: org.jumpmind.symmetric/symmetric-io

protected void logConflictHappened(Conflict conflict, CsvData data, DatabaseWriter writer,
    ResolvedData resolvedData, long lineNumber) {
  if (log.isDebugEnabled()) {
    log.debug("Conflict detected: {} in batch {} at line {} for table {}", new Object[] {
        conflict.getConflictId() == null ? "default" : conflict.getConflictId(),
        writer.getBatch().getBatchId(), lineNumber,
        writer.getTargetTable().getFullyQualifiedTableName() });
    String csvData = data.getCsvData(CsvData.ROW_DATA);
    if (StringUtils.isNotBlank(csvData)) {
      log.debug("Row data: {}", csvData);
    }
    csvData = data.getCsvData(CsvData.OLD_DATA);
    if (StringUtils.isNotBlank(csvData)) {
      log.debug("Old data: {}", csvData);
    }
    csvData = resolvedData != null ? resolvedData.getResolvedData() : null;
    if (StringUtils.isNotBlank(csvData)) {
      log.debug("Resolve data: {}", csvData);
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-io

protected static String message(CsvData data, Table table, boolean fallbackOperationFailed) {
  Map<String, String> pks = data.toColumnNameValuePairs(table.getPrimaryKeyColumnNames(),
      CsvData.PK_DATA);
  if (pks == null || pks.size() == 0) {
    pks = data.toColumnNameValuePairs(table.getPrimaryKeyColumnNames(), CsvData.OLD_DATA);
  }
  if (pks == null || pks.size() == 0) {
    pks = data.toColumnNameValuePairs(table.getPrimaryKeyColumnNames(), CsvData.ROW_DATA);
  }
  return String.format(
      "Detected conflict while executing %s on %s.  The primary key data was: %s. %s",
      data.getDataEventType().toString(), table.getFullyQualifiedTableName(), pks,
      fallbackOperationFailed ? "Failed to fallback." : "");
}
origin: org.jumpmind.symmetric/symmetric-core

public void syncTriggers(Table table, boolean force) {
  boolean ignoreCase = this.parameterService.is(ParameterConstants.DB_METADATA_IGNORE_CASE);
  /* Re-lookup just in case the table was just altered */
  platform.resetCachedTableModel();
  table = platform.getTableFromCache(table.getCatalog(), table.getSchema(), table.getName(),
      true);
  List<Trigger> triggersForCurrentNode = getTriggersForCurrentNode();
  for (Trigger trigger : triggersForCurrentNode) {
    if (trigger.matches(table, platform.getDefaultCatalog(), platform.getDefaultSchema(),
        ignoreCase)) {
      log.info("Synchronizing triggers for {}", table.getFullyQualifiedTableName());
      updateOrCreateDatabaseTriggers(trigger, table, null, force, true);
      log.info("Done synchronizing triggers for {}", table.getFullyQualifiedTableName());
    }
  }
}
origin: org.jumpmind.symmetric/symmetric-io

public boolean start(Table table) {
  if (!batch.isIgnored()) {
    this.table = table;
    
    if (!backwardsCompatible) {
      String catalogName = table.getCatalog();
      println(CsvConstants.CATALOG, StringUtils.isNotBlank(catalogName) ? catalogName
          : "");
      String schemaName = table.getSchema();
      println(CsvConstants.SCHEMA, StringUtils.isNotBlank(schemaName) ? schemaName : "");
    }
    
    String tableKey = table.getTableKey();
    String fullyQualifiedTableName = table.getFullyQualifiedTableName();
    String previousTableKey = processedTables.get(fullyQualifiedTableName);
    println(CsvConstants.TABLE, table.getName());
    if (!tableKey.equals(previousTableKey)) {
      println(CsvConstants.KEYS, table.getPrimaryKeyColumns());
      println(CsvConstants.COLUMNS, table.getColumns());
      this.processedTables.put(fullyQualifiedTableName, tableKey);
    }
    return true;
  } else {
    return false;
  }
}
org.jumpmind.db.modelTablegetFullyQualifiedTableName

Popular methods of Table

  • getColumns
  • <init>
  • getCatalog
  • getColumnCount
  • getColumnNames
  • getColumnWithName
  • getName
  • getPrimaryKeyColumns
  • getSchema
  • setCatalog
  • setName
  • setSchema
  • setName,
  • setSchema,
  • addColumn,
  • addColumns,
  • calculateTableHashcode,
  • copy,
  • copyAndFilterColumns,
  • findColumn,
  • getColumn

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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