Class ServiceInterfaceInstanceDaoJdbc
- java.lang.Object
-
- lumis.portal.serviceinterfaceinstance.ServiceInterfaceInstanceDaoJdbc
-
- All Implemented Interfaces:
IServiceInterfaceInstanceDao
public class ServiceInterfaceInstanceDaoJdbc extends java.lang.Object implements IServiceInterfaceInstanceDao
JDBC based DAO implementation for service interface instance.- Since:
- 4.0.0
- Version:
- $Revision: 21381 $ $Date: 2018-06-14 11:45:08 -0300 (Thu, 14 Jun 2018) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceInstanceDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction)
Add the service's interface's instance.void
delete(java.lang.String serviceInterfaceInstanceId, ITransaction transaction)
Delete the service's interface's instance.void
deleteCustomProperties(java.lang.String interfaceInstanceId, ITransaction transaction)
Delete the custom propertires of the service's interface's instance.boolean
deleteCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, ITransaction transaction)
Delete a custom property of the service's interface's instance.ServiceInterfaceInstanceConfig
get(java.lang.String interfaceInstanceId, ITransaction transaction)
Get the service's interface's instance.java.util.HashMap<java.lang.String,java.lang.String>
getCustomProperties(java.lang.String interfaceInstanceId, ITransaction transaction)
Get all custom properties of the specified service insterface instance.java.lang.String
getCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, ITransaction transaction)
Get the custom property of the service's interface's instance.java.util.List<java.lang.String>
getIdsByBaseInterfaceInstanceId(java.lang.String interfaceInstanceId, ITransaction daoTransaction)
Returns a list of ids of interface instances that have the given base interface instance id.java.util.List<java.lang.String>
getIdsByInterfaceStyleId(java.lang.String interfaceStyleId, ITransaction daoTransaction)
Returns a list of ids of interface instances that uses the given interface style id.java.util.Collection<java.lang.String>
getIdsByServiceInstanceId(java.lang.String serviceInstanceId, boolean includeRunTimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the id of the service's instance.java.util.Collection<java.lang.String>
getIdsByServiceInterfaceId(java.lang.String serviceInterfaceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction)
Get a list of ids given the id of the service's interface.java.util.Collection<java.lang.String>
getIdsByServiceInterfaceId(java.lang.String serviceInterfaceId, boolean ignoreRuntimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the service's interface.java.util.Collection<java.lang.String>
getIdsByServiceInterfaceIdAndServiceInstanceId(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction)
Get a list of ids given the id of the service's interface and the id of the service's instance.java.util.Collection<java.lang.String>
getIdsByServiceInterfaceIdAndServiceInstanceId(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, boolean ignoreRuntimeInterfaces, ITransaction transaction)
Get a list of ids given the id of the service's interface and the id of the service's instance.java.util.Collection<java.lang.String>
getIdsByServiceInterfaceStyleId(java.lang.String serviceInterfaceStyleId, java.lang.String serviceInterfaceId, ITransaction transaction)
Get the id given the id of the service's interface's style.java.util.Collection<java.lang.String>
getPageInterfaceInstanceIds(java.lang.String pageId, ITransaction transaction)
Get the ids of the page's interface's instance.ServiceInterfaceInstanceConfig
getRunTimeInstance(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, java.lang.String pageId, ITransaction transaction)
Get the runtime instance.boolean
setCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, java.lang.String value, ITransaction transaction)
Set the custom property of the service's interface's instance.void
update(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction)
Update the service's interface's instance.
-
-
-
Method Detail
-
get
public ServiceInterfaceInstanceConfig get(java.lang.String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the service's interface's instance.- Specified by:
get
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
add
public void add(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Add the service's interface's instance.- Specified by:
add
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
update
public void update(ServiceInterfaceInstanceConfig serviceInterfaceInstance, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Update the service's interface's instance.- Specified by:
update
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
delete
public void delete(java.lang.String serviceInterfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete the service's interface's instance.- Specified by:
delete
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
getRunTimeInstance
public ServiceInterfaceInstanceConfig getRunTimeInstance(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the runtime instance.- Specified by:
getRunTimeInstance
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getPageInterfaceInstanceIds
public java.util.Collection<java.lang.String> getPageInterfaceInstanceIds(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the ids of the page's interface's instance.- Specified by:
getPageInterfaceInstanceIds
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceId
public java.util.Collection<java.lang.String> getIdsByServiceInterfaceId(java.lang.String serviceInterfaceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface.- Specified by:
getIdsByServiceInterfaceId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceId
public java.util.Collection<java.lang.String> getIdsByServiceInterfaceId(java.lang.String serviceInterfaceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface.- Specified by:
getIdsByServiceInterfaceId
in interfaceIServiceInterfaceInstanceDao
ignorePageTemplates
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceIdAndServiceInstanceId
public java.util.Collection<java.lang.String> getIdsByServiceInterfaceIdAndServiceInstanceId(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, boolean ignoreRuntimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface and the id of the service's instance.- Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
ignoreRuntimeInterfaces
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceIdAndServiceInstanceId
public java.util.Collection<java.lang.String> getIdsByServiceInterfaceIdAndServiceInstanceId(java.lang.String serviceInterfaceId, java.lang.String serviceInstanceId, boolean ignoreRuntimeInterfaces, boolean ignorePageTemplates, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the service's interface and the id of the service's instance.- Specified by:
getIdsByServiceInterfaceIdAndServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
ignoreRuntimeInterfaces
- TODOignorePageTemplates
- TODO- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInstanceId
public java.util.Collection<java.lang.String> getIdsByServiceInstanceId(java.lang.String serviceInstanceId, boolean includeRunTimeInterfaces, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get a list of ids given the id of the id of the service's instance.- Specified by:
getIdsByServiceInstanceId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceInterfaceStyleId
public java.util.Collection<java.lang.String> getIdsByServiceInterfaceStyleId(java.lang.String serviceInterfaceStyleId, java.lang.String serviceInterfaceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the id given the id of the service's interface's style.- Specified by:
getIdsByServiceInterfaceStyleId
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getCustomProperty
public java.lang.String getCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get the custom property of the service's interface's instance.- Specified by:
getCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
getCustomProperties
public java.util.HashMap<java.lang.String,java.lang.String> getCustomProperties(java.lang.String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Get all custom properties of the specified service insterface instance.- Specified by:
getCustomProperties
in interfaceIServiceInterfaceInstanceDao
- Returns:
- Throws:
DaoException
PortalException
-
setCustomProperty
public boolean setCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, java.lang.String value, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Set the custom property of the service's interface's instance.- Specified by:
setCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
true
if a modification was done by this method in the persistence,false
if the value was already set.- Throws:
DaoException
PortalException
-
deleteCustomProperties
public void deleteCustomProperties(java.lang.String interfaceInstanceId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete the custom propertires of the service's interface's instance.- Specified by:
deleteCustomProperties
in interfaceIServiceInterfaceInstanceDao
- Throws:
DaoException
PortalException
-
deleteCustomProperty
public boolean deleteCustomProperty(java.lang.String interfaceInstanceId, java.lang.String name, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Delete a custom property of the service's interface's instance.- Specified by:
deleteCustomProperty
in interfaceIServiceInterfaceInstanceDao
- Returns:
true
if the property was deleted,false
if the property was not found.- Throws:
DaoException
PortalException
-
getIdsByInterfaceStyleId
public java.util.List<java.lang.String> getIdsByInterfaceStyleId(java.lang.String interfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Returns a list of ids of interface instances that uses the given interface style id.- Specified by:
getIdsByInterfaceStyleId
in interfaceIServiceInterfaceInstanceDao
- Parameters:
interfaceStyleId
- identifier of the style to be used on the search to filter the interface instances.daoTransaction
- the transaction for persistence access.- Returns:
- a list of ids of interface instances that uses the given interface style id.
- Throws:
DaoException
- if any error occurs during communication process with database.PortalException
- if any error occurs during the process.
-
getIdsByBaseInterfaceInstanceId
public java.util.List<java.lang.String> getIdsByBaseInterfaceInstanceId(java.lang.String interfaceInstanceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceInstanceDao
Returns a list of ids of interface instances that have the given base interface instance id.- Specified by:
getIdsByBaseInterfaceInstanceId
in interfaceIServiceInterfaceInstanceDao
- Parameters:
interfaceInstanceId
- identifier of the interface instance to be used on the search to filter the interface instances.daoTransaction
- the transaction for persistence access.- Returns:
- a list of ids of interface instances that uses the givenbase interface instance id.
- Throws:
DaoException
- if any error occurs during communication process with database.PortalException
- if any error occurs during the process.
-
-