Codota Logo
org.hibernate.engine.internal
Code IndexAdd Codota to your IDE (free)

How to use org.hibernate.engine.internal

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

  @Override
  public void handleEviction(Object object, EntityPersister persister, Serializable identifier) {
    naturalIdXrefDelegate.removeNaturalIdCrossReference(
        persister,
        identifier,
        findCachedNaturalId( persister, identifier )
    );
  }
};
origin: hibernate/hibernate-orm

  @Override
  public void afterTransactionCompletion() {
    cleanUpInsertedKeysAfterTransaction();
    entityEntryContext.downgradeLocks();
//        // Downgrade locks
//        for ( EntityEntry o : entityEntries.values() ) {
//            o.setLockMode( LockMode.NONE );
//        }
  }

origin: hibernate/hibernate-orm

@Override
public Object[] getDeletedState() {
  final EntityEntryExtraStateHolder extra = getExtraState( EntityEntryExtraStateHolder.class );
  return extra != null ? extra.getDeletedState() : DEFAULT_DELETED_STATE;
}
origin: hibernate/hibernate-orm

@Override
public void setDeletedState(Object[] deletedState) {
  EntityEntryExtraStateHolder extra = getExtraState( EntityEntryExtraStateHolder.class );
  if ( extra == null && deletedState == DEFAULT_DELETED_STATE ) {
    //this is the default value and we do not store the extra state
    return;
  }
  if ( extra == null ) {
    extra = new EntityEntryExtraStateHolder();
    addExtraState( extra );
  }
  extra.setDeletedState( deletedState );
}
origin: hibernate/hibernate-orm

private boolean isSubclassAliasDereferenced(Join join, String withClauseFragment) {
  if ( join.getJoinable() instanceof AbstractEntityPersister ) {
    AbstractEntityPersister persister = (AbstractEntityPersister) join.getJoinable();
    int subclassTableSpan = persister.getSubclassTableSpan();
    for ( int j = 1; j < subclassTableSpan; j++ ) {
      String subclassAlias = AbstractEntityPersister.generateTableAlias( join.getAlias(), j );
      if ( isAliasDereferenced( withClauseFragment, subclassAlias ) ) {
        return true;
      }
    }
  }
  return false;
}
origin: hibernate/hibernate-orm

@Override
public void postDelete() {
  setCompressedValue( EnumState.PREVIOUS_STATUS, getStatus() );
  setCompressedValue( EnumState.STATUS, Status.GONE );
  setCompressedValue( BooleanState.EXISTS_IN_DATABASE, false );
}
origin: hibernate/hibernate-orm

/**
 * Access to the session (via the PersistenceContext) to which this delegate ultimately belongs.
 *
 * @return The session
 */
protected SharedSessionContractImplementor session() {
  return persistenceContext.getSession();
}
origin: hibernate/hibernate-orm

/**
 * clear all the internal collections, just
 * to help the garbage collector, does not
 * clear anything that is needed during the
 * afterTransactionCompletion() phase
 */
@Override
protected void cleanupOnClose() {
  persistenceContext.clear();
}
origin: hibernate/hibernate-orm

/**
 * Nullify all references to entities that have not yet been inserted in the database, where the foreign key
 * points toward that entity.
 *
 * @param values The entity attribute values
 * @param types The entity attribute types
 */
public void nullifyTransientReferences(final Object[] values, final Type[] types) {
  for ( int i = 0; i < types.length; i++ ) {
    values[i] = nullifyTransientReferences( values[i], types[i] );
  }
}
origin: hibernate/hibernate-orm

@Override
public void addNewCollection(CollectionPersister persister, PersistentCollection collection)
    throws HibernateException {
  addCollection( collection, persister );
}
origin: hibernate/hibernate-orm

@Override
public boolean requiresDirtyCheck(Object entity) {
  return isModifiableEntity()
      && ( !isUnequivocallyNonDirty( entity ) );
}
origin: hibernate/hibernate-orm

@Override
public boolean isDefaultReadOnly() {
  return persistenceContext.isDefaultReadOnly();
}
origin: hibernate/hibernate-orm

/**
 * Generate a JoinFragment
 *
 * @return The JoinFragment
 *
 * @throws MappingException Indicates a problem access the provided metadata, or incorrect metadata
 */
public JoinFragment toJoinFragment() throws MappingException {
  return toJoinFragment( Collections.EMPTY_MAP, true );
}
origin: hibernate/hibernate-orm

/**
 * Generate an empty join sequence instance.
 *
 * @return The generate join sequence.
 */
public JoinSequence createJoinSequence() {
  return new JoinSequence( sfi );
}
origin: hibernate/hibernate-orm

/**
 * Does this entity exist in this context, associated with an EntityEntry?
 *
 * @param entity The entity to check
 *
 * @return {@code true} if it is associated with this context
 */
public boolean hasEntityEntry(Object entity) {
  return getEntityEntry( entity ) != null;
}
origin: hibernate/hibernate-orm

@Override
public int getNumberOfManagedEntities() {
  return entityEntryContext.getNumberOfManagedEntities();
}
origin: hibernate/hibernate-orm

@Override
public Collection<Serializable> getCachedPkResolutions(EntityPersister entityPersister) {
  return naturalIdXrefDelegate.getCachedPkResolutions( entityPersister );
}
origin: hibernate/hibernate-orm

@Override
public Status getStatus() {
  return getCompressedValue( EnumState.STATUS );
}
origin: hibernate/hibernate-orm

@Override
public EntityEntry getValue() {
  return getEntityEntry();
}
origin: hibernate/hibernate-orm

@Override
public void setStatus(Status status) {
  if ( status == Status.READ_ONLY ) {
    //memory optimization
    loadedState = null;
  }
  final Status currentStatus = this.getStatus();
  if ( currentStatus != status ) {
    setCompressedValue( EnumState.PREVIOUS_STATUS, currentStatus );
    setCompressedValue( EnumState.STATUS, status );
  }
}
org.hibernate.engine.internal

Most used classes

  • ForeignKeys
    Algorithms related to foreign key constraint transparency
  • TwoPhaseLoad
    Functionality relating to the Hibernate two-phase loading process, that may be reused by persisters
  • Versioning
    Utilities for dealing with optimistic locking values.
  • Cascade
    Delegate responsible for, in conjunction with the various org.hibernate.engine.spi.CascadingAction,
  • Collections
    Implements book-keeping for the collection persistence by reachability algorithm
  • JoinHelper,
  • NonNullableTransientDependencies,
  • Nullability,
  • StatefulPersistenceContext,
  • UnsavedValueFactory,
  • JoinSequence$Join,
  • JoinSequence$Selector,
  • JoinSequence,
  • MutableEntityEntryFactory,
  • ParameterBinder$NamedParameterSource,
  • ParameterBinder,
  • AbstractEntityEntry,
  • BatchFetchQueueHelper,
  • CacheHelper
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