Skip to content

Commit be75f86

Browse files
committed
mark certain implementation classes as @internal
these don't really belong in the SPI package, some day we should move them elsewhere
1 parent da6a1e7 commit be75f86

File tree

6 files changed

+45
-0
lines changed

6 files changed

+45
-0
lines changed

hibernate-core/src/main/java/org/hibernate/query/spi/AbstractCommonQueryContract.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,15 @@
9696
import static org.hibernate.jpa.internal.util.LockModeTypeHelper.interpretLockMode;
9797

9898
/**
99+
* Base implementation of {@link CommonQueryContract}.
100+
*
101+
* @apiNote This class is now considered internal implementation
102+
* and will move to an internal package in a future version.
103+
* Application programs should never depend directly on this class.
104+
*
99105
* @author Steve Ebersole
100106
*/
107+
@Internal
101108
public abstract class AbstractCommonQueryContract implements CommonQueryContract {
102109
private final SharedSessionContractImplementor session;
103110
private final QueryOptionsImpl queryOptions;

hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQuery.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import jakarta.persistence.Timeout;
2525
import org.hibernate.CacheMode;
2626
import org.hibernate.FlushMode;
27+
import org.hibernate.Internal;
2728
import org.hibernate.query.QueryFlushMode;
2829
import org.hibernate.HibernateException;
2930
import org.hibernate.LockMode;
@@ -62,8 +63,15 @@
6263
import static org.hibernate.jpa.SpecHints.HINT_SPEC_QUERY_TIMEOUT;
6364

6465
/**
66+
* Base implementation of {@link org.hibernate.query.Query}.
67+
*
68+
* @apiNote This class is now considered internal implementation
69+
* and will move to an internal package in a future version.
70+
* Application programs should never depend directly on this class.
71+
*
6572
* @author Steve Ebersole
6673
*/
74+
@Internal
6775
public abstract class AbstractQuery<R>
6876
extends AbstractSelectionQuery<R>
6977
implements QueryImplementor<R> {

hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQueryParameter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@
55
package org.hibernate.query.spi;
66

77

8+
import org.hibernate.Internal;
89
import org.hibernate.type.BindableType;
910

1011
import static org.hibernate.query.QueryLogging.QUERY_MESSAGE_LOGGER;
1112

1213
/**
14+
* Base implementation of {@link org.hibernate.query.QueryParameter}.
15+
*
16+
* @apiNote This class is now considered internal implementation
17+
* and will move to an internal package in a future version.
18+
* Application programs should never depend directly on this class.
19+
*
1320
* @author Steve Ebersole
1421
*/
22+
@Internal
1523
public abstract class AbstractQueryParameter<T> implements QueryParameterImplementor<T> {
1624

1725
private boolean allowMultiValuedBinding;

hibernate-core/src/main/java/org/hibernate/query/spi/AbstractSelectionQuery.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import jakarta.persistence.Timeout;
2121
import org.hibernate.CacheMode;
2222
import org.hibernate.FlushMode;
23+
import org.hibernate.Internal;
2324
import org.hibernate.ScrollableResults;
2425
import org.hibernate.engine.spi.SessionImplementor;
2526
import org.hibernate.query.QueryFlushMode;
@@ -67,8 +68,15 @@
6768
import static org.hibernate.jpa.HibernateHints.HINT_READ_ONLY;
6869

6970
/**
71+
* Base implementation of {@link SelectionQuery}.
72+
*
73+
* @apiNote This class is now considered internal implementation
74+
* and will move to an internal package in a future version.
75+
* Application programs should never depend directly on this class.
76+
*
7077
* @author Steve Ebersole
7178
*/
79+
@Internal
7280
public abstract class AbstractSelectionQuery<R>
7381
extends AbstractCommonQueryContract
7482
implements SelectionQuery<R>, DomainQueryExecutionContext {

hibernate-core/src/main/java/org/hibernate/query/spi/SimpleHqlInterpretationImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import java.util.concurrent.ConcurrentHashMap;
88

9+
import org.hibernate.Internal;
910
import org.hibernate.query.sqm.internal.DomainParameterXref;
1011
import org.hibernate.query.sqm.tree.SqmStatement;
1112
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
@@ -14,8 +15,15 @@
1415
import static org.hibernate.query.sqm.internal.SqmUtil.isResultTypeAlwaysAllowed;
1516

1617
/**
18+
* Default implementation if {@link HqlInterpretation}.
19+
*
20+
* @apiNote This class is now considered internal implementation
21+
* and will move to an internal package in a future version.
22+
* Application programs should never depend directly on this class.
23+
*
1724
* @author Steve Ebersole
1825
*/
26+
@Internal
1927
public class SimpleHqlInterpretationImpl<R> implements HqlInterpretation<R> {
2028
private final SqmStatement<R> sqmStatement;
2129
private final ParameterMetadataImplementor parameterMetadata;

hibernate-core/src/main/java/org/hibernate/query/spi/SqlOmittingQueryOptions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
*/
55
package org.hibernate.query.spi;
66

7+
import org.hibernate.Internal;
78
import org.hibernate.LockOptions;
89
import org.hibernate.sql.exec.spi.JdbcOperationQuerySelect;
910
import org.hibernate.sql.results.spi.ListResultsConsumer;
1011

1112
/**
13+
* @apiNote This class is considered internal implementation
14+
* and will move to an internal package in a future version.
15+
* Application programs should never depend directly on this class.
16+
*
1217
* @author Christian Beikov
1318
*/
19+
@Internal
1420
public class SqlOmittingQueryOptions extends DelegatingQueryOptions {
1521

1622
private final boolean omitLimit;

0 commit comments

Comments
 (0)