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 voidcreate(NetworkEntity xarxa)Adds an instance ofNetworkEntityto the persistent store.voidcreate(Collection entities)Creates a collection ofNetworkEntityand adds it to the persistent store.StringgetFirstFreeIP(String ipXarxa, String mascara)Operation getFirstFreeIPNetworkEntitynetworkToEntity(com.soffid.iam.api.Network xarxa)Transforms fromNetworkobjectvoidnetworkToEntity(com.soffid.iam.api.Network sourceVO, NetworkEntity targetEntity, boolean copyIfNull)Copy data fromNetworkobjectvoidremove(NetworkEntity xarxa)Removes an instance ofNetworkEntityfrom the persistent store.voidremove(Collection entities)Removes a collection ofNetworkEntityfrom the persistent store.com.soffid.iam.api.NetworktoNetwork(NetworkEntity entity)Transforms toNetworkobjectvoidtoNetwork(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)Copy data toNetworkobjectvoidtoXarxaCustom(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)voidupdate(NetworkEntity xarxa)Updates an instance ofNetworkEntityat the persistent store.voidupdate(Collection entities)Updates a collection ofNetworkEntityin 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:NetworkEntityDaoBaseAdds an instance ofNetworkEntityto the persistent store.- Specified by:
createin interfaceNetworkEntityDao- Overrides:
createin classNetworkEntityDaoBase- Throws:
RuntimeException
-
remove
public void remove(NetworkEntity xarxa) throws RuntimeException
Description copied from class:NetworkEntityDaoBaseRemoves an instance ofNetworkEntityfrom the persistent store.- Specified by:
removein interfaceNetworkEntityDao- Overrides:
removein classNetworkEntityDaoBase- Throws:
RuntimeException
-
update
public void update(NetworkEntity xarxa) throws RuntimeException
Description copied from class:NetworkEntityDaoBaseUpdates an instance ofNetworkEntityat the persistent store.- Specified by:
updatein interfaceNetworkEntityDao- Overrides:
updatein classNetworkEntityDaoBase- Throws:
RuntimeException
-
toNetwork
public void toNetwork(NetworkEntity sourceEntity, com.soffid.iam.api.Network targetVO)
Description copied from class:NetworkEntityDaoBaseCopy data toNetworkobject- Specified by:
toNetworkin interfaceNetworkEntityDao- Overrides:
toNetworkin 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:NetworkEntityDaoBaseTransforms toNetworkobject- Specified by:
toNetworkin interfaceNetworkEntityDao- Overrides:
toNetworkin 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:NetworkEntityDaoBaseTransforms fromNetworkobject- Specified by:
networkToEntityin interfaceNetworkEntityDao- Overrides:
networkToEntityin 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:NetworkEntityDaoBaseCopy data fromNetworkobject- Specified by:
networkToEntityin interfaceNetworkEntityDao- Overrides:
networkToEntityin 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:NetworkEntityDaoBaseOperation getFirstFreeIP- Specified by:
getFirstFreeIPin interfaceNetworkEntityDao- Overrides:
getFirstFreeIPin classNetworkEntityDaoBase- Returns:
-
create
public void create(Collection entities)
Description copied from class:NetworkEntityDaoBaseCreates a collection ofNetworkEntityand adds it to the persistent store.- Specified by:
createin interfaceNetworkEntityDao- Overrides:
createin classNetworkEntityDaoBase
-
update
public void update(Collection entities)
Description copied from class:NetworkEntityDaoBaseUpdates a collection ofNetworkEntityin the persistent store.- Specified by:
updatein interfaceNetworkEntityDao- Overrides:
updatein classNetworkEntityDaoBase
-
remove
public void remove(Collection entities)
Description copied from class:NetworkEntityDaoBaseRemoves a collection ofNetworkEntityfrom the persistent store.- Specified by:
removein interfaceNetworkEntityDao- Overrides:
removein classNetworkEntityDaoBase
-
-