mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV/SWIFT to HEAD
25490: ALF-5260 - MyBatis: AVM (-> MySQL) - includes SerializableTypeHandler - also, for consistency, remove SqlSessionDaoSupport from Activtities (r25466) - TODO: test EliminateDuplicates patch - TODO: inserts for non-MySQL dbs 25504: ALF-5260 - MyBatis: part III - AppliedPatch, Content/MimeType/Encoding, Locale, Locks, QName, Usage - also minor updates to AVM & Activities (for consistency) 25517: ALF-5260 - MyBatis: part IV - DAOs - Patch, Permissions/ACLs, PropVal, SOLR - NOTE: includes fixup for SOLRDAOTest - also return nodeRef - TODO: batching (for ContentUrl patch) 25541: ALF-5260 - MyBatis: add missing file (r25517) 25556: ALF-5260 - MyBatis: V - PostgreSQL support (for migrated DAOs - does not yet include Audit + Node) 25576: ALF-5260 - MyBatis: VI - Audit & Control DAOs (MySQL + PostgreSQL) - also replaced SqlExecutor.NO_MAXIMUM_RESULTS with RowBounds.NO_ROW_LIMIT 25589: ALF-5260 - MyBatis: part VII - Node DAO (MySQL + PostgreSQL) 25612: ALF-5260 - MyBatis: part VIII - Oracle / DB2 / SQL Server - sanity checked only (bootstrap -> RepositoryStartupTest, DomainTestSuite, ModelTestSuite) - also remove remaining references to iBatis (and jar) Note: - Currently LockDAOTest is failing on an update - Fixed up DAo code changes from V3.4 - expect some to have been missed git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28004 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -94,7 +94,12 @@ public abstract class AbstractAVMVersionRootDAOImpl implements AVMVersionRootDAO
|
||||
ParameterCheck.mandatory("vrEntity.id", vrEntity.getId());
|
||||
ParameterCheck.mandatory("vrEntity.version", vrEntity.getVersion());
|
||||
|
||||
updateVersionRootEntity(vrEntity);
|
||||
int updated = updateVersionRootEntity(vrEntity);
|
||||
if (updated != 1)
|
||||
{
|
||||
// unexpected number of rows affected
|
||||
throw new ConcurrencyFailureException("Incorrect number of rows affected for updateVersionRoot: " + vrEntity + ": expected 1, actual " + updated);
|
||||
}
|
||||
|
||||
// Cache it
|
||||
vrEntityCache.put(new Pair<Long, Integer>(vrEntity.getStoreId(), vrEntity.getVersion()), vrEntity.getId());
|
||||
@@ -231,7 +236,7 @@ public abstract class AbstractAVMVersionRootDAOImpl implements AVMVersionRootDAO
|
||||
}
|
||||
|
||||
protected abstract AVMVersionRootEntity createVersionRootEntity(AVMVersionRootEntity vrEntity);
|
||||
protected abstract void updateVersionRootEntity(AVMVersionRootEntity updateVersionRootEntity);
|
||||
protected abstract int updateVersionRootEntity(AVMVersionRootEntity updateVersionRootEntity);
|
||||
protected abstract int deleteVersionRootEntity(long vrEntityId);
|
||||
protected abstract AVMVersionRootEntity getVersionRootEntityMaxVersion(long storeId);
|
||||
protected abstract Long getVersionRootEntityMaxVersionId(long storeId);
|
||||
|
Reference in New Issue
Block a user