congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
SchemaChanges
Code IndexAdd Tabnine to your IDE (free)

How to use
SchemaChanges
in
leap.db.change

Best Java code snippets using leap.db.change.SchemaChanges (Showing top 3 results out of 315)

origin: org.leapframework/leap-db

/**
 * Returns the add only changes (no update and remove).
 */
default SchemaChanges addOnly() {
  return filter((c) -> c.isAdd());
}

origin: org.leapframework/leap-orm

protected boolean upgradeTable(EntityMapping em, DbTable exists) {
  SchemaChanges changes = 
      db.getComparator().compareTable(em.getTable(), exists)
       .addOnly();
  if(changes.isEmpty()) {
    return true;
  }
  
  upgradeTableExecution = changes.applyChanges();
  return upgradeTableExecution.success();
}
origin: org.leapframework/leap-orm

for(SchemaChanges changes : allChanges){
  DbCommands changeCommands = changes.filter(changePredicate)
                    .process(changeProcessor)
                    .getChangeCommands();
leap.db.changeSchemaChanges

Most used methods

  • filter
    Returns the filtered schema changes.
  • addOnly
    Returns the add only changes (no update and remove).
  • applyChanges
    Be careful calling this method. It may cause data loss.. Applys all changes to the underlying db spe
  • getChangeCommands
    Returns an DbCommands contains all the DbCommand for applying this changes to the underlying db.
  • isEmpty
  • process
    Returns the processed schema changes.

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now