lumis.portal.serviceinstance
Class ServiceInstanceDaoHib

Package class diagram package ServiceInstanceDaoHib
java.lang.Object
  extended by lumis.portal.serviceinstance.ServiceInstanceDaoJdbc
      extended by lumis.portal.serviceinstance.ServiceInstanceDaoHib
All Implemented Interfaces:
IServiceInstanceDao

public class ServiceInstanceDaoHib
extends ServiceInstanceDaoJdbc
implements IServiceInstanceDao

Service instance DAO implementation for Hibernate.

Since:
4.0.0

Constructor Summary
ServiceInstanceDaoHib()
           
 
Method Summary
 void addServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig, ITransaction transaction)
          Add the given service instance dependency to the persistence.
 void delete(String serviceInstanceId, ITransaction transaction)
          Delete the service's instance.
 ServiceInstanceDependencyConfig getServiceInstanceDependency(String dependencyId, ITransaction transaction)
          Get a ServiceInstanceDependencyConfig by the dependencyId.
 void removeServiceInstanceDependencies(String dependentServiceInstanceId, String dependencyType, ITransaction transaction)
          Remove the service instance dependencies that matches the dependent service instance id and dependency type given.
 
Methods inherited from class lumis.portal.serviceinstance.ServiceInstanceDaoJdbc
add, deleteCustomProperties, deleteCustomProperty, get, getByRestShortName, getChannelsChildren, getChildrenData, getCustomProperties, getCustomProperty, getDependencyIdsByServiceInstanceId, getIdsByChannelIdAndServiceId, getIdsByServiceInstanceAndDependencyType, getIdsOfDependentServiceInstances, setCustomProperty, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lumis.portal.serviceinstance.IServiceInstanceDao
add, deleteCustomProperties, deleteCustomProperty, get, getByRestShortName, getChannelsChildren, getChildrenData, getCustomProperties, getCustomProperty, getDependencyIdsByServiceInstanceId, getIdsByChannelIdAndServiceId, getIdsByServiceInstanceAndDependencyType, getIdsOfDependentServiceInstances, setCustomProperty, update
 

Constructor Detail

ServiceInstanceDaoHib

public ServiceInstanceDaoHib()
Method Detail

addServiceInstanceDependency

public void addServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig,
                                         ITransaction transaction)
                                  throws PortalException
Description copied from interface: IServiceInstanceDao
Add the given service instance dependency to the persistence.

Specified by:
addServiceInstanceDependency in interface IServiceInstanceDao
Overrides:
addServiceInstanceDependency in class ServiceInstanceDaoJdbc
Parameters:
serviceInstanceDependencyConfig - the information about the dependency to be added.
transaction - the transaction for persistence access.
Throws:
PortalException

delete

public void delete(String serviceInstanceId,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: IServiceInstanceDao
Delete the service's instance.

Specified by:
delete in interface IServiceInstanceDao
Overrides:
delete in class ServiceInstanceDaoJdbc
Throws:
DaoException
PortalException

removeServiceInstanceDependencies

public void removeServiceInstanceDependencies(String dependentServiceInstanceId,
                                              String dependencyType,
                                              ITransaction transaction)
                                       throws PortalException
Description copied from interface: IServiceInstanceDao
Remove the service instance dependencies that matches the dependent service instance id and dependency type given.

Specified by:
removeServiceInstanceDependencies in interface IServiceInstanceDao
Overrides:
removeServiceInstanceDependencies in class ServiceInstanceDaoJdbc
Throws:
PortalException

getServiceInstanceDependency

public ServiceInstanceDependencyConfig getServiceInstanceDependency(String dependencyId,
                                                                    ITransaction transaction)
                                                             throws DaoException,
                                                                    PortalException
Description copied from interface: IServiceInstanceDao
Get a ServiceInstanceDependencyConfig by the dependencyId.

Specified by:
getServiceInstanceDependency in interface IServiceInstanceDao
Overrides:
getServiceInstanceDependency in class ServiceInstanceDaoJdbc
Returns:
The ServiceInstanceDependencyConfig
Throws:
DaoException
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.