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

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

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

origin: org.jumpmind.symmetric/symmetric-io

protected Database getDatabase(Table[] tables) {
  Database db = new Database();
  try {
    if (!noCreateInfo) {
      for (Table table : tables) {
        Table newTable = (Table) table.clone();
        if (noIndices) {
          newTable.removeAllIndices();
        }
        if (noForeignKeys) {
          newTable.removeAllForeignKeys();
        }
        db.addTable(newTable);
      }
    }
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return db;
}
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.modelTableremoveAllForeignKeys

Popular methods of Table

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

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JLabel (javax.swing)
  • Top plugins for Android Studio
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