HHH-16353 Convert comments to Javadoc for Hibernate Reactive

So they get moved with any refactoring
This commit is contained in:
Davide D'Alto 2023-03-22 16:26:12 +01:00 committed by Davide D'Alto
parent d63ff31b59
commit 5b2b7b4ab9
14 changed files with 90 additions and 29 deletions

View File

@ -27,7 +27,9 @@ public abstract class AbstractAttributeMapping implements AttributeMapping {
this.declaringType = declaringType; this.declaringType = declaringType;
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AbstractAttributeMapping(AbstractAttributeMapping original) { protected AbstractAttributeMapping(AbstractAttributeMapping original) {
this( original.name, original.fetchableIndex, original.declaringType ); this( original.name, original.fetchableIndex, original.declaringType );
} }

View File

@ -84,7 +84,9 @@ public abstract class AbstractEntityCollectionPart implements EntityCollectionPa
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AbstractEntityCollectionPart(AbstractEntityCollectionPart original) { protected AbstractEntityCollectionPart(AbstractEntityCollectionPart original) {
this.navigableRole = original.navigableRole; this.navigableRole = original.navigableRole;
this.nature = original.nature; this.nature = original.nature;
@ -220,7 +222,9 @@ public abstract class AbstractEntityCollectionPart implements EntityCollectionPa
return fetch; return fetch;
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EagerCollectionFetch buildEagerCollectionFetch( protected EagerCollectionFetch buildEagerCollectionFetch(
NavigablePath fetchedPath, NavigablePath fetchedPath,
PluralAttributeMapping fetchedAttribute, PluralAttributeMapping fetchedAttribute,
@ -236,7 +240,9 @@ public abstract class AbstractEntityCollectionPart implements EntityCollectionPa
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetch buildEntityFetchJoined( protected EntityFetch buildEntityFetchJoined(
FetchParent fetchParent, FetchParent fetchParent,
AbstractEntityCollectionPart abstractEntityCollectionPart, AbstractEntityCollectionPart abstractEntityCollectionPart,

View File

@ -49,7 +49,9 @@ public abstract class AbstractSingularAttributeMapping
this.propertyAccess = propertyAccess; this.propertyAccess = propertyAccess;
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AbstractSingularAttributeMapping( AbstractSingularAttributeMapping original ) { protected AbstractSingularAttributeMapping( AbstractSingularAttributeMapping original ) {
super( original ); super( original );
this.propertyAccess = original.propertyAccess; this.propertyAccess = original.propertyAccess;

View File

@ -57,7 +57,9 @@ public abstract class AbstractStateArrayContributorMapping
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AbstractStateArrayContributorMapping(AbstractStateArrayContributorMapping original) { protected AbstractStateArrayContributorMapping(AbstractStateArrayContributorMapping original) {
super( original ); super( original );
this.attributeMetadata = original.attributeMetadata; this.attributeMetadata = original.attributeMetadata;

View File

@ -446,6 +446,9 @@ public class MappingModelCreationHelper {
); );
} }
/**
* For Hibernate Reactive
*/
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public static PluralAttributeMapping buildPluralAttributeMapping( public static PluralAttributeMapping buildPluralAttributeMapping(
String attrName, String attrName,
@ -457,7 +460,6 @@ public class MappingModelCreationHelper {
CascadeStyle cascadeStyle, CascadeStyle cascadeStyle,
FetchMode fetchMode, FetchMode fetchMode,
MappingModelCreationProcess creationProcess, MappingModelCreationProcess creationProcess,
// For Hibernate Reactive
Function<PluralAttributeMappingImpl, PluralAttributeMappingImpl> mappingConverter) { Function<PluralAttributeMappingImpl, PluralAttributeMappingImpl> mappingConverter) {
final Collection bootValueMapping = (Collection) bootProperty.getValue(); final Collection bootValueMapping = (Collection) bootProperty.getValue();
@ -1583,7 +1585,9 @@ public class MappingModelCreationHelper {
} }
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
public static ToOneAttributeMapping buildSingularAssociationAttributeMapping( public static ToOneAttributeMapping buildSingularAssociationAttributeMapping(
String attrName, String attrName,
NavigableRole navigableRole, NavigableRole navigableRole,

View File

@ -73,6 +73,9 @@ public class OneToManyCollectionPart extends AbstractEntityCollectionPart implem
} }
} }
/**
* For Hibernate Reactive
*/
protected OneToManyCollectionPart(OneToManyCollectionPart original) { protected OneToManyCollectionPart(OneToManyCollectionPart original) {
super( original ); super( original );
this.mapKeyPropertyName = original.mapKeyPropertyName; this.mapKeyPropertyName = original.mapKeyPropertyName;

View File

@ -193,7 +193,9 @@ public class PluralAttributeMappingImpl
injectAttributeMapping( elementDescriptor, indexDescriptor, collectionDescriptor, this ); injectAttributeMapping( elementDescriptor, indexDescriptor, collectionDescriptor, this );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected PluralAttributeMappingImpl(PluralAttributeMappingImpl original) { protected PluralAttributeMappingImpl(PluralAttributeMappingImpl original) {
super( original ); super( original );
this.propertyAccess = original.propertyAccess; this.propertyAccess = original.propertyAccess;
@ -476,7 +478,9 @@ public class PluralAttributeMappingImpl
} }
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected Fetch buildDelayedCollectionFetch( protected Fetch buildDelayedCollectionFetch(
NavigablePath fetchedPath, NavigablePath fetchedPath,
PluralAttributeMapping fetchedAttribute, PluralAttributeMapping fetchedAttribute,
@ -485,7 +489,9 @@ public class PluralAttributeMappingImpl
return new DelayedCollectionFetch( fetchedPath, fetchedAttribute, fetchParent, collectionKeyResult ); return new DelayedCollectionFetch( fetchedPath, fetchedAttribute, fetchParent, collectionKeyResult );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected Fetch buildSelectEagerCollectionFetch( protected Fetch buildSelectEagerCollectionFetch(
NavigablePath fetchedPath, NavigablePath fetchedPath,
PluralAttributeMapping fetchedAttribute, PluralAttributeMapping fetchedAttribute,
@ -494,7 +500,9 @@ public class PluralAttributeMappingImpl
return new SelectEagerCollectionFetch( fetchedPath, fetchedAttribute, collectionKeyDomainResult, fetchParent ); return new SelectEagerCollectionFetch( fetchedPath, fetchedAttribute, collectionKeyDomainResult, fetchParent );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected Fetch buildEagerCollectionFetch( protected Fetch buildEagerCollectionFetch(
NavigablePath fetchedPath, NavigablePath fetchedPath,
PluralAttributeMapping fetchedAttribute, PluralAttributeMapping fetchedAttribute,

View File

@ -157,7 +157,9 @@ public class ToOneAttributeMapping
private String identifyingColumnsTableExpression; private String identifyingColumnsTableExpression;
private boolean canUseParentTableGroup; private boolean canUseParentTableGroup;
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected ToOneAttributeMapping(ToOneAttributeMapping original) { protected ToOneAttributeMapping(ToOneAttributeMapping original) {
super( original ); super( original );
navigableRole = original.navigableRole; navigableRole = original.navigableRole;
@ -1233,7 +1235,9 @@ public class ToOneAttributeMapping
} }
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetch buildEntityDelayedFetch( protected EntityFetch buildEntityDelayedFetch(
FetchParent fetchParent, FetchParent fetchParent,
ToOneAttributeMapping fetchedAttribute, ToOneAttributeMapping fetchedAttribute,
@ -1243,7 +1247,9 @@ public class ToOneAttributeMapping
return new EntityDelayedFetchImpl( fetchParent, fetchedAttribute, navigablePath, keyResult, selectByUniqueKey ); return new EntityDelayedFetchImpl( fetchParent, fetchedAttribute, navigablePath, keyResult, selectByUniqueKey );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetch buildEntityFetchSelect( protected EntityFetch buildEntityFetchSelect(
FetchParent fetchParent, FetchParent fetchParent,
ToOneAttributeMapping fetchedAttribute, ToOneAttributeMapping fetchedAttribute,
@ -1261,7 +1267,9 @@ public class ToOneAttributeMapping
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetch buildEntityFetchJoined( protected EntityFetch buildEntityFetchJoined(
FetchParent fetchParent, FetchParent fetchParent,
ToOneAttributeMapping toOneMapping, ToOneAttributeMapping toOneMapping,

View File

@ -1011,13 +1011,17 @@ public abstract class AbstractEntityPersister
return rowIdName != null; return rowIdName != null;
} }
//used by Hibernate Reactive /**
* For Hibernate Reactive
*/
@SuppressWarnings("unused") @SuppressWarnings("unused")
public boolean[][] getPropertyColumnUpdateable() { public boolean[][] getPropertyColumnUpdateable() {
return propertyColumnUpdateable; return propertyColumnUpdateable;
} }
//used by Hibernate Reactive /**
* For Hibernate Reactive
*/
@SuppressWarnings("unused") @SuppressWarnings("unused")
public boolean[][] getPropertyColumnInsertable() { public boolean[][] getPropertyColumnInsertable() {
return propertyColumnInsertable; return propertyColumnInsertable;
@ -1580,7 +1584,9 @@ public abstract class AbstractEntityPersister
return result; return result;
} }
// called by Hibernate Reactive /**
* Called by Hibernate Reactive
*/
protected boolean initializeLazyProperty( protected boolean initializeLazyProperty(
final String fieldName, final String fieldName,
final Object entity, final Object entity,
@ -2557,7 +2563,9 @@ public abstract class AbstractEntityPersister
} }
// used by Hibernate Reactive /**
* Called by Hibernate Reactive
*/
@SuppressWarnings("unused") @SuppressWarnings("unused")
protected String[][] getLazyPropertyColumnAliases() { protected String[][] getLazyPropertyColumnAliases() {
return lazyPropertyColumnAliases; return lazyPropertyColumnAliases;
@ -5470,7 +5478,9 @@ public abstract class AbstractEntityPersister
return null; return null;
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EmbeddedAttributeMapping buildEmbeddedAttributeMapping( protected EmbeddedAttributeMapping buildEmbeddedAttributeMapping(
String attrName, String attrName,
int stateArrayPosition, int stateArrayPosition,
@ -5502,7 +5512,9 @@ public abstract class AbstractEntityPersister
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AttributeMapping buildSingularAssociationAttributeMapping( protected AttributeMapping buildSingularAssociationAttributeMapping(
String attrName, String attrName,
NavigableRole navigableRole, NavigableRole navigableRole,
@ -5530,7 +5542,9 @@ public abstract class AbstractEntityPersister
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected AttributeMapping buildPluralAttributeMapping( protected AttributeMapping buildPluralAttributeMapping(
String attrName, String attrName,
int stateArrayPosition, int stateArrayPosition,

View File

@ -337,7 +337,9 @@ public class TableBasedInsertHandler implements InsertHandler {
); );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected ExecutionDelegate buildExecutionDelegate( protected ExecutionDelegate buildExecutionDelegate(
SqmInsertStatement<?> sqmInsert, SqmInsertStatement<?> sqmInsert,
MultiTableSqmMutationConverter sqmConverter, MultiTableSqmMutationConverter sqmConverter,

View File

@ -473,7 +473,9 @@ public class UpdateExecutionDelegate implements TableBasedUpdateHandler.Executio
return new SqlTuple( expressions, null ); return new SqlTuple( expressions, null );
} }
// FOr Hibernate Reactive /**
* For Hibernate Reactive
*/
protected TemporaryTable getIdTable() { protected TemporaryTable getIdTable() {
return idTable; return idTable;

View File

@ -75,7 +75,9 @@ public class EmbeddableFetchImpl extends AbstractFetchParent implements Embeddab
afterInitialize( this, creationState ); afterInitialize( this, creationState );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EmbeddableFetchImpl(EmbeddableFetchImpl original) { protected EmbeddableFetchImpl(EmbeddableFetchImpl original) {
super( original.getFetchContainer(), original.getNavigablePath() ); super( original.getFetchContainer(), original.getNavigablePath() );
fetchParent = original.fetchParent; fetchParent = original.fetchParent;

View File

@ -79,7 +79,9 @@ public class EntityFetchJoinedImpl extends AbstractNonLazyEntityFetch {
this.entityResult.afterInitialize( this, creationState ); this.entityResult.afterInitialize( this, creationState );
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetchJoinedImpl(EntityFetchJoinedImpl original ) { protected EntityFetchJoinedImpl(EntityFetchJoinedImpl original ) {
super( original.getFetchParent(), original.getReferencedModePart(), original.getNavigablePath() ); super( original.getFetchParent(), original.getReferencedModePart(), original.getNavigablePath() );
this.entityResult = original.entityResult; this.entityResult = original.entityResult;
@ -109,7 +111,9 @@ public class EntityFetchJoinedImpl extends AbstractNonLazyEntityFetch {
).asEntityInitializer(); ).asEntityInitializer();
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected Initializer buildEntityJoinedFetchInitializer( protected Initializer buildEntityJoinedFetchInitializer(
EntityResultGraphNode resultDescriptor, EntityResultGraphNode resultDescriptor,
EntityValuedFetchable referencedFetchable, EntityValuedFetchable referencedFetchable,

View File

@ -41,7 +41,9 @@ public class EntityFetchSelectImpl extends AbstractNonJoinedEntityFetch {
} }
// For Hibernate Reactive /**
* For Hibernate Reactive
*/
protected EntityFetchSelectImpl(EntityFetchSelectImpl original) { protected EntityFetchSelectImpl(EntityFetchSelectImpl original) {
super( original.getNavigablePath(), original.getFetchedMapping(), original.getFetchParent() ); super( original.getNavigablePath(), original.getFetchedMapping(), original.getFetchParent() );
this.keyResult = original.keyResult; this.keyResult = original.keyResult;