Class MimetypeDAOImpl
- java.lang.Object
-
- org.alfresco.repo.domain.mimetype.AbstractMimetypeDAOImpl
-
- org.alfresco.repo.domain.mimetype.ibatis.MimetypeDAOImpl
-
- All Implemented Interfaces:
MimetypeDAO
public class MimetypeDAOImpl extends AbstractMimetypeDAOImpl
iBatis-specific implementation of the Mimetype DAO.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description MimetypeDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MimetypeEntitycreateMimetypeEntity(java.lang.String mimetype)protected MimetypeEntitygetMimetypeEntity(java.lang.Long id)protected MimetypeEntitygetMimetypeEntity(java.lang.String mimetype)voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)protected intupdateMimetypeEntity(java.lang.Long id, java.lang.String newMimetype)-
Methods inherited from class org.alfresco.repo.domain.mimetype.AbstractMimetypeDAOImpl
getMimetype, getMimetype, getOrCreateMimetype, sanitizeMimetype, setMimetypeEntityCache, updateMimetype
-
-
-
-
Method Detail
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
-
getMimetypeEntity
protected MimetypeEntity getMimetypeEntity(java.lang.Long id)
- Specified by:
getMimetypeEntityin classAbstractMimetypeDAOImpl- Parameters:
id- the ID of the mimetype entity- Returns:
- Return the entity or null if it doesn't exist
-
getMimetypeEntity
protected MimetypeEntity getMimetypeEntity(java.lang.String mimetype)
- Specified by:
getMimetypeEntityin classAbstractMimetypeDAOImpl
-
createMimetypeEntity
protected MimetypeEntity createMimetypeEntity(java.lang.String mimetype)
- Specified by:
createMimetypeEntityin classAbstractMimetypeDAOImpl
-
updateMimetypeEntity
protected int updateMimetypeEntity(java.lang.Long id, java.lang.String newMimetype)- Specified by:
updateMimetypeEntityin classAbstractMimetypeDAOImpl
-
-