HHH-13565 Remove some related dead code
This commit is contained in:
parent
be9fe27592
commit
bc5b3c028f
|
@ -101,7 +101,6 @@ public class StatefulPersistenceContext implements PersistenceContext {
|
||||||
private Map<EntityUniqueKey, Object> entitiesByUniqueKey;
|
private Map<EntityUniqueKey, Object> entitiesByUniqueKey;
|
||||||
|
|
||||||
private EntityEntryContext entityEntryContext;
|
private EntityEntryContext entityEntryContext;
|
||||||
// private Map<Object,EntityEntry> entityEntries;
|
|
||||||
|
|
||||||
// Entity proxies, by EntityKey
|
// Entity proxies, by EntityKey
|
||||||
private ConcurrentMap<EntityKey, Object> proxiesByKey;
|
private ConcurrentMap<EntityKey, Object> proxiesByKey;
|
||||||
|
@ -295,11 +294,8 @@ public class StatefulPersistenceContext implements PersistenceContext {
|
||||||
@Override
|
@Override
|
||||||
public void afterTransactionCompletion() {
|
public void afterTransactionCompletion() {
|
||||||
cleanUpInsertedKeysAfterTransaction();
|
cleanUpInsertedKeysAfterTransaction();
|
||||||
|
// Downgrade locks
|
||||||
entityEntryContext.downgradeLocks();
|
entityEntryContext.downgradeLocks();
|
||||||
// // Downgrade locks
|
|
||||||
// for ( EntityEntry o : entityEntries.values() ) {
|
|
||||||
// o.setLockMode( LockMode.NONE );
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1160,7 +1160,6 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
||||||
|
|
||||||
//todo : expose setting
|
//todo : expose setting
|
||||||
private SessionOwnerBehavior sessionOwnerBehavior = SessionOwnerBehavior.LEGACY_NATIVE;
|
private SessionOwnerBehavior sessionOwnerBehavior = SessionOwnerBehavior.LEGACY_NATIVE;
|
||||||
private PersistenceUnitTransactionType persistenceUnitTransactionType;
|
|
||||||
|
|
||||||
SessionBuilderImpl(SessionFactoryImpl sessionFactory) {
|
SessionBuilderImpl(SessionFactoryImpl sessionFactory) {
|
||||||
this.sessionFactory = sessionFactory;
|
this.sessionFactory = sessionFactory;
|
||||||
|
|
|
@ -167,8 +167,6 @@ import org.hibernate.query.internal.CollectionFilterImpl;
|
||||||
import org.hibernate.query.spi.ScrollableResultsImplementor;
|
import org.hibernate.query.spi.ScrollableResultsImplementor;
|
||||||
import org.hibernate.resource.transaction.TransactionRequiredForJoinException;
|
import org.hibernate.resource.transaction.TransactionRequiredForJoinException;
|
||||||
import org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl;
|
import org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl;
|
||||||
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.AfterCompletionAction;
|
|
||||||
import org.hibernate.resource.transaction.backend.jta.internal.synchronization.ManagedFlushChecker;
|
|
||||||
import org.hibernate.resource.transaction.spi.TransactionCoordinator;
|
import org.hibernate.resource.transaction.spi.TransactionCoordinator;
|
||||||
import org.hibernate.resource.transaction.spi.TransactionStatus;
|
import org.hibernate.resource.transaction.spi.TransactionStatus;
|
||||||
import org.hibernate.stat.SessionStatistics;
|
import org.hibernate.stat.SessionStatistics;
|
||||||
|
@ -456,10 +454,6 @@ public final class SessionImpl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isFlushModeNever() {
|
|
||||||
return FlushMode.isManualFlushMode( getHibernateFlushMode() );
|
|
||||||
}
|
|
||||||
|
|
||||||
private void managedFlush() {
|
private void managedFlush() {
|
||||||
if ( isClosed() && !waitingForAutoClose ) {
|
if ( isClosed() && !waitingForAutoClose ) {
|
||||||
log.trace( "Skipping auto-flush due to session closed" );
|
log.trace( "Skipping auto-flush due to session closed" );
|
||||||
|
@ -3353,25 +3347,6 @@ public final class SessionImpl
|
||||||
return getHibernateFlushMode() != FlushMode.MANUAL;
|
return getHibernateFlushMode() != FlushMode.MANUAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final AfterCompletionAction STANDARD_AFTER_COMPLETION_ACTION = (AfterCompletionAction) (successful, session) -> {
|
|
||||||
// nothing to do by default.
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
public static class ManagedFlushCheckerStandardImpl implements ManagedFlushChecker {
|
|
||||||
@Override
|
|
||||||
public boolean shouldDoManagedFlush(SessionImplementor session) {
|
|
||||||
if ( session.isClosed() ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return session.getHibernateFlushMode() != FlushMode.MANUAL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final ManagedFlushCheckerStandardImpl STANDARD_MANAGED_FLUSH_CHECKER = new ManagedFlushCheckerStandardImpl() {
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
// HibernateEntityManager impl
|
// HibernateEntityManager impl
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -38,7 +37,6 @@ import org.hibernate.internal.CoreLogging;
|
||||||
import org.hibernate.internal.CoreMessageLogger;
|
import org.hibernate.internal.CoreMessageLogger;
|
||||||
import org.hibernate.loader.plan.exec.query.spi.NamedParameterContext;
|
import org.hibernate.loader.plan.exec.query.spi.NamedParameterContext;
|
||||||
import org.hibernate.loader.plan.exec.spi.LoadQueryDetails;
|
import org.hibernate.loader.plan.exec.spi.LoadQueryDetails;
|
||||||
import org.hibernate.loader.spi.AfterLoadAction;
|
|
||||||
import org.hibernate.resource.jdbc.ResourceRegistry;
|
import org.hibernate.resource.jdbc.ResourceRegistry;
|
||||||
import org.hibernate.transform.ResultTransformer;
|
import org.hibernate.transform.ResultTransformer;
|
||||||
import org.hibernate.type.Type;
|
import org.hibernate.type.Type;
|
||||||
|
@ -138,13 +136,6 @@ public abstract class AbstractLoadPlanBasedLoader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SqlStatementWrapper executeQueryStatement(
|
|
||||||
final QueryParameters queryParameters,
|
|
||||||
final boolean scroll,
|
|
||||||
final SharedSessionContractImplementor session) throws SQLException {
|
|
||||||
return executeQueryStatement( getStaticLoadQuery().getSqlStatement(), queryParameters, scroll, session );
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SqlStatementWrapper executeQueryStatement(
|
protected SqlStatementWrapper executeQueryStatement(
|
||||||
String sqlStatement,
|
String sqlStatement,
|
||||||
QueryParameters queryParameters,
|
QueryParameters queryParameters,
|
||||||
|
|
|
@ -63,10 +63,6 @@ public class ResultSetProcessorImpl implements ResultSetProcessor {
|
||||||
this.hadSubselectFetches = hadSubselectFetches;
|
this.hadSubselectFetches = hadSubselectFetches;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RowReader getRowReader() {
|
|
||||||
return rowReader;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ScrollableResultSetProcessor toOnDemandForm() {
|
public ScrollableResultSetProcessor toOnDemandForm() {
|
||||||
// todo : implement
|
// todo : implement
|
||||||
|
|
Loading…
Reference in New Issue