org.alfresco.repo.domain.patch.ibatis
Class PatchDAOImpl

java.lang.Object
  extended by org.alfresco.repo.domain.patch.AbstractPatchDAOImpl
      extended by org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl
All Implemented Interfaces:
org.alfresco.ibatis.BatchingDAO, PatchDAO

public class PatchDAOImpl
extends AbstractPatchDAOImpl

iBatis-specific implementation of the AVMPatch DAO.

Since:
3.2

Constructor Summary
PatchDAOImpl()
           
 
Method Summary
 void executeBatch()
           
protected  java.util.List getAdmOldContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
          Results are of the form:
protected  java.lang.Long getAVMNodeEntitiesCountWhereNewInStore()
           
protected  java.util.List getAVMNodeEntitiesWithEmptyGUID()
           
 java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
           
 java.lang.Long getMaxAdmNodeID()
           
 java.lang.Long getMaxAvmNodeID()
           
protected  java.util.List getNullVersionLayeredDirectoryNodeEntities()
           
protected  java.util.List getNullVersionLayeredFileNodeEntities()
           
 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)
           
 
Methods inherited from class org.alfresco.repo.domain.patch.AbstractPatchDAOImpl
getAVMNodesCountWhereNewInStore, getEmptyGUIDS, getNullVersionLayeredDirectories, getNullVersionLayeredFiles, setContentDataDAO, updateAdmV31ContentProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchDAOImpl

public PatchDAOImpl()
Method Detail

setSqlMapClientTemplate

public void setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)

startBatch

public void startBatch()

executeBatch

public void executeBatch()

getAVMNodeEntitiesCountWhereNewInStore

protected java.lang.Long getAVMNodeEntitiesCountWhereNewInStore()
Specified by:
getAVMNodeEntitiesCountWhereNewInStore in class AbstractPatchDAOImpl

getAVMNodeEntitiesWithEmptyGUID

protected java.util.List getAVMNodeEntitiesWithEmptyGUID()
Specified by:
getAVMNodeEntitiesWithEmptyGUID in class AbstractPatchDAOImpl

getNullVersionLayeredDirectoryNodeEntities

protected java.util.List getNullVersionLayeredDirectoryNodeEntities()
Specified by:
getNullVersionLayeredDirectoryNodeEntities in class AbstractPatchDAOImpl

getNullVersionLayeredFileNodeEntities

protected java.util.List getNullVersionLayeredFileNodeEntities()
Specified by:
getNullVersionLayeredFileNodeEntities in class AbstractPatchDAOImpl

getMaxAvmNodeID

public java.lang.Long getMaxAvmNodeID()

getAvmNodesWithOldContentProperties

public java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
                                                          java.lang.Long maxNodeId)

getMaxAdmNodeID

public java.lang.Long getMaxAdmNodeID()

getAdmOldContentProperties

protected java.util.List getAdmOldContentProperties(java.lang.Long minNodeId,
                                                    java.lang.Long maxNodeId)
Description copied from class: AbstractPatchDAOImpl
Results are of the form:
      nodeId: java.lang.Long
      qnameId: java.lang.Long
      listIndex: java.lang.Integer
      localeId: java.lang.Long
      stringValue: java.lang.String
 

Specified by:
getAdmOldContentProperties in class AbstractPatchDAOImpl
Parameters:
minNodeId - inclusive lower bound for Node ID
maxNodeId - exclusive upper bound for Node ID
Returns:
Returns a map of query results

updateAdmOldContentProperty

protected void updateAdmOldContentProperty(java.lang.Long nodeId,
                                           java.lang.Long qnameId,
                                           java.lang.Integer listIndex,
                                           java.lang.Long localeId,
                                           java.lang.Long longValue)
Specified by:
updateAdmOldContentProperty in class AbstractPatchDAOImpl
Parameters:
nodeId - part of the unique key
qnameId - part of the unique key
listIndex - part of the unique key
localeId - part of the unique key
longValue - the new ContentData ID


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.