|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.patch.AbstractPatchDAOImpl
org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl
public class PatchDAOImpl
iBatis-specific implementation of the AVMPatch DAO.
Nested Class Summary | |
---|---|
static class |
PatchDAOImpl.Oracle
Oracle-specific DAO |
static class |
PatchDAOImpl.PostgreSQL
PostgreSQL-specific DAO |
Nested classes/interfaces inherited from interface org.alfresco.repo.domain.patch.PatchDAO |
---|
PatchDAO.StringHandler |
Field Summary | |
---|---|
protected org.mybatis.spring.SqlSessionTemplate |
template
|
Constructor Summary | |
---|---|
PatchDAOImpl()
|
Method Summary | |
---|---|
int |
addSizeCurrentProp()
Add a cm:sizeCurrent property to person nodes that don't have it. |
protected int |
deleteAclEntities(java.util.List aclIds)
|
protected int |
deleteAclMemberEntitiesForAcls(java.util.List aclIds)
|
protected int |
deleteDanglingAceEntities()
|
void |
executeBatch()
|
java.util.List |
getAclsThatInheritFromNonPrimaryParent()
Get acls that do not inherit from the primary parent. |
java.util.List |
getAclsThatInheritWithInheritanceUnset()
Get acls that inherit with inheritance unset |
protected java.util.List |
getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Results are of the form: |
java.util.List |
getAuthoritiesWithNonUtf8Crcs()
|
protected long |
getAVMNodeEntitiesCountWhereNewInStore()
|
protected java.util.List |
getAVMNodeEntitiesWithEmptyGUID(int maxResults)
|
java.util.List |
getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
|
int |
getChildAssocCount()
|
java.util.List |
getChildAssocsForCrcFix(java.lang.Long minAssocId,
java.lang.Long stopAtAssocId,
long rangeMultiplier,
long maxIdRange,
int maxResults)
The results map contains: |
long |
getCountNodesWithAspects(java.util.Set qnames)
|
java.util.List |
getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
Get defining acls with inheritance issues |
protected long |
getDmNodeEntitiesCount()
|
protected long |
getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
|
protected long |
getMaxAclEntityId()
|
long |
getMaxAdmNodeID()
|
long |
getMaxAvmNodeID()
|
java.lang.Long |
getMaxChildAssocId()
|
java.util.List |
getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax) |
protected java.util.List |
getNullVersionLayeredDirectoryNodeEntities(int maxResults)
|
protected java.util.List |
getNullVersionLayeredFileNodeEntities(int maxResults)
|
protected void |
getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
protected void |
getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
protected java.util.List |
getOldAttrCustomNamesImpl()
|
protected void |
getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
protected void |
getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
java.util.List |
getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl()
Get shared acls that do not inherit correctly from the defining acl |
java.util.List |
getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
Get shared acls with inheritance issues |
void |
migrateOldAttrDropTables()
Drop old attribute alf_*attribute* tables |
protected java.util.List |
selectAllAclEntityIds()
|
protected java.util.List |
selectNonDanglingAclEntityIds()
|
void |
setLocaleDAO(LocaleDAO localeDAO)
|
void |
setQnameDAO(QNameDAO qnameDAO)
|
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
|
void |
startBatch()
|
protected void |
updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue)
|
protected int |
updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
|
protected int |
updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds)
|
int |
updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc)
|
int |
updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
Update all alf_content_data mimetype references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.mybatis.spring.SqlSessionTemplate template
Constructor Detail |
---|
public PatchDAOImpl()
Method Detail |
---|
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
public void setLocaleDAO(LocaleDAO localeDAO)
public void startBatch()
public void executeBatch()
protected long getAVMNodeEntitiesCountWhereNewInStore()
getAVMNodeEntitiesCountWhereNewInStore
in class AbstractPatchDAOImpl
protected java.util.List getAVMNodeEntitiesWithEmptyGUID(int maxResults)
getAVMNodeEntitiesWithEmptyGUID
in class AbstractPatchDAOImpl
protected java.util.List getNullVersionLayeredDirectoryNodeEntities(int maxResults)
getNullVersionLayeredDirectoryNodeEntities
in class AbstractPatchDAOImpl
protected java.util.List getNullVersionLayeredFileNodeEntities(int maxResults)
getNullVersionLayeredFileNodeEntities
in class AbstractPatchDAOImpl
public long getMaxAvmNodeID()
public java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
public long getMaxAdmNodeID()
protected java.util.List getAdmOldContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
AbstractPatchDAOImpl
nodeId: java.lang.Long qnameId: java.lang.Long listIndex: java.lang.Integer localeId: java.lang.Long stringValue: java.lang.String
getAdmOldContentProperties
in class AbstractPatchDAOImpl
minNodeId
- inclusive lower bound for Node IDmaxNodeId
- exclusive upper bound for Node ID
protected void updateAdmOldContentProperty(java.lang.Long nodeId, java.lang.Long qnameId, java.lang.Integer listIndex, java.lang.Long localeId, java.lang.Long longValue)
updateAdmOldContentProperty
in class AbstractPatchDAOImpl
nodeId
- part of the unique keyqnameId
- part of the unique keylistIndex
- part of the unique keylocaleId
- part of the unique keylongValue
- the new ContentData IDpublic int updateContentMimetypeIds(java.lang.Long oldMimetypeId, java.lang.Long newMimetypeId)
PatchDAO
oldMimetypeId
- the ID to search fornewMimetypeId
- the ID to change to
public int addSizeCurrentProp()
PatchDAO
protected int updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
updateAVMNodeEntitiesNullifyAcl
in class AbstractPatchDAOImpl
protected int updateAVMNodeEntitiesSetAcl(long aclId, java.util.List nodeIds)
updateAVMNodeEntitiesSetAcl
in class AbstractPatchDAOImpl
protected long getMaxAclEntityId()
getMaxAclEntityId
in class AbstractPatchDAOImpl
protected long getDmNodeEntitiesCount()
getDmNodeEntitiesCount
in class AbstractPatchDAOImpl
protected long getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
getDmNodeEntitiesCountWithNewACLs
in class AbstractPatchDAOImpl
protected java.util.List selectAllAclEntityIds()
selectAllAclEntityIds
in class AbstractPatchDAOImpl
protected java.util.List selectNonDanglingAclEntityIds()
selectNonDanglingAclEntityIds
in class AbstractPatchDAOImpl
protected int deleteDanglingAceEntities()
deleteDanglingAceEntities
in class AbstractPatchDAOImpl
protected int deleteAclEntities(java.util.List aclIds)
deleteAclEntities
in class AbstractPatchDAOImpl
protected int deleteAclMemberEntitiesForAcls(java.util.List aclIds)
deleteAclMemberEntitiesForAcls
in class AbstractPatchDAOImpl
public java.util.List getAuthoritiesWithNonUtf8Crcs()
public int getChildAssocCount()
public java.lang.Long getMaxChildAssocId()
public java.util.List getChildAssocsForCrcFix(java.lang.Long minAssocId, java.lang.Long stopAtAssocId, long rangeMultiplier, long maxIdRange, int maxResults)
PatchDAO
]]>
minAssocId
- the minimum child assoc IDstopAtAssocId
- the child assoc ID to stop at i.e. once this ID has been reached,
pull back no resultsrangeMultiplier
- the ration of IDs to actual rows (how many IDs to select to get a row)maxIdRange
- the largest ID range to use for selects. Normally, the ID range should be
allowed to grow in accordance with the general distribution of rows, but
if memory problems are encountered, then the range will need to be set down.maxResults
- the number of child associations to fetch
public int updateChildAssocCrc(java.lang.Long assocId, java.lang.Long childNodeNameCrc, java.lang.Long qnameCrc)
public java.util.List getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName, java.lang.String namePattern)
PatchDAO
typeQName
- the node typenamePattern
- the SQL LIKE pattern
protected void getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrTenantsImpl
in class AbstractPatchDAOImpl
protected void getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrAVMLocksImpl
in class AbstractPatchDAOImpl
protected void getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrPropertyBackedBeansImpl
in class AbstractPatchDAOImpl
protected void getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrChainingURSImpl
in class AbstractPatchDAOImpl
protected java.util.List getOldAttrCustomNamesImpl()
getOldAttrCustomNamesImpl
in class AbstractPatchDAOImpl
public void migrateOldAttrDropTables()
PatchDAO
public java.util.List getAclsThatInheritFromNonPrimaryParent()
PatchDAO
public java.util.List getAclsThatInheritWithInheritanceUnset()
PatchDAO
public java.util.List getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
PatchDAO
public java.util.List getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
PatchDAO
public java.util.List getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl()
PatchDAO
public long getCountNodesWithAspects(java.util.Set qnames)
qnames
- the qnames to search for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |