Package com.soffid.iam.model
Class NetworkEntityDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.NetworkEntityDaoBase
-
- com.soffid.iam.model.NetworkEntityDaoImpl
-
- All Implemented Interfaces:
NetworkEntityDao
,org.springframework.beans.factory.InitializingBean
public class NetworkEntityDaoImpl extends NetworkEntityDaoBase
- See Also:
es.caib.seycon.ng.model.XarxaEntity
-
-
Constructor Summary
Constructors Constructor Description NetworkEntityDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(NetworkEntity xarxa)
Adds an instance ofNetworkEntity
to the persistent store.void
create(Collection entities)
Creates a collection ofNetworkEntity
and adds it to the persistent store.String
getFirstFreeIP(String ipXarxa, String mascara)
Operation getFirstFreeIPNetworkEntity
networkToEntity(com.soffid.iam.api.Network xarxa)
Transforms fromNetwork
objectvoid
networkToEntity(com.soffid.iam.api.Network sourceVO, NetworkEntity targetEntity, boolean copyIfNull)
Copy data fromNetwork
objectvoid
remove(NetworkEntity xarxa)
Removes an instance ofNetworkEntity
from the persistent store.void
remove(Collection entities)
Removes a collection ofNetworkEntity
from the persistent store.com.soffid.iam.api.Network
toNetwork(NetworkEntity entity)
Transforms toNetwork
objectvoid
toNetwork(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)
Copy data toNetwork
objectvoid
toXarxaCustom(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)
void
update(NetworkEntity xarxa)
Updates an instance ofNetworkEntity
at the persistent store.void
update(Collection entities)
Updates a collection ofNetworkEntity
in the persistent store.-
Methods inherited from class com.soffid.iam.model.NetworkEntityDaoBase
countByNetwork, countByNetwork, countByNetwork, findByAddress, findByAddress, findByAddress, findByFilter, findByName, findByName, findByName, getAuditEntityDao, getConfigEntityDao, getFirstFreeIP, getFirstFreeIP, getHostEntityDao, getNetworkAuthorizationEntityDao, getNetworkDiscoverRangeEntityDao, getNetworkDiscoveryAccountEntityDao, getServerEntityDao, getTaskEntityDao, getTenantEntityDao, load, loadAll, networkToEntityList, newNetworkEntity, query, query, remove, setAuditEntityDao, setConfigEntityDao, setHostEntityDao, setNetworkAuthorizationEntityDao, setNetworkDiscoverRangeEntityDao, setNetworkDiscoveryAccountEntityDao, setServerEntityDao, setTaskEntityDao, setTenantEntityDao, toNetworkList, toXarxa, toXarxa, toXarxaList, xarxaToEntity, xarxaToEntity, xarxaToEntityList
-
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(NetworkEntity xarxa) throws RuntimeException
Description copied from class:NetworkEntityDaoBase
Adds an instance ofNetworkEntity
to the persistent store.- Specified by:
create
in interfaceNetworkEntityDao
- Overrides:
create
in classNetworkEntityDaoBase
- Throws:
RuntimeException
-
remove
public void remove(NetworkEntity xarxa) throws RuntimeException
Description copied from class:NetworkEntityDaoBase
Removes an instance ofNetworkEntity
from the persistent store.- Specified by:
remove
in interfaceNetworkEntityDao
- Overrides:
remove
in classNetworkEntityDaoBase
- Throws:
RuntimeException
-
update
public void update(NetworkEntity xarxa) throws RuntimeException
Description copied from class:NetworkEntityDaoBase
Updates an instance ofNetworkEntity
at the persistent store.- Specified by:
update
in interfaceNetworkEntityDao
- Overrides:
update
in classNetworkEntityDaoBase
- Throws:
RuntimeException
-
toNetwork
public void toNetwork(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)
Description copied from class:NetworkEntityDaoBase
Copy data toNetwork
object- Specified by:
toNetwork
in interfaceNetworkEntityDao
- Overrides:
toNetwork
in classNetworkEntityDaoBase
-
toXarxaCustom
public void toXarxaCustom(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)
-
toNetwork
public com.soffid.iam.api.Network toNetwork(NetworkEntity entity)
Description copied from class:NetworkEntityDaoBase
Transforms toNetwork
object- Specified by:
toNetwork
in interfaceNetworkEntityDao
- Overrides:
toNetwork
in classNetworkEntityDaoBase
- See Also:
es.caib.seycon.ng.model.XarxaEntityDao#toXarxa(es.caib.seycon.ng.model.XarxaEntity)
-
networkToEntity
public NetworkEntity networkToEntity(com.soffid.iam.api.Network xarxa)
Description copied from class:NetworkEntityDaoBase
Transforms fromNetwork
object- Specified by:
networkToEntity
in interfaceNetworkEntityDao
- Overrides:
networkToEntity
in classNetworkEntityDaoBase
- See Also:
es.caib.seycon.ng.model.XarxaEntityDao#xarxaToEntity(es.caib.seycon.ng.comu.Xarxa)
-
networkToEntity
public void networkToEntity(com.soffid.iam.api.Network sourceVO, NetworkEntity targetEntity, boolean copyIfNull)
Description copied from class:NetworkEntityDaoBase
Copy data fromNetwork
object- Specified by:
networkToEntity
in interfaceNetworkEntityDao
- Overrides:
networkToEntity
in classNetworkEntityDaoBase
- See Also:
es.caib.seycon.ng.model.XarxaEntityDao#xarxaToEntity(es.caib.seycon.ng.comu.Xarxa, es.caib.seycon.ng.model.XarxaEntity)
-
getFirstFreeIP
public String getFirstFreeIP(String ipXarxa, String mascara)
Description copied from class:NetworkEntityDaoBase
Operation getFirstFreeIP- Specified by:
getFirstFreeIP
in interfaceNetworkEntityDao
- Overrides:
getFirstFreeIP
in classNetworkEntityDaoBase
- Returns:
-
create
public void create(Collection entities)
Description copied from class:NetworkEntityDaoBase
Creates a collection ofNetworkEntity
and adds it to the persistent store.- Specified by:
create
in interfaceNetworkEntityDao
- Overrides:
create
in classNetworkEntityDaoBase
-
update
public void update(Collection entities)
Description copied from class:NetworkEntityDaoBase
Updates a collection ofNetworkEntity
in the persistent store.- Specified by:
update
in interfaceNetworkEntityDao
- Overrides:
update
in classNetworkEntityDaoBase
-
remove
public void remove(Collection entities)
Description copied from class:NetworkEntityDaoBase
Removes a collection ofNetworkEntity
from the persistent store.- Specified by:
remove
in interfaceNetworkEntityDao
- Overrides:
remove
in classNetworkEntityDaoBase
-
-