|
|||||||||
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 |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.domain.patch.PatchDAO |
---|
PatchDAO.StringHandler |
Constructor Summary | |
---|---|
PatchDAOImpl()
|
Method Summary | |
---|---|
protected int |
deleteAclEntities(java.util.List aclIds)
|
protected int |
deleteAclMemberEntitiesForAcls(java.util.List aclIds)
|
protected void |
deleteAllOldAttrsImpl()
|
protected int |
deleteDanglingAceEntities()
|
void |
executeBatch()
|
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: |
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(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected void |
getOldAttrChainingURSImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected java.util.List |
getOldAttrCustomNamesImpl()
|
protected void |
getOldAttrPropertyBackedBeansImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected void |
getOldAttrTenantsImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected java.util.List |
selectAllAclEntityIds()
|
protected java.util.List |
selectNonDanglingAclEntityIds()
|
protected void |
selectUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef,
PatchDAO.StringHandler handler)
|
void |
setQnameDAO(QNameDAO qnameDAO)
|
void |
setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
|
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 |
Constructor Detail |
---|
public PatchDAOImpl()
Method Detail |
---|
public void setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
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
protected void selectUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef, PatchDAO.StringHandler handler)
selectUsersWithoutUsageProp
in class AbstractPatchDAOImpl
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(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrTenantsImpl
in class AbstractPatchDAOImpl
protected void getOldAttrAVMLocksImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrAVMLocksImpl
in class AbstractPatchDAOImpl
protected void getOldAttrPropertyBackedBeansImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrPropertyBackedBeansImpl
in class AbstractPatchDAOImpl
protected void getOldAttrChainingURSImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrChainingURSImpl
in class AbstractPatchDAOImpl
protected java.util.List getOldAttrCustomNamesImpl()
getOldAttrCustomNamesImpl
in class AbstractPatchDAOImpl
protected void deleteAllOldAttrsImpl()
deleteAllOldAttrsImpl
in class AbstractPatchDAOImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |