Package com.soffid.iam.model
Class MetaDataEntityDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.MetaDataEntityDaoBase
-
- com.soffid.iam.model.MetaDataEntityDaoImpl
-
- All Implemented Interfaces:
MetaDataEntityDao
,org.springframework.beans.factory.InitializingBean
public class MetaDataEntityDaoImpl extends MetaDataEntityDaoBase
- See Also:
es.caib.seycon.ng.model.TipusDadaEntity
-
-
Constructor Summary
Constructors Constructor Description MetaDataEntityDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(MetaDataEntity tipusDada)
Adds an instance ofMetaDataEntity
to the persistent store.void
create(Collection entities)
Creates a collection ofMetaDataEntity
and adds it to the persistent store.MetaDataEntity
dataTypeToEntity(com.soffid.iam.api.DataType tipusDada)
Transforms fromDataType
objectvoid
dataTypeToEntity(com.soffid.iam.api.DataType sourceVO, MetaDataEntity targetEntity, boolean copyIfNull)
Copy data fromDataType
objectprotected void
handleRenameAttributeValues(es.caib.seycon.ng.comu.TypeEnumeration type, String oldValue, String newValue)
void
remove(MetaDataEntity tipusDada)
Removes an instance ofMetaDataEntity
from the persistent store.void
remove(Collection entities)
Removes a collection ofMetaDataEntity
from the persistent store.com.soffid.iam.api.DataType
toDataType(MetaDataEntity entity)
Transforms toDataType
objectvoid
toDataType(MetaDataEntity sourceEntity, com.soffid.iam.api.DataType targetVO)
Copy data toDataType
objectvoid
update(Collection entities)
Updates a collection ofMetaDataEntity
in the persistent store.-
Methods inherited from class com.soffid.iam.model.MetaDataEntityDaoBase
dataTypeToEntityList, findByObjectTypeAndName, findByObjectTypeAndName, findByObjectTypeAndName, findByScope, findByScope, findByScope, findDataTypeByName, findDataTypeByName, findDataTypeByName, findDataTypesByName, findDataTypesByName, findDataTypesByName, findDataTypesByScopeAndName, findDataTypesByScopeAndName, findDataTypesByScopeAndName, getAuditEntityDao, getCustomObjectTypeEntityDao, getTenantEntityDao, getUserDataEntityDao, load, loadAll, newMetaDataEntity, query, query, remove, renameAttributeValues, setAuditEntityDao, setCustomObjectTypeEntityDao, setTenantEntityDao, setUserDataEntityDao, tipusDadaToEntity, tipusDadaToEntity, tipusDadaToEntityList, toDataTypeList, toTipusDada, toTipusDada, toTipusDadaList, update
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
-
-
-
Method Detail
-
create
public void create(MetaDataEntity tipusDada) throws RuntimeException
Description copied from class:MetaDataEntityDaoBase
Adds an instance ofMetaDataEntity
to the persistent store.- Specified by:
create
in interfaceMetaDataEntityDao
- Overrides:
create
in classMetaDataEntityDaoBase
- Throws:
RuntimeException
-
remove
public void remove(MetaDataEntity tipusDada) throws RuntimeException
Description copied from class:MetaDataEntityDaoBase
Removes an instance ofMetaDataEntity
from the persistent store.- Specified by:
remove
in interfaceMetaDataEntityDao
- Overrides:
remove
in classMetaDataEntityDaoBase
- Throws:
RuntimeException
-
toDataType
public void toDataType(MetaDataEntity sourceEntity, com.soffid.iam.api.DataType targetVO)
Description copied from class:MetaDataEntityDaoBase
Copy data toDataType
object- Specified by:
toDataType
in interfaceMetaDataEntityDao
- Overrides:
toDataType
in classMetaDataEntityDaoBase
-
toDataType
public com.soffid.iam.api.DataType toDataType(MetaDataEntity entity)
Description copied from class:MetaDataEntityDaoBase
Transforms toDataType
object- Specified by:
toDataType
in interfaceMetaDataEntityDao
- Overrides:
toDataType
in classMetaDataEntityDaoBase
- See Also:
es.caib.seycon.ng.model.TipusDadaEntityDao#toTipusDada(es.caib.seycon.ng.model.TipusDadaEntity)
-
dataTypeToEntity
public MetaDataEntity dataTypeToEntity(com.soffid.iam.api.DataType tipusDada)
Description copied from class:MetaDataEntityDaoBase
Transforms fromDataType
object- Specified by:
dataTypeToEntity
in interfaceMetaDataEntityDao
- Overrides:
dataTypeToEntity
in classMetaDataEntityDaoBase
- See Also:
es.caib.seycon.ng.model.TipusDadaEntityDao#tipusDadaToEntity(es.caib.seycon.ng.comu.TipusDada)
-
dataTypeToEntity
public void dataTypeToEntity(com.soffid.iam.api.DataType sourceVO, MetaDataEntity targetEntity, boolean copyIfNull)
Description copied from class:MetaDataEntityDaoBase
Copy data fromDataType
object- Specified by:
dataTypeToEntity
in interfaceMetaDataEntityDao
- Overrides:
dataTypeToEntity
in classMetaDataEntityDaoBase
- See Also:
es.caib.seycon.ng.model.TipusDadaEntityDao#tipusDadaToEntity(es.caib.seycon.ng.comu.TipusDada, es.caib.seycon.ng.model.TipusDadaEntity)
-
create
public void create(Collection entities)
Description copied from class:MetaDataEntityDaoBase
Creates a collection ofMetaDataEntity
and adds it to the persistent store.- Specified by:
create
in interfaceMetaDataEntityDao
- Overrides:
create
in classMetaDataEntityDaoBase
-
update
public void update(Collection entities)
Description copied from class:MetaDataEntityDaoBase
Updates a collection ofMetaDataEntity
in the persistent store.- Specified by:
update
in interfaceMetaDataEntityDao
- Overrides:
update
in classMetaDataEntityDaoBase
-
remove
public void remove(Collection entities)
Description copied from class:MetaDataEntityDaoBase
Removes a collection ofMetaDataEntity
from the persistent store.- Specified by:
remove
in interfaceMetaDataEntityDao
- Overrides:
remove
in classMetaDataEntityDaoBase
-
handleRenameAttributeValues
protected void handleRenameAttributeValues(es.caib.seycon.ng.comu.TypeEnumeration type, String oldValue, String newValue) throws Exception
- Specified by:
handleRenameAttributeValues
in classMetaDataEntityDaoBase
- Throws:
Exception
-
-