clean up warnings and broken Javadoc links on Cache interface
This commit is contained in:
parent
7f9f8e1ff3
commit
abd63d73ea
|
@ -12,7 +12,6 @@ package org.hibernate;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public class BaseSessionEventListener implements SessionEventListener {
|
public class BaseSessionEventListener implements SessionEventListener {
|
||||||
@Override
|
@Override
|
||||||
public void transactionCompletion(boolean successful) {
|
public void transactionCompletion(boolean successful) {
|
||||||
|
|
|
@ -18,7 +18,6 @@ import java.io.Serializable;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
|
||||||
public interface Cache extends jakarta.persistence.Cache {
|
public interface Cache extends jakarta.persistence.Cache {
|
||||||
/**
|
/**
|
||||||
* Access to the SessionFactory this Cache is bound to.
|
* Access to the SessionFactory this Cache is bound to.
|
||||||
|
@ -44,7 +43,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @return True if the underlying cache contains corresponding data; false
|
* @return True if the underlying cache contains corresponding data; false
|
||||||
* otherwise.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
boolean containsEntity(Class entityClass, Object identifier);
|
boolean containsEntity(Class<?> entityClass, Object identifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether the cache contains data for the given entity "instance".
|
* Determine whether the cache contains data for the given entity "instance".
|
||||||
|
@ -67,7 +66,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
*
|
*
|
||||||
* @since 5.3
|
* @since 5.3
|
||||||
*/
|
*/
|
||||||
void evictEntityData(Class entityClass, Object identifier);
|
void evictEntityData(Class<?> entityClass, Object identifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evicts the entity data for a particular entity "instance".
|
* Evicts the entity data for a particular entity "instance".
|
||||||
|
@ -87,7 +86,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
*
|
*
|
||||||
* @since 5.3
|
* @since 5.3
|
||||||
*/
|
*/
|
||||||
void evictEntityData(Class entityClass);
|
void evictEntityData(Class<?> entityClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evicts all entity data from the given region (i.e. for all entities of
|
* Evicts all entity data from the given region (i.e. for all entities of
|
||||||
|
@ -118,7 +117,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
*
|
*
|
||||||
* @since 5.3
|
* @since 5.3
|
||||||
*/
|
*/
|
||||||
void evictNaturalIdData(Class entityClass);
|
void evictNaturalIdData(Class<?> entityClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evict cached data for the given entity's natural-id
|
* Evict cached data for the given entity's natural-id
|
||||||
|
@ -155,7 +154,6 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
*
|
*
|
||||||
* @return True if the underlying cache contains corresponding data; false otherwise.
|
* @return True if the underlying cache contains corresponding data; false otherwise.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"UnusedDeclaration"})
|
|
||||||
boolean containsCollection(String role, Object ownerIdentifier);
|
boolean containsCollection(String role, Object ownerIdentifier);
|
||||||
|
|
||||||
|
|
||||||
|
@ -268,10 +266,10 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @param entityClass The entity class.
|
* @param entityClass The entity class.
|
||||||
* @param identifier The entity identifier
|
* @param identifier The entity identifier
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link Cache#evictEntityData(Class, Serializable)} instead
|
* @deprecated Use {@link Cache#evictEntityData(Class, Object)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void evictEntity(Class entityClass, Object identifier) {
|
default void evictEntity(Class<?> entityClass, Object identifier) {
|
||||||
evictEntityData( entityClass, identifier );
|
evictEntityData( entityClass, identifier );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +279,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @param entityName The entity name.
|
* @param entityName The entity name.
|
||||||
* @param identifier The entity identifier
|
* @param identifier The entity identifier
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link Cache#evictEntityData(String, Serializable)} instead
|
* @deprecated Use {@link Cache#evictEntityData(String, Object)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void evictEntity(String entityName, Object identifier) {
|
default void evictEntity(String entityName, Object identifier) {
|
||||||
|
@ -297,7 +295,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @deprecated Use {@link Cache#evictEntityData(Class)} instead
|
* @deprecated Use {@link Cache#evictEntityData(Class)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void evictEntityRegion(Class entityClass) {
|
default void evictEntityRegion(Class<?> entityClass) {
|
||||||
evictEntityData( entityClass );
|
evictEntityData( entityClass );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -333,7 +331,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @deprecated Use {@link Cache#evictNaturalIdData(Class)} instead
|
* @deprecated Use {@link Cache#evictNaturalIdData(Class)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void evictNaturalIdRegion(Class entityClass) {
|
default void evictNaturalIdRegion(Class<?> entityClass) {
|
||||||
evictNaturalIdData( entityClass );
|
evictNaturalIdData( entityClass );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,7 +364,7 @@ public interface Cache extends jakarta.persistence.Cache {
|
||||||
* @param role The "collection role" (in form [owner-entity-name].[collection-property-name]).
|
* @param role The "collection role" (in form [owner-entity-name].[collection-property-name]).
|
||||||
* @param ownerIdentifier The identifier of the owning entity
|
* @param ownerIdentifier The identifier of the owning entity
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link Cache#evictCollectionData(String, Serializable)} instead
|
* @deprecated Use {@link Cache#evictCollectionData(String, Object)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void evictCollection(String role, Serializable ownerIdentifier) {
|
default void evictCollection(String role, Serializable ownerIdentifier) {
|
||||||
|
|
|
@ -20,14 +20,14 @@ import org.hibernate.jpa.internal.util.FlushModeTypeHelper;
|
||||||
*/
|
*/
|
||||||
public enum FlushMode {
|
public enum FlushMode {
|
||||||
/**
|
/**
|
||||||
* The {@link Session} is only flushed when {@link Session#flush}
|
* The {@link Session} is only flushed when {@link Session#flush()}
|
||||||
* is called explicitly. This mode is very efficient for read-only
|
* is called explicitly. This mode is very efficient for read-only
|
||||||
* transactions.
|
* transactions.
|
||||||
*/
|
*/
|
||||||
MANUAL,
|
MANUAL,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link Session} is flushed when {@link Transaction#commit}
|
* The {@link Session} is flushed when {@link Transaction#commit()}
|
||||||
* is called.
|
* is called.
|
||||||
*/
|
*/
|
||||||
COMMIT,
|
COMMIT,
|
||||||
|
|
|
@ -12,7 +12,7 @@ import org.hibernate.internal.build.AllowSysOut;
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Information about the Hibernate version.
|
* Information about the version of Hibernate.
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue