Codota Logo
Versioning.isVersionIncrementRequired
Code IndexAdd Codota to your IDE (free)

How to use
isVersionIncrementRequired
method
in
org.hibernate.engine.internal.Versioning

Best Java code snippets using org.hibernate.engine.internal.Versioning.isVersionIncrementRequired (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

private boolean isVersionIncrementRequired(
    FlushEntityEvent event,
    EntityEntry entry,
    EntityPersister persister,
    int[] dirtyProperties
) {
  final boolean isVersionIncrementRequired = entry.getStatus() != Status.DELETED && (
      dirtyProperties == null ||
          Versioning.isVersionIncrementRequired(
              dirtyProperties,
              event.hasDirtyCollection(),
              persister.getPropertyVersionability()
          )
  );
  return isVersionIncrementRequired;
}
origin: hibernate/hibernate-orm

/**
 * Transform the array of property indexes to an array of booleans,
 * true when the property is dirty
 */
protected final boolean[] getPropertiesToUpdate(final int[] dirtyProperties, final boolean hasDirtyCollection) {
  final boolean[] propsToUpdate = new boolean[entityMetamodel.getPropertySpan()];
  final boolean[] updateability = getPropertyUpdateability(); //no need to check laziness, dirty checking handles that
  for ( int j = 0; j < dirtyProperties.length; j++ ) {
    int property = dirtyProperties[j];
    if ( updateability[property] ) {
      propsToUpdate[property] = true;
    }
  }
  if ( isVersioned() && updateability[getVersionProperty()] ) {
    propsToUpdate[getVersionProperty()] =
        Versioning.isVersionIncrementRequired(
            dirtyProperties,
            hasDirtyCollection,
            getPropertyVersionability()
        );
  }
  return propsToUpdate;
}
origin: hibernate/hibernate-orm

Versioning.isVersionIncrementRequired(
    dirtyProperties,
    hasDirtyCollection,
origin: org.hibernate.orm/hibernate-core

private boolean isVersionIncrementRequired(
    FlushEntityEvent event,
    EntityEntry entry,
    EntityTypeDescriptor entityDescriptor,
    int[] dirtyProperties
) {
  final boolean isVersionIncrementRequired = entry.getStatus() != Status.DELETED && (
      dirtyProperties == null ||
          Versioning.isVersionIncrementRequired(
              dirtyProperties,
              event.hasDirtyCollection(),
              entityDescriptor.getPropertyVersionability()
          )
  );
  return isVersionIncrementRequired;
}
origin: org.hibernate/com.springsource.org.hibernate

private boolean isVersionIncrementRequired(
    FlushEntityEvent event,
    EntityEntry entry,
    EntityPersister persister,
    int[] dirtyProperties
) {
  final boolean isVersionIncrementRequired = entry.getStatus()!=Status.DELETED && (
      dirtyProperties==null ||
      Versioning.isVersionIncrementRequired(
          dirtyProperties,
          event.hasDirtyCollection(),
          persister.getPropertyVersionability()
      )
    );
  return isVersionIncrementRequired;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private boolean isVersionIncrementRequired(
    FlushEntityEvent event,
    EntityEntry entry,
    EntityPersister persister,
    int[] dirtyProperties
) {
  final boolean isVersionIncrementRequired = entry.getStatus()!=Status.DELETED && (
      dirtyProperties==null ||
      Versioning.isVersionIncrementRequired(
          dirtyProperties,
          event.hasDirtyCollection(),
          persister.getPropertyVersionability()
      )
    );
  return isVersionIncrementRequired;
}
origin: org.hibernate.orm/hibernate-core

Versioning.isVersionIncrementRequired(
    dirtyProperties,
    hasDirtyCollection,
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Transform the array of property indexes to an array of booleans,
 * true when the property is dirty
 */
protected final boolean[] getPropertiesToUpdate(final int[] dirtyProperties, final boolean hasDirtyCollection) {
  final boolean[] propsToUpdate = new boolean[ entityMetamodel.getPropertySpan() ];
  final boolean[] updateability = getPropertyUpdateability(); //no need to check laziness, dirty checking handles that
  for ( int j = 0; j < dirtyProperties.length; j++ ) {
    int property = dirtyProperties[j];
    if ( updateability[property] ) {
      propsToUpdate[property] = true;
    }
  }
  if ( isVersioned() && updateability[getVersionProperty() ]) {
    propsToUpdate[ getVersionProperty() ] =
      Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
  }
  return propsToUpdate;
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Transform the array of property indexes to an array of booleans,
 * true when the property is dirty
 */
protected final boolean[] getPropertiesToUpdate(final int[] dirtyProperties, final boolean hasDirtyCollection) {
  final boolean[] propsToUpdate = new boolean[ entityMetamodel.getPropertySpan() ];
  final boolean[] updateability = getPropertyUpdateability(); //no need to check laziness, dirty checking handles that
  for ( int j = 0; j < dirtyProperties.length; j++ ) {
    int property = dirtyProperties[j];
    if ( updateability[property] ) {
      propsToUpdate[property] = true;
    }
  }
  if ( isVersioned() && updateability[getVersionProperty() ]) {
    propsToUpdate[ getVersionProperty() ] =
      Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
  }
  return propsToUpdate;
}
origin: org.hibernate/com.springsource.org.hibernate

Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
origin: org.hibernate/com.springsource.org.hibernate.core

Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
org.hibernate.engine.internalVersioningisVersionIncrementRequired

Javadoc

Do we need to increment the version number, given the dirty properties?

Popular methods of Versioning

  • getVersion
    Extract the optimistic locking value out of the entity state snapshot.
  • increment
    Generate the next increment in the optimistic locking value according the VersionType contract for t
  • seed
    Create an initial optimistic locking value according the VersionTypecontract for the version propert
  • seedVersion
    Create an initial optimistic locking value according the VersionSupportcontract for the version prop
  • setVersion
    Inject the optimistic locking value into the entity state snapshot.

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BoxLayout (javax.swing)
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