HHH-15581 Extend the scope of several methods
This way Hibernate Reactive can access or override them.
This commit is contained in:
parent
3897f61136
commit
1a9a3c1c4b
|
@ -112,18 +112,45 @@ public class EntityUpdateAction extends EntityAction {
|
|||
: naturalIdMapping.extractNaturalIdFromEntityState( previousState, session );
|
||||
}
|
||||
|
||||
public Object[] getState() {
|
||||
protected Object[] getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public Object[] getPreviousState() {
|
||||
protected Object[] getPreviousState() {
|
||||
return previousState;
|
||||
}
|
||||
|
||||
protected Object getNextVersion() {
|
||||
return nextVersion;
|
||||
}
|
||||
|
||||
protected int[] getDirtyFields() {
|
||||
return dirtyFields;
|
||||
}
|
||||
protected boolean hasDirtyCollection() {
|
||||
return hasDirtyCollection;
|
||||
}
|
||||
|
||||
protected NaturalIdMapping getNaturalIdMapping() {
|
||||
return naturalIdMapping;
|
||||
}
|
||||
|
||||
protected Object getPreviousNaturalIdValues() {
|
||||
return previousNaturalIdValues;
|
||||
}
|
||||
|
||||
public Object getRowId() {
|
||||
return rowId;
|
||||
}
|
||||
|
||||
protected void setLock(SoftLock lock) {
|
||||
this.lock = lock;
|
||||
}
|
||||
|
||||
protected void setCacheEntry(Object cacheEntry) {
|
||||
this.cacheEntry = cacheEntry;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() throws HibernateException {
|
||||
if ( !preUpdate() ) {
|
||||
|
@ -229,7 +256,7 @@ public class EntityUpdateAction extends EntityAction {
|
|||
}
|
||||
}
|
||||
|
||||
private Object getPreviousVersion() {
|
||||
protected Object getPreviousVersion() {
|
||||
final EntityPersister persister = getPersister();
|
||||
if ( persister.isVersionPropertyGenerated() ) {
|
||||
// we need to grab the version value from the entity, otherwise
|
||||
|
|
|
@ -133,7 +133,7 @@ public abstract class AbstractVisitor {
|
|||
return null;
|
||||
}
|
||||
|
||||
final EventSource getSession() {
|
||||
protected final EventSource getSession() {
|
||||
return session;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ public class DefaultMergeEventListener
|
|||
super( entity, id, session );
|
||||
}
|
||||
@Override
|
||||
Object processCollection(Object collection, CollectionType collectionType) throws HibernateException {
|
||||
protected Object processCollection(Object collection, CollectionType collectionType) throws HibernateException {
|
||||
if ( collection instanceof PersistentCollection ) {
|
||||
final PersistentCollection<?> coll = (PersistentCollection<?>) collection;
|
||||
final CollectionPersister persister = getSession().getFactory()
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
package org.hibernate.event.internal;
|
||||
|
||||
class EventUtil {
|
||||
public class EventUtil {
|
||||
public static String getLoggableName(String entityName, Object entity) {
|
||||
return entityName == null ? entity.getClass().getName() : entityName;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public class WrapVisitor extends ProxyVisitor {
|
|||
}
|
||||
|
||||
@Override
|
||||
Object processCollection(Object collection, CollectionType collectionType)
|
||||
protected Object processCollection(Object collection, CollectionType collectionType)
|
||||
throws HibernateException {
|
||||
|
||||
if ( collection == null || collection == LazyPropertyInitializer.UNFETCHED_PROPERTY ) {
|
||||
|
@ -146,7 +146,7 @@ public class WrapVisitor extends ProxyVisitor {
|
|||
}
|
||||
|
||||
@Override
|
||||
void processValue(int i, Object[] values, Type[] types) {
|
||||
protected void processValue(int i, Object[] values, Type[] types) {
|
||||
Object result = processValue( values[i], types[i] );
|
||||
if ( result != null ) {
|
||||
substitute = true;
|
||||
|
@ -155,7 +155,7 @@ public class WrapVisitor extends ProxyVisitor {
|
|||
}
|
||||
|
||||
@Override
|
||||
Object processComponent(Object component, CompositeType componentType) throws HibernateException {
|
||||
protected Object processComponent(Object component, CompositeType componentType) throws HibernateException {
|
||||
if ( component != null ) {
|
||||
Object[] values = componentType.getPropertyValues( component, getSession() );
|
||||
Type[] types = componentType.getSubtypes();
|
||||
|
|
|
@ -579,15 +579,15 @@ public abstract class AbstractEntityPersister
|
|||
return sqlLazyUpdateStrings;
|
||||
}
|
||||
|
||||
protected ExecuteUpdateResultCheckStyle[] getInsertResultCheckStyles() {
|
||||
public ExecuteUpdateResultCheckStyle[] getInsertResultCheckStyles() {
|
||||
return insertResultCheckStyles;
|
||||
}
|
||||
|
||||
protected ExecuteUpdateResultCheckStyle[] getUpdateResultCheckStyles() {
|
||||
public ExecuteUpdateResultCheckStyle[] getUpdateResultCheckStyles() {
|
||||
return updateResultCheckStyles;
|
||||
}
|
||||
|
||||
protected ExecuteUpdateResultCheckStyle[] getDeleteResultCheckStyles() {
|
||||
public ExecuteUpdateResultCheckStyle[] getDeleteResultCheckStyles() {
|
||||
return deleteResultCheckStyles;
|
||||
}
|
||||
|
||||
|
|
|
@ -469,7 +469,7 @@ public class JdbcSelectExecutorStandardImpl implements JdbcSelectExecutor {
|
|||
return -1;
|
||||
}
|
||||
|
||||
private JdbcValues resolveJdbcValuesSource(
|
||||
public JdbcValues resolveJdbcValuesSource(
|
||||
String queryIdentifier,
|
||||
JdbcSelect jdbcSelect,
|
||||
boolean canBeCached,
|
||||
|
@ -588,7 +588,7 @@ public class JdbcSelectExecutorStandardImpl implements JdbcSelectExecutor {
|
|||
}
|
||||
}
|
||||
|
||||
private static class CapturingJdbcValuesMetadata implements JdbcValuesMetadata {
|
||||
public static class CapturingJdbcValuesMetadata implements JdbcValuesMetadata {
|
||||
private final ResultSetAccess resultSetAccess;
|
||||
private String[] columnNames;
|
||||
private BasicType<?>[] types;
|
||||
|
|
Loading…
Reference in New Issue