get IntelliJ to fix a bunch of warnings for itself

This commit is contained in:
Gavin King 2022-01-23 01:31:16 +01:00
parent 121fd2d879
commit 24627b214f
306 changed files with 797 additions and 972 deletions

View File

@ -40,7 +40,7 @@ public interface Filter {
* @param value The value to be applied.
* @return This FilterImpl instance (for method chaining).
*/
public Filter setParameter(String name, Object value);
Filter setParameter(String name, Object value);
/**
* Set the named parameter's value list for this filter. Used
@ -50,7 +50,7 @@ public interface Filter {
* @param values The values to be expanded into an SQL IN list.
* @return This FilterImpl instance (for method chaining).
*/
public Filter setParameterList(String name, Collection values);
Filter setParameterList(String name, Collection values);
/**
* Set the named parameter's value list for this filter. Used
@ -60,7 +60,7 @@ public interface Filter {
* @param values The values to be expanded into an SQL IN list.
* @return This FilterImpl instance (for method chaining).
*/
public Filter setParameterList(String name, Object[] values);
Filter setParameterList(String name, Object[] values);
/**
* Perform validation of the filter state. This is used to verify the
@ -68,5 +68,5 @@ public interface Filter {
*
* @throws HibernateException If the state is not currently valid.
*/
public void validate() throws HibernateException;
void validate() throws HibernateException;
}

View File

@ -24,5 +24,5 @@ public @interface FetchProfiles {
/**
* The aggregated fetch profiles.
*/
public FetchProfile[] value();
FetchProfile[] value();
}

View File

@ -416,17 +416,14 @@ public interface MetadataBuilder {
/**
* Allows unwrapping this builder as another, more specific type.
*
* @param type
* @param <T>
*
* @return The unwrapped builder.
*/
public <T extends MetadataBuilder> T unwrap(Class<T> type);
<T extends MetadataBuilder> T unwrap(Class<T> type);
/**
* Actually build the metamodel
*
* @return The built metadata.
*/
public Metadata build();
Metadata build();
}

View File

@ -101,8 +101,6 @@ public class MetadataSources implements Serializable {
/**
* Consider this an SPI, used by Quarkus
* @param serviceRegistry
* @param disableXmlMappingBinders
*/
public MetadataSources(ServiceRegistry serviceRegistry, boolean disableXmlMappingBinders) {
Objects.requireNonNull( serviceRegistry );

View File

@ -711,9 +711,6 @@ public interface SessionFactoryBuilder {
/**
* Allows unwrapping this builder as another, more specific type.
*
* @param type
* @param <T>
*
* @return The unwrapped builder.
*/
<T extends SessionFactoryBuilder> T unwrap(Class<T> type);

View File

@ -79,7 +79,6 @@ public abstract class AbstractScannerImpl implements Scanner {
* Handle <jar-file/> references from a persistence.xml file.
*
* JPA allows for to be specific
* @param url
* @return The resolved non-root URL
*/
protected URL resolveNonRootUrl(URL url) {

View File

@ -21,12 +21,12 @@ public interface MappingFileDescriptor {
*
* @return The mapping file resource name.
*/
public String getName();
String getName();
/**
* Retrieves access to the InputStream for the mapping file.
*
* @return Access to the InputStream for the mapping file.
*/
public InputStreamAccess getStreamAccess();
InputStreamAccess getStreamAccess();
}

View File

@ -19,12 +19,12 @@ public interface PackageDescriptor {
*
* @return The package name
*/
public String getName();
String getName();
/**
* Retrieves access to the InputStream for the {@code package-info.class} file.
*
* @return Access to the InputStream for the {@code package-info.class} file.
*/
public InputStreamAccess getStreamAccess();
InputStreamAccess getStreamAccess();
}

View File

@ -34,7 +34,7 @@ public interface ScanEnvironment {
*
* @see ScanOptions#canDetectUnlistedClassesInRoot()
*/
public URL getRootUrl();
URL getRootUrl();
/**
* Returns any non-root URLs for scanning. Can be null/empty to indicate
@ -44,7 +44,7 @@ public interface ScanEnvironment {
*
* @see ScanOptions#canDetectUnlistedClassesInNonRoot()
*/
public List<URL> getNonRootUrls();
List<URL> getNonRootUrls();
/**
* Returns any classes which are explicitly listed as part of the
@ -52,7 +52,7 @@ public interface ScanEnvironment {
*
* @return The explicitly listed classes
*/
public List<String> getExplicitlyListedClassNames();
List<String> getExplicitlyListedClassNames();
/**
* Returns the mapping files which are explicitly listed as part of the
@ -60,5 +60,5 @@ public interface ScanEnvironment {
*
* @return The explicitly listed mapping files.
*/
public List<String> getExplicitlyListedMappingFiles();
List<String> getExplicitlyListedMappingFiles();
}

View File

@ -19,7 +19,7 @@ public interface ScanOptions {
*
* @return Whether detection of classes from root url is allowed
*/
public boolean canDetectUnlistedClassesInRoot();
boolean canDetectUnlistedClassesInRoot();
/**
* Is detection of managed classes from non-root urls allowed? In strict JPA
@ -27,7 +27,7 @@ public interface ScanOptions {
*
* @return Whether detection of classes from non-root urls is allowed
*/
public boolean canDetectUnlistedClassesInNonRoot();
boolean canDetectUnlistedClassesInNonRoot();
/**
* Is detection of Hibernate Mapping files allowed?
@ -38,5 +38,5 @@ public interface ScanOptions {
* be removed once support for reading {@code hbm.xml} files is fully removed.
*/
@Deprecated
public boolean canDetectHibernateMappingFiles();
boolean canDetectHibernateMappingFiles();
}

View File

@ -19,19 +19,19 @@ public interface ScanResult {
*
* @return Descriptors for discovered packages
*/
public Set<PackageDescriptor> getLocatedPackages();
Set<PackageDescriptor> getLocatedPackages();
/**
* Returns descriptors for all classes discovered as part of the scan
*
* @return Descriptors for discovered classes
*/
public Set<ClassDescriptor> getLocatedClasses();
Set<ClassDescriptor> getLocatedClasses();
/**
* Returns descriptors for all mapping files discovered as part of the scan
*
* @return Descriptors for discovered mapping files
*/
public Set<MappingFileDescriptor> getLocatedMappingFiles();
Set<MappingFileDescriptor> getLocatedMappingFiles();
}

View File

@ -30,5 +30,5 @@ public interface Scanner {
* @param options The options to control the scanning.
* @param params The parameters for scanning
*/
public ScanResult scan(ScanEnvironment environment, ScanOptions options, ScanParameters params);
ScanResult scan(ScanEnvironment environment, ScanOptions options, ScanParameters params);
}

View File

@ -17,7 +17,7 @@ public interface ArchiveContext {
*
* @return {@code true} if it is the root url
*/
public boolean isRootUrl();
boolean isRootUrl();
/**
* Get the handler for the given entry, which generally is indicated by the entry type (a {@code .class} file, a
@ -27,5 +27,5 @@ public interface ArchiveContext {
*
* @return The appropriate handler for the entry
*/
public ArchiveEntryHandler obtainArchiveEntryHandler(ArchiveEntry entry);
ArchiveEntryHandler obtainArchiveEntryHandler(ArchiveEntry entry);
}

View File

@ -18,5 +18,5 @@ public interface ArchiveDescriptor {
*
* @param archiveContext The visitation context
*/
public void visitArchive(ArchiveContext archiveContext);
void visitArchive(ArchiveContext archiveContext);
}

View File

@ -21,7 +21,7 @@ public interface ArchiveDescriptorFactory {
*
* @return The descriptor
*/
public ArchiveDescriptor buildArchiveDescriptor(URL url);
ArchiveDescriptor buildArchiveDescriptor(URL url);
/**
* Build a descriptor of the archive indicated by the path relative to the given url
@ -31,7 +31,7 @@ public interface ArchiveDescriptorFactory {
*
* @return The descriptor
*/
public ArchiveDescriptor buildArchiveDescriptor(URL url, String path);
ArchiveDescriptor buildArchiveDescriptor(URL url, String path);
/**
* Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc)
@ -44,7 +44,7 @@ public interface ArchiveDescriptorFactory {
*
* @throws IllegalArgumentException Generally indicates a problem with malformed urls.
*/
public URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException;
URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException;
/**
* Not used!
@ -57,5 +57,5 @@ public interface ArchiveDescriptorFactory {
*/
@Deprecated
@SuppressWarnings("UnusedDeclaration")
public URL getURLFromPath(String jarPath);
URL getURLFromPath(String jarPath);
}

View File

@ -17,7 +17,7 @@ public interface ArchiveEntry {
*
* @return The name
*/
public String getName();
String getName();
/**
* Get the relative name of the entry within the archive. Typically what we are looking for here is
@ -25,12 +25,12 @@ public interface ArchiveEntry {
*
* @return The name relative to the archive root
*/
public String getNameWithinArchive();
String getNameWithinArchive();
/**
* Get access to the stream for the entry
*
* @return Obtain stream access to the entry
*/
public InputStreamAccess getStreamAccess();
InputStreamAccess getStreamAccess();
}

View File

@ -18,5 +18,5 @@ public interface ArchiveEntryHandler {
* @param entry The entry to handle
* @param context The visitation context
*/
public void handleEntry(ArchiveEntry entry, ArchiveContext context);
void handleEntry(ArchiveEntry entry, ArchiveContext context);
}

View File

@ -14,7 +14,7 @@ import org.hibernate.service.Service;
* @author Steve Ebersole
*/
public interface CfgXmlAccessService extends Service {
public static final String LOADED_CONFIG_KEY = "hibernate.boot.CfgXmlAccessService.key";
String LOADED_CONFIG_KEY = "hibernate.boot.CfgXmlAccessService.key";
LoadedConfig getAggregatedConfig();
}

View File

@ -10,6 +10,6 @@ package org.hibernate.boot.jaxb.hbm.spi;
* @author Steve Ebersole
*/
public interface AttributeMapping {
public String getName();
public String getAccess();
String getName();
String getAccess();
}

View File

@ -12,5 +12,5 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface ConfigParameterContainer {
public List<JaxbHbmConfigParameterType> getConfigParameters();
List<JaxbHbmConfigParameterType> getConfigParameters();
}

View File

@ -14,5 +14,5 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface SecondaryTableContainer {
public List<JaxbHbmSecondaryTableType> getJoin();
List<JaxbHbmSecondaryTableType> getJoin();
}

View File

@ -10,6 +10,6 @@ package org.hibernate.boot.jaxb.hbm.spi;
* @author Steve Ebersole
*/
public interface SimpleValueTypeInfo {
public String getTypeAttribute();
public JaxbHbmTypeSpecificationType getType();
String getTypeAttribute();
JaxbHbmTypeSpecificationType getType();
}

View File

@ -12,13 +12,13 @@ package org.hibernate.boot.jaxb.hbm.spi;
* @author Steve Ebersole
*/
public interface TableInformationContainer {
public String getSchema();
String getSchema();
public String getCatalog();
String getCatalog();
public String getTable();
String getTable();
public String getSubselect();
String getSubselect();
public String getSubselectAttribute();
String getSubselectAttribute();
}

View File

@ -14,5 +14,5 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface ToolingHintContainer {
public List<JaxbHbmToolingHintType> getToolingHints();
List<JaxbHbmToolingHintType> getToolingHints();
}

View File

@ -37,7 +37,6 @@ public class LocalSchemaLocator {
*
* @param schemaResourceName The local resource name to the schema
*
* @return
*/
public static URL resolveLocalSchemaUrl(String schemaResourceName) {
URL url = LocalSchemaLocator.class.getClassLoader().getResource( schemaResourceName );

View File

@ -25,7 +25,7 @@ public interface Binder {
*
* @return The bound JAXB model
*/
public Binding bind(Source source, Origin origin);
Binding bind(Source source, Origin origin);
/**
* Bind from an InputStream
@ -35,5 +35,5 @@ public interface Binder {
*
* @return The bound JAXB model
*/
public Binding bind(InputStream stream, Origin origin);
Binding bind(InputStream stream, Origin origin);
}

View File

@ -10,5 +10,5 @@ package org.hibernate.boot.model;
* @author Steve Ebersole
*/
public interface JavaTypeDescriptor {
public String getName();
String getName();
}

View File

@ -18,7 +18,7 @@ public interface EntityNaming {
*
* @return The entity class name.
*/
public String getClassName();
String getClassName();
/**
* The Hibernate entity name. This might be either:<ul>
@ -28,7 +28,7 @@ public interface EntityNaming {
*
* @return The Hibernate entity name
*/
public String getEntityName();
String getEntityName();
/**
* The JPA-specific entity name. See {@link jakarta.persistence.Entity#name()} for details.
@ -36,5 +36,5 @@ public interface EntityNaming {
* @return The JPA entity name, if one was specified. May return {@code null} if one
* was not explicitly specified.
*/
public String getJpaEntityName();
String getJpaEntityName();
}

View File

@ -130,8 +130,6 @@ public class Identifier implements Comparable<Identifier> {
* That final form using double-quote (") is the JPA-defined quoting pattern. Although
* it is the standard, it makes for ugly declarations.
*
* @param name
*
* @return {@code true} if the given identifier text is considered quoted; {@code false} otherwise.
*/
public static boolean isQuoted(String name) {

View File

@ -21,7 +21,7 @@ public interface ImplicitBasicColumnNameSource extends ImplicitNameSource {
*
* @return The AttributePath for the basic value
*/
public AttributePath getAttributePath();
AttributePath getAttributePath();
/**
* Is the basic column the "element column" for a collection?
@ -32,5 +32,5 @@ public interface ImplicitBasicColumnNameSource extends ImplicitNameSource {
* @return {@code true} if the column being named is the collection element
* column; {@code false} otherwise.
*/
public boolean isCollectionElement();
boolean isCollectionElement();
}

View File

@ -21,19 +21,19 @@ public interface ImplicitCollectionTableNameSource extends ImplicitNameSource {
*
* @return Owning entity's table name.
*/
public Identifier getOwningPhysicalTableName();
Identifier getOwningPhysicalTableName();
/**
* Access to entity naming information for the owning side.
*
* @return Owning entity naming information
*/
public EntityNaming getOwningEntityNaming();
EntityNaming getOwningEntityNaming();
/**
* Access to the name of the attribute, from the owning side, that defines the association.
*
* @return The owning side's attribute name.
*/
public AttributePath getOwningAttributePath();
AttributePath getOwningAttributePath();
}

View File

@ -14,7 +14,7 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface ImplicitConstraintNameSource extends ImplicitNameSource {
public Identifier getTableName();
public List<Identifier> getColumnNames();
public Identifier getUserProvidedIdentifier();
Identifier getTableName();
List<Identifier> getColumnNames();
Identifier getUserProvidedIdentifier();
}

View File

@ -17,5 +17,5 @@ public interface ImplicitDiscriminatorColumnNameSource extends ImplicitNameSourc
*
* @return The naming for the entity
*/
public EntityNaming getEntityNaming();
EntityNaming getEntityNaming();
}

View File

@ -17,5 +17,5 @@ public interface ImplicitEntityNameSource extends ImplicitNameSource {
*
* @return The entity's name information
*/
public EntityNaming getEntityNaming();
EntityNaming getEntityNaming();
}

View File

@ -12,6 +12,6 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface ImplicitForeignKeyNameSource extends ImplicitConstraintNameSource {
public Identifier getReferencedTableName();
public List<Identifier> getReferencedColumnNames();
Identifier getReferencedTableName();
List<Identifier> getReferencedColumnNames();
}

View File

@ -20,12 +20,12 @@ public interface ImplicitIdentifierColumnNameSource extends ImplicitNameSource {
*
* @return The entity name information
*/
public EntityNaming getEntityNaming();
EntityNaming getEntityNaming();
/**
* Access to the AttributePath for the entity's identifier attribute.
*
* @return The AttributePath for the entity's identifier attribute.
*/
public AttributePath getIdentifierAttributePath();
AttributePath getIdentifierAttributePath();
}

View File

@ -17,13 +17,13 @@ import org.hibernate.boot.model.source.spi.AttributePath;
* @see jakarta.persistence.JoinColumn
*/
public interface ImplicitJoinColumnNameSource extends ImplicitNameSource {
public static enum Nature {
enum Nature {
ELEMENT_COLLECTION,
ENTITY_COLLECTION,
ENTITY
}
public Nature getNature();
Nature getNature();
/**
* Access to entity naming information. For "normal" join columns, this will
@ -32,7 +32,7 @@ public interface ImplicitJoinColumnNameSource extends ImplicitNameSource {
*
* @return Owning entity naming information
*/
public EntityNaming getEntityNaming();
EntityNaming getEntityNaming();
/**
* Access to the name of the attribute that defines the association. For
@ -41,19 +41,19 @@ public interface ImplicitJoinColumnNameSource extends ImplicitNameSource {
*
* @return The owning side's attribute name.
*/
public AttributePath getAttributePath();
AttributePath getAttributePath();
/**
* Access the name of the table that is the target of the FK being described
*
* @return The referenced table name
*/
public Identifier getReferencedTableName();
Identifier getReferencedTableName();
/**
* Access the name of the column that is the target of the FK being described
*
* @return The referenced column name
*/
public Identifier getReferencedColumnName();
Identifier getReferencedColumnName();
}

View File

@ -21,33 +21,33 @@ public interface ImplicitJoinTableNameSource extends ImplicitNameSource {
*
* @return Owning entity's primary table name.
*/
public String getOwningPhysicalTableName();
String getOwningPhysicalTableName();
/**
* Access to entity naming information for the owning side.
*
* @return Owning entity naming information
*/
public EntityNaming getOwningEntityNaming();
EntityNaming getOwningEntityNaming();
/**
* Access to the physical name of the non-owning entity's primary table.
*
* @return Owning entity's primary table name.
*/
public String getNonOwningPhysicalTableName();
String getNonOwningPhysicalTableName();
/**
* Access to entity naming information for the owning side.
*
* @return Owning entity naming information
*/
public EntityNaming getNonOwningEntityNaming();
EntityNaming getNonOwningEntityNaming();
/**
* Access to the name of the attribute, from the owning side, that defines the association.
*
* @return The owning side's attribute name.
*/
public AttributePath getAssociationOwningAttributePath();
AttributePath getAssociationOwningAttributePath();
}

View File

@ -25,5 +25,5 @@ public interface ImplicitMapKeyColumnNameSource extends ImplicitNameSource {
*
* @return The AttributePath for the Map attribute
*/
public AttributePath getPluralAttributePath();
AttributePath getPluralAttributePath();
}

View File

@ -18,5 +18,5 @@ public interface ImplicitTenantIdColumnNameSource extends ImplicitNameSource {
*
* @return The entity name information
*/
public EntityNaming getEntityNaming();
EntityNaming getEntityNaming();
}

View File

@ -28,7 +28,7 @@ public interface NamingStrategyHelper {
*
* @return The implicit name
*/
public Identifier determineImplicitName(MetadataBuildingContext buildingContext);
Identifier determineImplicitName(MetadataBuildingContext buildingContext);
/**
* Called when the user has supplied an explicit name for the database object.
@ -47,7 +47,7 @@ public interface NamingStrategyHelper {
*
* @return The strategy-handled name.
*/
public Identifier handleExplicitName(String explicitName, MetadataBuildingContext buildingContext);
Identifier handleExplicitName(String explicitName, MetadataBuildingContext buildingContext);
/**
* Handle converting a logical name to a physical name
@ -66,5 +66,5 @@ public interface NamingStrategyHelper {
*
* @return The physical name
*/
public Identifier toPhysicalName(Identifier logicalName, MetadataBuildingContext buildingContext);
Identifier toPhysicalName(Identifier logicalName, MetadataBuildingContext buildingContext);
}

View File

@ -24,7 +24,7 @@ public interface AuxiliaryDatabaseObject extends Exportable, Serializable {
* @param dialect The dialect to check against.
* @return True if this database object does apply to the given dialect.
*/
public boolean appliesToDialect(Dialect dialect);
boolean appliesToDialect(Dialect dialect);
/**
* Defines a simple precedence. Should creation of this auxiliary object happen before creation of
@ -37,7 +37,7 @@ public interface AuxiliaryDatabaseObject extends Exportable, Serializable {
* @return {@code true} indicates this object should be created before tables; {@code false} indicates
* it should be created after.
*/
public boolean beforeTablesOnCreation();
boolean beforeTablesOnCreation();
/**
* Gets the SQL strings for creating the database object.
@ -91,7 +91,7 @@ public interface AuxiliaryDatabaseObject extends Exportable, Serializable {
* Additional, optional interface for AuxiliaryDatabaseObject that want to allow
* expansion of allowable dialects via mapping.
*/
public static interface Expandable {
public void addDialectScope(String dialectName);
interface Expandable {
void addDialectScope(String dialectName);
}
}

View File

@ -17,5 +17,5 @@ public interface ExportableProducer {
*
* @param database The database instance
*/
public void registerExportables(Database database);
void registerExportables(Database database);
}

View File

@ -17,5 +17,5 @@ public interface Loggable {
*
* @return The loggable representation
*/
public String toLoggableString();
String toLoggableString();
}

View File

@ -17,13 +17,13 @@ import org.hibernate.mapping.PersistentClass;
* @author Steve Ebersole
*/
public interface HbmLocalMetadataBuildingContext extends LocalMetadataBuildingContext {
public ToolingHintContext getToolingHintContext();
ToolingHintContext getToolingHintContext();
public String determineEntityName(EntityInfo entityElement);
String determineEntityName(EntityInfo entityElement);
public String determineEntityName(String entityName, String clazz);
String determineEntityName(String entityName, String clazz);
public String qualifyClassName(String name);
String qualifyClassName(String name);
public PersistentClass findEntityBinding(String entityName, String clazz);
PersistentClass findEntityBinding(String entityName, String clazz);
}

View File

@ -11,16 +11,16 @@ package org.hibernate.boot.model.source.spi;
*/
public interface AssociationSource {
public AttributeSource getAttributeSource();
AttributeSource getAttributeSource();
/**
* Obtain the name of the referenced entity.
*
* @return The name of the referenced entity
*/
public String getReferencedEntityName();
String getReferencedEntityName();
public boolean isIgnoreNotFound();
boolean isIgnoreNotFound();
public boolean isMappedBy();
boolean isMappedBy();
}

View File

@ -16,14 +16,14 @@ import org.hibernate.boot.model.source.internal.hbm.XmlElementMetadata;
* @author Steve Ebersole
*/
public interface AttributeSource extends ToolingHintContextContainer {
public XmlElementMetadata getSourceType();
XmlElementMetadata getSourceType();
/**
* Obtain the attribute name.
*
* @return The attribute name. {@code null} is NOT allowed!
*/
public String getName();
String getName();
/**
* Attributes are (coarsely speaking) either singular or plural.
@ -32,7 +32,7 @@ public interface AttributeSource extends ToolingHintContextContainer {
* to {@link SingularAttributeSource}); {@code false} indicates it is plural (and
* therefore castable to {@link PluralAttributeSource}).
*/
public boolean isSingular();
boolean isSingular();
/**
* This is only useful to log warnings when these deprecated attributes are populated.
@ -40,17 +40,17 @@ public interface AttributeSource extends ToolingHintContextContainer {
*
* @return The xml node name
*/
public String getXmlNodeName();
String getXmlNodeName();
public AttributePath getAttributePath();
public AttributeRole getAttributeRole();
AttributePath getAttributePath();
AttributeRole getAttributeRole();
/**
* Obtain information about the Hibernate type ({@link org.hibernate.type.Type}) for this attribute.
*
* @return The Hibernate type information
*/
public HibernateTypeSource getTypeInformation();
HibernateTypeSource getTypeInformation();
/**
* Obtain the name of the property accessor style used to access this attribute.
@ -59,7 +59,7 @@ public interface AttributeSource extends ToolingHintContextContainer {
*
* @see org.hibernate.property.access.spi.PropertyAccessStrategy
*/
public String getPropertyAccessorName();
String getPropertyAccessorName();
/**
* If the containing entity is using optimistic locking, should this
@ -69,5 +69,5 @@ public interface AttributeSource extends ToolingHintContextContainer {
*
* @return {@code true} indicates it should be included; {@code false}, it should not.
*/
public boolean isIncludedInOptimisticLocking();
boolean isIncludedInOptimisticLocking();
}

View File

@ -18,20 +18,20 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface AttributeSourceContainer extends ToolingHintContextContainer {
public AttributePath getAttributePathBase();
public AttributeRole getAttributeRoleBase();
AttributePath getAttributePathBase();
AttributeRole getAttributeRoleBase();
/**
* Obtain this container's attribute sources.
*
* @return The attribute sources.
*/
public List<AttributeSource> attributeSources();
List<AttributeSource> attributeSources();
/**
* Obtain the local binding context associated with this container.
*
* @return The local binding context
*/
public LocalMetadataBuildingContext getLocalMetadataBuildingContext();
LocalMetadataBuildingContext getLocalMetadataBuildingContext();
}

View File

@ -17,5 +17,5 @@ public interface CascadeStyleSource {
*
* @return The cascade styles.
*/
public String getCascadeStyleName();
String getCascadeStyleName();
}

View File

@ -17,24 +17,24 @@ public interface CollectionIdSource {
*
* @return The collection id column info.
*/
public ColumnSource getColumnSource();
ColumnSource getColumnSource();
/**
* Obtain information about the Hibernate type ({@link org.hibernate.type.Type}) for the collection id
*
* @return The Hibernate type information
*/
public HibernateTypeSource getTypeInformation();
HibernateTypeSource getTypeInformation();
/**
* Obtain the name of the identifier value generator.
*
* @return The identifier value generator name
*/
public String getGeneratorName();
String getGeneratorName();
/**
* @return The identifier generator configuration parameters
*/
public Map<String, String> getParameters();
Map<String, String> getParameters();
}

View File

@ -17,5 +17,5 @@ public interface DerivedValueSource extends RelationalValueSource {
*
* @return The derived value expression.
*/
public String getExpression();
String getExpression();
}

View File

@ -20,7 +20,7 @@ public interface DiscriminatorSource extends ImplicitDiscriminatorColumnNameSour
*
* @return The column/formula information
*/
public RelationalValueSource getDiscriminatorRelationalValueSource();
RelationalValueSource getDiscriminatorRelationalValueSource();
/**
* Obtain the discriminator type. Unlike the type of attributes, implementors
@ -29,7 +29,7 @@ public interface DiscriminatorSource extends ImplicitDiscriminatorColumnNameSour
*
* @return The discriminator type
*/
public String getExplicitHibernateTypeName();
String getExplicitHibernateTypeName();
/**
* "Forces" Hibernate to specify the allowed discriminator values, even when retrieving

View File

@ -16,8 +16,8 @@ import org.hibernate.boot.jaxb.hbm.spi.JaxbHbmTuplizerType;
* @author Steve Ebersole
*/
public interface EmbeddableMapping {
public String getClazz();
public List<JaxbHbmTuplizerType> getTuplizer();
String getClazz();
List<JaxbHbmTuplizerType> getTuplizer();
public String getParent();
String getParent();
}

View File

@ -17,5 +17,5 @@ public interface EmbeddableSourceContributor {
*
* @return The EmbeddableSource
*/
public EmbeddableSource getEmbeddableSource();
EmbeddableSource getEmbeddableSource();
}

View File

@ -20,7 +20,7 @@ public interface EntityHierarchySource {
*
* @return The root type source.
*/
public EntitySource getRoot();
EntitySource getRoot();
/**
* The inheritance type/strategy for the hierarchy.
@ -29,82 +29,82 @@ public interface EntityHierarchySource {
*
* @return The inheritance type.
*/
public InheritanceType getHierarchyInheritanceType();
InheritanceType getHierarchyInheritanceType();
/**
* Obtain source information about this entity's identifier.
*
* @return Identifier source information.
*/
public IdentifierSource getIdentifierSource();
IdentifierSource getIdentifierSource();
/**
* Obtain the source information about the attribute used for optimistic locking.
*
* @return the source information about the attribute used for optimistic locking
*/
public VersionAttributeSource getVersionAttributeSource();
VersionAttributeSource getVersionAttributeSource();
/**
* Obtain the source information about the discriminator attribute for single table inheritance
*
* @return the source information about the discriminator attribute for single table inheritance
*/
public DiscriminatorSource getDiscriminatorSource();
DiscriminatorSource getDiscriminatorSource();
/**
* Obtain the source information about the multi-tenancy discriminator for this entity
*
* @return the source information about the multi-tenancy discriminator for this entity
*/
public MultiTenancySource getMultiTenancySource();
MultiTenancySource getMultiTenancySource();
/**
* Is this root entity mutable?
*
* @return {@code true} indicates mutable; {@code false} non-mutable.
*/
public boolean isMutable();
boolean isMutable();
/**
* Should explicit polymorphism (querying) be applied to this entity?
*
* @return {@code true} indicates explicit polymorphism; {@code false} implicit.
*/
public boolean isExplicitPolymorphism();
boolean isExplicitPolymorphism();
/**
* Obtain the specified extra where condition to be applied to this entity.
*
* @return The extra where condition
*/
public String getWhere();
String getWhere();
/**
* Obtain the row-id name for this entity
*
* @return The row-id name
*/
public String getRowId();
String getRowId();
/**
* Obtain the optimistic locking style for this entity.
*
* @return The optimistic locking style.
*/
public OptimisticLockStyle getOptimisticLockStyle();
OptimisticLockStyle getOptimisticLockStyle();
/**
* Obtain the caching configuration for this entity.
*
* @return The caching configuration.
*/
public Caching getCaching();
Caching getCaching();
/**
* Obtain the natural id caching configuration for this entity.
*
* @return The natural id caching configuration.
*/
public Caching getNaturalIdCaching();
Caching getNaturalIdCaching();
}

View File

@ -20,5 +20,5 @@ public interface EntityNamingSource extends EntityNaming {
*
* @return The reference-able type name
*/
public String getTypeName();
String getTypeName();
}

View File

@ -10,5 +10,5 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface EntityNamingSourceContributor {
public EntityNamingSource getEntityNamingSource();
EntityNamingSource getEntityNamingSource();
}

View File

@ -13,6 +13,6 @@ import org.hibernate.engine.FetchTiming;
* @author Steve Ebersole
*/
public interface FetchCharacteristics {
public FetchTiming getFetchTiming();
public FetchStyle getFetchStyle();
FetchTiming getFetchTiming();
FetchStyle getFetchStyle();
}

View File

@ -10,6 +10,6 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface FetchCharacteristicsPluralAttribute extends FetchCharacteristics {
public Integer getBatchSize();
public boolean isExtraLazy();
Integer getBatchSize();
boolean isExtraLazy();
}

View File

@ -10,5 +10,5 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface FetchCharacteristicsSingularAssociation extends FetchCharacteristics {
public boolean isUnwrapProxies();
boolean isUnwrapProxies();
}

View File

@ -12,5 +12,5 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface FetchableAttributeSource {
public FetchCharacteristics getFetchCharacteristics();
FetchCharacteristics getFetchCharacteristics();
}

View File

@ -20,7 +20,7 @@ public interface FilterSource {
*
* @return The name.
*/
public String getName();
String getName();
/**
* Get the condition associated with the filter. Can be {@code null} in the case of a filter described
@ -30,7 +30,7 @@ public interface FilterSource {
*
* @see org.hibernate.boot.model.source.internal.hbm.FilterSourceImpl#getCondition()
*/
public String getCondition();
String getCondition();
/**
* Should Hibernate perform automatic alias injection into the supplied condition string? The default is to
@ -38,19 +38,19 @@ public interface FilterSource {
*
* @return {@code true} indicates auto injection should occur; {@code false} that it should not
*/
public boolean shouldAutoInjectAliases();
boolean shouldAutoInjectAliases();
/**
* Get the map of explicit alias to table name mappings.
*
* @return The alias to table map
*/
public Map<String, String> getAliasToTableMap();
Map<String, String> getAliasToTableMap();
/**
* Get the map of explicit alias to entity name mappings.
*
* @return The alias to entity map
*/
public Map<String, String> getAliasToEntityMap();
Map<String, String> getAliasToEntityMap();
}

View File

@ -17,14 +17,14 @@ public interface ForeignKeyContributingSource {
*
* @return The user supplied foreign key name.
*/
public String getExplicitForeignKeyName();
String getExplicitForeignKeyName();
/**
* Primarily exists to support JPA's {@code @ForeignKey(NO_CONSTRAINT)}.
*
* @return {@code true} if the FK constraint should be created, {@code false} if not.
*/
public boolean createForeignKeyConstraint();
boolean createForeignKeyConstraint();
/**
* Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced)
@ -32,5 +32,5 @@ public interface ForeignKeyContributingSource {
*
* @return {@code true}, if the cascade delete is enabled; {@code false}, otherwise.
*/
public boolean isCascadeDeleteEnabled();
boolean isCascadeDeleteEnabled();
}

View File

@ -23,42 +23,42 @@ public interface IdentifiableTypeSource extends AttributeSourceContainer {
*
* @return The origin of this source.
*/
public Origin getOrigin();
Origin getOrigin();
/**
* Get the hierarchy this belongs to.
*
* @return The hierarchy this belongs to.
*/
public EntityHierarchySource getHierarchy();
EntityHierarchySource getHierarchy();
/**
* Obtain the metadata-building context local to this entity source.
*
* @return The local binding context
*/
public LocalMetadataBuildingContext getLocalMetadataBuildingContext();
LocalMetadataBuildingContext getLocalMetadataBuildingContext();
/**
* Get the name of this type.
*
* @return The name of this type.
*/
public String getTypeName();
String getTypeName();
public IdentifiableTypeSource getSuperType();
IdentifiableTypeSource getSuperType();
/**
* Access the subtype sources for types extending from this type source,
*
* @return Sub-type sources
*/
public Collection<IdentifiableTypeSource> getSubTypes();
Collection<IdentifiableTypeSource> getSubTypes();
/**
* Access to the sources describing JPA lifecycle callbacks.
*
* @return JPA lifecycle callback sources
*/
public List<JpaCallbackSource> getJpaCallbackClasses();
List<JpaCallbackSource> getJpaCallbackClasses();
}

View File

@ -20,7 +20,7 @@ public interface IdentifierSource extends ToolingHintContextContainer {
*
* @return The identifier source's nature.
*/
public EntityIdentifierNature getNature();
EntityIdentifierNature getNature();
/**
* Obtain the identifier generator source.

View File

@ -25,12 +25,12 @@ public interface IdentifierSourceAggregatedComposite extends CompositeIdentifier
*
* @return The identifier attribute source.
*/
public SingularAttributeSourceEmbedded getIdentifierAttributeSource();
SingularAttributeSourceEmbedded getIdentifierAttributeSource();
/**
* Obtain the mapping of attributes annotated with {@link jakarta.persistence.MapsId}.
*
* @return The MapsId sources.
*/
public List<MapsIdSource> getMapsIdSources();
List<MapsIdSource> getMapsIdSources();
}

View File

@ -22,12 +22,12 @@ public interface IdentifierSourceNonAggregatedComposite extends CompositeIdentif
*
* @return The identifier attribute source.
*/
public List<SingularAttributeSource> getAttributeSourcesMakingUpIdentifier();
List<SingularAttributeSource> getAttributeSourcesMakingUpIdentifier();
/**
* Retrieve the source information for the {@link jakarta.persistence.IdClass} definition
*
* @return The IdClass source information, or {@code null} if none.
*/
public EmbeddableSource getIdClassSource();
EmbeddableSource getIdClassSource();
}

View File

@ -18,13 +18,13 @@ public interface IdentifierSourceSimple extends IdentifierSource {
*
* @return The identifier attribute source.
*/
public SingularAttributeSource getIdentifierAttributeSource();
SingularAttributeSource getIdentifierAttributeSource();
/**
* Returns the "unsaved" entity identifier value.
*
* @return the "unsaved" entity identifier value
*/
public String getUnsavedValue();
String getUnsavedValue();
}

View File

@ -18,7 +18,7 @@ public interface InLineViewSource extends TableSpecificationSource {
*
* @return The {@code SQL SELECT} statement
*/
public String getSelectStatement();
String getSelectStatement();
public String getLogicalName();
String getLogicalName();
}

View File

@ -12,5 +12,5 @@ import org.hibernate.boot.model.JavaTypeDescriptor;
* @author Steve Ebersole
*/
public interface JavaTypeDescriptorResolvable {
public void resolveJavaTypeDescriptor(JavaTypeDescriptor descriptor);
void resolveJavaTypeDescriptor(JavaTypeDescriptor descriptor);
}

View File

@ -18,5 +18,5 @@ public interface JoinedSubclassEntitySource extends SubclassEntitySource, Foreig
*
* @return The {@code PrimaryKeyJoinColumnSource} lists defined on the joined subclass or {@code null} otherwise.
*/
public List<ColumnSource> getPrimaryKeyColumnSources();
List<ColumnSource> getPrimaryKeyColumnSources();
}

View File

@ -20,5 +20,5 @@ public interface LocalMetadataBuildingContext extends MetadataBuildingContext {
*
* @return The origin
*/
public Origin getOrigin();
Origin getOrigin();
}

View File

@ -18,12 +18,12 @@ public interface MapsIdSource {
*
* @return The corresponding id attribute name.
*/
public String getMappedIdAttributeName();
String getMappedIdAttributeName();
/**
* The attribute source information
*
* @return The association attribute information
*/
public SingularAttributeSourceToOne getAssociationAttributeSource();
SingularAttributeSourceToOne getAssociationAttributeSource();
}

View File

@ -17,9 +17,9 @@ public interface MultiTenancySource {
*
* @return The column/formula information
*/
public RelationalValueSource getRelationalValueSource();
RelationalValueSource getRelationalValueSource();
public boolean isShared();
boolean isShared();
public boolean bindAsParameter();
boolean bindAsParameter();
}

View File

@ -11,5 +11,5 @@ package org.hibernate.boot.model.source.spi;
* @author Gail Badner
*/
public interface PluralAttributeElementSource {
public PluralAttributeElementNature getNature();
PluralAttributeElementNature getNature();
}

View File

@ -18,5 +18,5 @@ public interface PluralAttributeElementSourceBasic
extends PluralAttributeElementSource,
RelationalValueSourceContainer,
ImplicitBasicColumnNameSource {
public HibernateTypeSource getExplicitHibernateTypeSource();
HibernateTypeSource getExplicitHibernateTypeSource();
}

View File

@ -15,19 +15,19 @@ package org.hibernate.boot.model.source.spi;
public interface PluralAttributeElementSourceManyToMany
extends PluralAttributeElementSourceAssociation, RelationalValueSourceContainer,
ForeignKeyContributingSource, Orderable {
public String getReferencedEntityName();
String getReferencedEntityName();
public String getReferencedEntityAttributeName();
String getReferencedEntityAttributeName();
public boolean isIgnoreNotFound();
boolean isIgnoreNotFound();
public String getExplicitForeignKeyName();
String getExplicitForeignKeyName();
public boolean isUnique();
boolean isUnique();
public FilterSource[] getFilterSources();
FilterSource[] getFilterSources();
public String getWhere();
String getWhere();
public FetchCharacteristics getFetchCharacteristics();
FetchCharacteristics getFetchCharacteristics();
}

View File

@ -13,9 +13,9 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface PluralAttributeElementSourceOneToMany extends PluralAttributeElementSourceAssociation {
public String getReferencedEntityName();
String getReferencedEntityName();
public boolean isIgnoreNotFound();
boolean isIgnoreNotFound();
public String getXmlNodeName();
String getXmlNodeName();
}

View File

@ -14,6 +14,6 @@ package org.hibernate.boot.model.source.spi;
public interface PluralAttributeKeySource
extends ForeignKeyContributingSource,
RelationalValueSourceContainer {
public String getReferencedPropertyName();
public boolean isCascadeDeleteEnabled();
String getReferencedPropertyName();
boolean isCascadeDeleteEnabled();
}

View File

@ -25,14 +25,14 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface PluralAttributeMapKeySource extends PluralAttributeIndexSource {
public static enum Nature {
enum Nature {
BASIC,
EMBEDDED,
MANY_TO_MANY,
ANY
}
public Nature getMapKeyNature();
Nature getMapKeyNature();
/**
* Is this plural attribute index source for an attribute of the referenced entity
@ -44,5 +44,5 @@ public interface PluralAttributeMapKeySource extends PluralAttributeIndexSource
* @return true, if this plural attribute index source for an attribute of the referenced
* entity; false, otherwise.
*/
public boolean isReferencedEntityAttribute();
boolean isReferencedEntityAttribute();
}

View File

@ -17,52 +17,52 @@ public interface PluralAttributeSource
FetchableAttributeSource,
CascadeStyleSource {
public PluralAttributeNature getNature();
PluralAttributeNature getNature();
public CollectionIdSource getCollectionIdSource();
CollectionIdSource getCollectionIdSource();
public PluralAttributeKeySource getKeySource();
PluralAttributeKeySource getKeySource();
public PluralAttributeElementSource getElementSource();
PluralAttributeElementSource getElementSource();
public FilterSource[] getFilterSources();
FilterSource[] getFilterSources();
public TableSpecificationSource getCollectionTableSpecificationSource();
TableSpecificationSource getCollectionTableSpecificationSource();
public String getCollectionTableComment();
String getCollectionTableComment();
public String getCollectionTableCheck();
String getCollectionTableCheck();
/**
* Obtain any additional table names on which to synchronize (auto flushing) this entity.
*
* @return Additional synchronized table names or 0 sized String array, never return null.
*/
public String[] getSynchronizedTableNames();
String[] getSynchronizedTableNames();
public Caching getCaching();
Caching getCaching();
public String getCustomPersisterClassName();
String getCustomPersisterClassName();
public String getWhere();
String getWhere();
public boolean isInverse();
boolean isInverse();
public boolean isMutable();
boolean isMutable();
public String getCustomLoaderName();
String getCustomLoaderName();
public CustomSql getCustomSqlInsert();
CustomSql getCustomSqlInsert();
public CustomSql getCustomSqlUpdate();
CustomSql getCustomSqlUpdate();
public CustomSql getCustomSqlDelete();
CustomSql getCustomSqlDelete();
public CustomSql getCustomSqlDeleteAll();
CustomSql getCustomSqlDeleteAll();
public String getMappedBy();
String getMappedBy();
public boolean usesJoinTable();
boolean usesJoinTable();
@Override
FetchCharacteristicsPluralAttribute getFetchCharacteristics();

View File

@ -12,5 +12,5 @@ import org.hibernate.boot.model.source.internal.hbm.IndexedPluralAttributeSource
* @author Steve Ebersole
*/
public interface PluralAttributeSourceArray extends IndexedPluralAttributeSource {
public String getElementClass();
String getElementClass();
}

View File

@ -18,22 +18,22 @@ public interface RelationalValueSource {
/**
* @return returns the name of the table that contains this value.
*/
public String getContainingTableName();
String getContainingTableName();
/**
* Retrieve the nature of this relational value. Is it a column? Or is it a derived value (formula)?
*
* @return The nature.
*/
public Nature getNature();
Nature getNature();
public static enum Nature {
enum Nature {
COLUMN( ColumnSource.class ),
DERIVED( DerivedValueSource.class );
private final Class<? extends RelationalValueSource> specificContractClass;
private Nature(Class<? extends RelationalValueSource> specificContractClass) {
Nature(Class<? extends RelationalValueSource> specificContractClass) {
this.specificContractClass = specificContractClass;
}

View File

@ -31,6 +31,6 @@ public interface RelationalValueSourceContainer extends ColumnBindingDefaults {
*
* @return The contained {@link RelationalValueSource} references.
*/
public List<RelationalValueSource> getRelationalValueSources();
List<RelationalValueSource> getRelationalValueSources();
}

View File

@ -20,7 +20,7 @@ public interface SecondaryTableSource extends ForeignKeyContributingSource {
*
* @return The joined table.
*/
public TableSpecificationSource getTableSource();
TableSpecificationSource getTableSource();
/**
* Retrieves the columns defines as making up this secondary tables primary key. Each entry should have
@ -29,38 +29,38 @@ public interface SecondaryTableSource extends ForeignKeyContributingSource {
*
* @return The columns defining the primary key for this secondary table
*/
public List<ColumnSource> getPrimaryKeyColumnSources();
List<ColumnSource> getPrimaryKeyColumnSources();
public String getLogicalTableNameForContainedColumns();
String getLogicalTableNameForContainedColumns();
public String getComment();
String getComment();
public FetchStyle getFetchStyle();
FetchStyle getFetchStyle();
public boolean isInverse();
boolean isInverse();
public boolean isOptional();
boolean isOptional();
public boolean isCascadeDeleteEnabled();
boolean isCascadeDeleteEnabled();
/**
* Obtain the custom SQL to be used for inserts for this entity
*
* @return The custom insert SQL
*/
public CustomSql getCustomSqlInsert();
CustomSql getCustomSqlInsert();
/**
* Obtain the custom SQL to be used for updates for this entity
*
* @return The custom update SQL
*/
public CustomSql getCustomSqlUpdate();
CustomSql getCustomSqlUpdate();
/**
* Obtain the custom SQL to be used for deletes for this entity
*
* @return The custom delete SQL
*/
public CustomSql getCustomSqlDelete();
CustomSql getCustomSqlDelete();
}

View File

@ -20,21 +20,21 @@ public interface SingularAttributeSource extends AttributeSource {
* @return {@code true} indicates the attribute is virtual, meaning it does NOT exist on the domain model;
* {@code false} indicates the attribute physically exists.
*/
public boolean isVirtualAttribute();
boolean isVirtualAttribute();
/**
* Obtain the nature of this attribute type.
*
* @return The attribute type nature
*/
public SingularAttributeNature getSingularAttributeNature();
SingularAttributeNature getSingularAttributeNature();
/**
* Obtain a description of if/when the attribute value is generated by the database.
*
* @return The attribute value generation information
*/
public GenerationTiming getGenerationTiming();
GenerationTiming getGenerationTiming();
/**
* Did the mapping specify that the given attribute value(s) should be inserted into the database?
@ -55,13 +55,13 @@ public interface SingularAttributeSource extends AttributeSource {
*
* @return {@code true} to indicate the attribute should be lazily loaded by bytecode enhancement?
*/
public boolean isBytecodeLazy();
boolean isBytecodeLazy();
/**
* Retrieve the natural id mutability
*
* @return The mutability, see enum for meanings
*/
public NaturalIdMutability getNaturalIdMutability();
NaturalIdMutability getNaturalIdMutability();
}

View File

@ -12,7 +12,7 @@ import java.util.List;
* @author Steve Ebersole
*/
public interface SingularAttributeSourceOneToOne extends SingularAttributeSourceToOne {
public List<DerivedValueSource> getFormulaSources();
List<DerivedValueSource> getFormulaSources();
boolean isConstrained();
}

View File

@ -20,14 +20,14 @@ public interface SingularAttributeSourceToOne
AssociationSource,
CascadeStyleSource{
public String getReferencedEntityAttributeName();
public String getReferencedEntityName();
public ForeignKeyDirection getForeignKeyDirection();
String getReferencedEntityAttributeName();
String getReferencedEntityName();
ForeignKeyDirection getForeignKeyDirection();
@Override
FetchCharacteristicsSingularAssociation getFetchCharacteristics();
public boolean isUnique();
boolean isUnique();
public Boolean isEmbedXml();
Boolean isEmbedXml();
}

View File

@ -17,15 +17,15 @@ public interface TableSpecificationSource {
*
* @return The schema name. If {@code null}, the binder will apply the default.
*/
public String getExplicitSchemaName();
String getExplicitSchemaName();
/**
* Obtain the supplied catalog name
*
* @return The catalog name. If {@code null}, the binder will apply the default.
*/
public String getExplicitCatalogName();
String getExplicitCatalogName();
public String getComment();
String getComment();
}

View File

@ -10,5 +10,5 @@ package org.hibernate.boot.model.source.spi;
* @author Steve Ebersole
*/
public interface ToolingHintContextContainer {
public ToolingHintContext getToolingHintContext();
ToolingHintContext getToolingHintContext();
}

View File

@ -28,5 +28,5 @@ public interface StandardServiceInitiator<R extends Service> extends ServiceInit
*
* @return The initiated service.
*/
public R initiateService(Map configurationValues, ServiceRegistryImplementor registry);
R initiateService(Map configurationValues, ServiceRegistryImplementor registry);
}

View File

@ -109,7 +109,6 @@ public interface ClassLoaderService extends Service, Stoppable {
* fine when the object doesn't exist.
* In case of other errors, implementations are expected to log
* a warning but it's still not treated as a fatal error.
* @param packageName
* @return the matching Package, or null.
*/
Package packageForNameOrNull(String packageName);

View File

@ -20,19 +20,19 @@ public interface StrategyRegistration<T> {
*
* @return The strategy contract/role.
*/
public Class<T> getStrategyRole();
Class<T> getStrategyRole();
/**
* Any registered names for this strategy registration.
*
* @return The registered selection names.
*/
public Iterable<String> getSelectorNames();
Iterable<String> getSelectorNames();
/**
* The strategy implementation class.
*
* @return The strategy implementation.
*/
public Class<? extends T> getStrategyImplementation();
Class<? extends T> getStrategyImplementation();
}

View File

@ -18,5 +18,5 @@ public interface StrategyRegistrationProvider {
*
* @return All StrategyRegistrations
*/
public Iterable<StrategyRegistration> getStrategyRegistrations();
Iterable<StrategyRegistration> getStrategyRegistrations();
}

View File

@ -116,9 +116,6 @@ public class DefaultJtaPlatformSelector implements LazyServiceResolver<JtaPlatfo
/**
* Special case: we have several old fully qualified classnames which need to
* be remapped to their new names for backwards compatibility reasons.
* @param name
* @param defaultJtaPlatformSelector
* @return
*/
private static Class<? extends JtaPlatform> caseLegacy(
final String name,

View File

@ -25,7 +25,7 @@ public interface ClassLoaderAccess {
*
* @return The Class.
*/
public <T> Class<T> classForName(String name);
<T> Class<T> classForName(String name);
/**
* Locate a resource by name
@ -34,5 +34,5 @@ public interface ClassLoaderAccess {
*
* @return The located resource; may return {@code null} to indicate the resource was not found
*/
public URL locateResource(String resourceName);
URL locateResource(String resourceName);
}

View File

@ -21,5 +21,5 @@ import org.hibernate.boot.registry.StandardServiceRegistry;
* @since 5.0
*/
public interface MetadataBuilderInitializer {
public void contribute(MetadataBuilder metadataBuilder, StandardServiceRegistry serviceRegistry);
void contribute(MetadataBuilder metadataBuilder, StandardServiceRegistry serviceRegistry);
}

View File

@ -25,5 +25,5 @@ public interface MetadataContributor {
* @param metadataCollector The metadata collector, representing the in-flight metadata being built
* @param jandexIndex The Jandex index
*/
public void contribute(InFlightMetadataCollector metadataCollector, IndexView jandexIndex);
void contribute(InFlightMetadataCollector metadataCollector, IndexView jandexIndex);
}

View File

@ -21,5 +21,5 @@ public interface MetadataSourcesContributor {
*
* @param metadataSources The MetadataSources, to which to contribute.
*/
public void contribute(MetadataSources metadataSources);
void contribute(MetadataSources metadataSources);
}

View File

@ -17,7 +17,7 @@ public interface NaturalIdUniqueKeyBinder {
*
* @param attributeBinding The attribute binding that is part of the natural-id
*/
public void addAttributeBinding(Property attributeBinding);
void addAttributeBinding(Property attributeBinding);
public void process();
void process();
}

Some files were not shown because too many files have changed in this diff Show More