new ForeignKeys.Nullifier( entity, true, false, session ) .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes ); new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, Nullability.NullabilityCheckType.DELETE );
new ForeignKeys.Nullifier( entity, true, false, session ) .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes ); new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, true );
new ForeignKeys.Nullifier( entity, true, false, session ) .nullifyTransientReferences( entityEntry.getDeletedState(), propTypes ); new Nullability( session ).checkNullability( entityEntry.getDeletedState(), persister, true );
new ForeignKeys.Nullifier( entity, true, false, session ) .nullifyTransientReferences( entityEntry.getDeletedState(), attributes ); new Nullability( session ).checkNullability( entityEntry.getDeletedState(), entityDescriptor, Nullability.NullabilityCheckType.DELETE );
final Nullifier nullifier = new Nullifier( entity, false, isEarlyInsert, session ); final EntityTypeDescriptor descriptor = session.getEntityDescriptor( entityName, entity );
SessionImplementor session ) { Nullifier nullifier = new Nullifier( entity, false, isEarlyInsert, session ); final EntityPersister persister = session.getEntityPersister( entityName, entity ); final String[] propertyNames = persister.getPropertyNames();
SessionImplementor session ) { Nullifier nullifier = new Nullifier( entity, false, isEarlyInsert, session ); final EntityPersister persister = session.getEntityPersister( entityName, entity ); final String[] propertyNames = persister.getPropertyNames();
/** * Nullifies any references to transient entities in the entity state * maintained by this action. References to transient entities * should be nullified when an entity is made "managed" or when this * action is executed, whichever is first. * <p/> * References will only be nullified the first time this method is * called for a this object, so it can safely be called both when * the entity is made "managed" and when this action is executed. * * @see #makeEntityManaged() */ @SuppressWarnings("unchecked") protected final void nullifyTransientReferencesIfNotAlready() { if ( ! areTransientReferencesNullified ) { final List<NonIdPersistentAttribute<?,?>> persistentAttributes = ( (EntityTypeDescriptor) getEntityDescriptor() ).getPersistentAttributes(); final Object[] state = getState(); new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() ) .nullifyTransientReferences( state, persistentAttributes ); new Nullability( getSession() ).checkNullability( state, getEntityDescriptor(), false ); areTransientReferencesNullified = true; } }
/** * Nullifies any references to transient entities in the entity state * maintained by this action. References to transient entities * should be nullified when an entity is made "managed" or when this * action is executed, whichever is first. * <p/> * References will only be nullified the first time this method is * called for a this object, so it can safely be called both when * the entity is made "managed" and when this action is executed. * * @see {@link #makeEntityManaged() } */ protected final void nullifyTransientReferencesIfNotAlready() { if ( ! areTransientReferencesNullified ) { new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() ) .nullifyTransientReferences( getState(), getPersister().getPropertyTypes() ); new Nullability( getSession() ).checkNullability( getState(), getPersister(), false ); areTransientReferencesNullified = true; } }
/** * Nullifies any references to transient entities in the entity state * maintained by this action. References to transient entities * should be nullified when an entity is made "managed" or when this * action is executed, whichever is first. * <p/> * References will only be nullified the first time this method is * called for a this object, so it can safely be called both when * the entity is made "managed" and when this action is executed. * * @see {@link #makeEntityManaged() } */ protected final void nullifyTransientReferencesIfNotAlready() { if ( ! areTransientReferencesNullified ) { new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() ) .nullifyTransientReferences( getState(), getPersister().getPropertyTypes() ); new Nullability( getSession() ).checkNullability( getState(), getPersister(), false ); areTransientReferencesNullified = true; } }
boolean isEarlyInsert, SharedSessionContractImplementor session) { final Nullifier nullifier = new Nullifier( entity, false, isEarlyInsert, session ); final EntityPersister persister = session.getEntityPersister( entityName, entity ); final String[] propertyNames = persister.getPropertyNames();
/** * Nullifies any references to transient entities in the entity state * maintained by this action. References to transient entities * should be nullified when an entity is made "managed" or when this * action is executed, whichever is first. * <p/> * References will only be nullified the first time this method is * called for a this object, so it can safely be called both when * the entity is made "managed" and when this action is executed. * * @see {@link #makeEntityManaged() } */ protected final void nullifyTransientReferencesIfNotAlready() { if ( ! areTransientReferencesNullified ) { new ForeignKeys.Nullifier( getInstance(), false, isEarlyInsert(), getSession() ) .nullifyTransientReferences( getState(), getPersister().getPropertyTypes() ); new Nullability( getSession() ).checkNullability( getState(), getPersister(), false ); areTransientReferencesNullified = true; } }