mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-02 15:59:18 +00:00
HHH-14049 AbstractEntityPersister make three private methods protected for use in Hibernate Reactive
This commit is contained in:
parent
3049c0fc8f
commit
b4929b3946
@ -3606,7 +3606,7 @@ else if ( isAllOrDirtyOptLocking() && loadedState != null ) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String[] getUpdateStrings(boolean byRowId, boolean lazy) {
|
protected String[] getUpdateStrings(boolean byRowId, boolean lazy) {
|
||||||
if ( byRowId ) {
|
if ( byRowId ) {
|
||||||
return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings();
|
return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings();
|
||||||
}
|
}
|
||||||
@ -3781,7 +3781,7 @@ public void insert(Serializable id, Object[] fields, Object object, SharedSessio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void preInsertInMemoryValueGeneration(Object[] fields, Object object, SharedSessionContractImplementor session) {
|
protected void preInsertInMemoryValueGeneration(Object[] fields, Object object, SharedSessionContractImplementor session) {
|
||||||
if ( getEntityMetamodel().hasPreInsertGeneratedValues() ) {
|
if ( getEntityMetamodel().hasPreInsertGeneratedValues() ) {
|
||||||
final InMemoryValueGenerationStrategy[] strategies = getEntityMetamodel().getInMemoryValueGenerationStrategies();
|
final InMemoryValueGenerationStrategy[] strategies = getEntityMetamodel().getInMemoryValueGenerationStrategies();
|
||||||
for ( int i = 0; i < strategies.length; i++ ) {
|
for ( int i = 0; i < strategies.length; i++ ) {
|
||||||
@ -3831,7 +3831,7 @@ public void delete(Serializable id, Object version, Object object, SharedSession
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isAllOrDirtyOptLocking() {
|
protected boolean isAllOrDirtyOptLocking() {
|
||||||
return entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.DIRTY
|
return entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.DIRTY
|
||||||
|| entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.ALL;
|
|| entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.ALL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user