Remove deprecated dead code

This commit is contained in:
Sanne Grinovero 2024-02-05 16:23:56 +00:00 committed by Christian Beikov
parent d613c69863
commit b20ba40467
3 changed files with 0 additions and 42 deletions

View File

@ -1,16 +0,0 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.query.named;
/**
* @author Steve Ebersole
*/
public interface RowReaderMemento {
Class<?>[] getResultClasses();
String[] getResultMappingNames();
}

View File

@ -9,9 +9,6 @@ package org.hibernate.sql.results.internal;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.internal.util.collections.ArrayHelper;
import org.hibernate.query.named.RowReaderMemento;
import org.hibernate.sql.results.LoadingLogger;
import org.hibernate.sql.results.graph.DomainResultAssembler;
import org.hibernate.sql.results.graph.Initializer;
@ -121,18 +118,4 @@ public class StandardRowReader<T> implements RowReader<T> {
initializers.endLoading( processingState.getExecutionContext() );
}
@Override
public RowReaderMemento toMemento(SessionFactoryImplementor factory) {
return new RowReaderMemento() {
@Override
public Class<?>[] getResultClasses() {
return ArrayHelper.EMPTY_CLASS_ARRAY;
}
@Override
public String[] getResultMappingNames() {
return ArrayHelper.EMPTY_STRING_ARRAY;
}
};
}
}

View File

@ -8,13 +8,11 @@ package org.hibernate.sql.results.spi;
import java.util.List;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.sql.results.graph.Initializer;
import org.hibernate.sql.results.internal.InitializersList;
import org.hibernate.sql.results.jdbc.spi.RowProcessingState;
import org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingOptions;
import org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState;
import org.hibernate.query.named.RowReaderMemento;
import org.hibernate.type.descriptor.java.JavaType;
/**
@ -66,13 +64,6 @@ public interface RowReader<R> {
*/
void finishUp(JdbcValuesSourceProcessingState context);
/**
* Not used - to be removed?
* @deprecated to be removed
*/
@Deprecated
RowReaderMemento toMemento(SessionFactoryImplementor factory);
/**
* The initializers associated with this reader.
*