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

How to use
deleteRelsInTx
method
in
com.ohmdb.impl.OhmDBImpl

Best Java code snippets using com.ohmdb.impl.OhmDBImpl.deleteRelsInTx (Showing top 3 results out of 315)

origin: ohmdb/ohmdb

private void deleteInTx(DatastoreTransaction tx, long id) {
  insider.deleting(clazz, id);
  E entity = get_(id);
  doTriggers(beforeDelete, TriggerAction.BEFORE_DELETE, id, entity, null);
  stats.deletes++;
  int row = row(id);
  // TODO check - changelog if not deleted rels?
  db.deleteRelsInTx(id, tx); // CHANGE #1
  size--; // CHANGE #2
  deletedCount++; // CHANGE #3
  currentlyDeleted.add(row); // CHANGE #4
  idColl.delete(id); // CHANGE #5
  ids.remove(id); // CHANGE #6
  changelog.add(TableChange.delete(id, row)); // CHANGELOG
  // TODO also delete old (renamed) columns?
  for (PropertyInfo prop : props) {
    deleteCell(tx, id, row, prop);
  }
  doTriggers(afterDelete, TriggerAction.AFTER_DELETE, id, entity, null);
  insider.deleted(clazz, id);
}
origin: com.gitblit.ohmdb/ohmdb-core

private void deleteInTx(DatastoreTransaction tx, long id) {
  insider.deleting(clazz, id);
  E entity = get_(id);
  doTriggers(beforeDelete, TriggerAction.BEFORE_DELETE, id, entity, null);
  stats.deletes++;
  int row = row(id);
  // TODO check - changelog if not deleted rels?
  db.deleteRelsInTx(id, tx); // CHANGE #1
  size--; // CHANGE #2
  deletedCount++; // CHANGE #3
  currentlyDeleted.add(row); // CHANGE #4
  idColl.delete(id); // CHANGE #5
  ids.remove(id); // CHANGE #6
  changelog.add(TableChange.delete(id, row)); // CHANGELOG
  // TODO also delete old (renamed) columns?
  for (PropertyInfo prop : props) {
    deleteCell(tx, id, row, prop);
  }
  doTriggers(afterDelete, TriggerAction.AFTER_DELETE, id, entity, null);
  insider.deleted(clazz, id);
}
origin: com.gitblit.ohmdb/ohmdb

private void deleteInTx(DatastoreTransaction tx, long id) {
  insider.deleting(clazz, id);
  E entity = get_(id);
  doTriggers(beforeDelete, TriggerAction.BEFORE_DELETE, id, entity, null);
  stats.deletes++;
  int row = row(id);
  // TODO check - changelog if not deleted rels?
  db.deleteRelsInTx(id, tx); // CHANGE #1
  size--; // CHANGE #2
  deletedCount++; // CHANGE #3
  currentlyDeleted.add(row); // CHANGE #4
  idColl.delete(id); // CHANGE #5
  ids.remove(id); // CHANGE #6
  changelog.add(TableChange.delete(id, row)); // CHANGELOG
  // TODO also delete old (renamed) columns?
  for (PropertyInfo prop : props) {
    deleteCell(tx, id, row, prop);
  }
  doTriggers(afterDelete, TriggerAction.AFTER_DELETE, id, entity, null);
  insider.deleted(clazz, id);
}
com.ohmdb.implOhmDBImpldeleteRelsInTx

Popular methods of OhmDBImpl

  • relation
  • <init>
  • addShutdownHook
  • address
  • commit
  • decode
  • exportColumns
  • exportRecord
  • exportRelations
  • failure
  • importColumns
  • importRelations
  • importColumns,
  • importRelations,
  • registerTriggers,
  • rollback,
  • table,
  • getLinkMatcher

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • From CI to AI: The AI layer in your organization
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