congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Table.copy
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jumpmind.db.model.Table.copy (Showing top 2 results out of 315)

origin: org.jumpmind.symmetric/symmetric-io

  csvWriter.setForceQualifier(true);
} else if (format == Format.SQL) {
  Table targetTable = table.copy();
  targetTable.setSchema(schema);
  targetTable.setCatalog(catalog);
origin: org.jumpmind.symmetric/symmetric-core

protected Table toAuditTable(Table table) {
  Table auditTable = table.copy();
  String tableName = table.getName();
  if (!FormatUtils.isMixedCase(tableName)) {
    tableName = tableName.toUpperCase();
  }
  auditTable.setName(String.format("%s_AUDIT", tableName));
  Column[] columns = auditTable.getColumns();
  auditTable.removeAllColumns();
  auditTable.addColumn(new Column(COLUMN_AUDIT_ID, true, Types.BIGINT, 0, 0));
  auditTable.addColumn(new Column(COLUMN_AUDIT_TIME, false, Types.TIMESTAMP, 0, 0));
  auditTable.addColumn(new Column(COLUMN_AUDIT_EVENT, false, Types.CHAR, 1, 0));
  for (Column column : columns) {
    column.setRequired(false);
    column.setPrimaryKey(false);
    column.setAutoIncrement(false);
    auditTable.addColumn(column);
  }
  auditTable.removeAllForeignKeys();
  auditTable.removeAllIndices();
  engine.getDatabasePlatform().alterCaseToMatchDatabaseDefaultCase(auditTable);
  return auditTable;
}
org.jumpmind.db.modelTablecopy

Popular methods of Table

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim plugins
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