public abstract class AbstractJdbcService extends Object implements IService
Constructor and Description |
---|
AbstractJdbcService(DatabaseConnectionType destinationConnection,
String beanClassname) |
AbstractJdbcService(com.ibatis.sqlmap.client.SqlMapClient sqlmap,
String beanClassname) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
fillAttributesMap(Map<String,Object> datasets,
IBean destinationBean) |
static Map<String,Object> |
getAttributesMap(List<LscDatasetModification> lscAttributeModifications) |
static Map<String,String> |
getAttributesMap(LscDatasets lscAttributes) |
IBean |
getBean(String pivotName,
LscDatasets pivotAttributes)
The simple object getter according to its identifier.
|
IBean |
getBean(String id,
LscDatasets attributes,
boolean fromSource)
Override default AbstractJdbcSrcService to get a SimpleBean
|
Map<String,LscDatasets> |
getListPivots()
Execute a database request to get a list of object identifiers.
|
abstract String |
getRequestNameForClean() |
abstract String |
getRequestNameForList() |
abstract String |
getRequestNameForNextId() |
abstract String |
getRequestNameForObject() |
static String |
getValue(Object value) |
public AbstractJdbcService(com.ibatis.sqlmap.client.SqlMapClient sqlmap, String beanClassname) throws LscServiceConfigurationException
LscServiceConfigurationException
public AbstractJdbcService(DatabaseConnectionType destinationConnection, String beanClassname) throws LscServiceConfigurationException
LscServiceConfigurationException
public abstract String getRequestNameForList()
public abstract String getRequestNameForObject()
public abstract String getRequestNameForNextId()
public abstract String getRequestNameForClean()
public IBean getBean(String pivotName, LscDatasets pivotAttributes) throws LscServiceException
pivotName
- Name of the entry to be returned, which is the name returned by
getListPivots()
(used for display only)pivotAttributes
- Map of attribute names and values, which is the data identifier in the
source such as returned by getListPivots()
. It must identify a unique
entry in the source.LscServiceException
- May throw a embedded CommunicationException
if an SQLException is encounteredpublic Map<String,LscDatasets> getListPivots()
getListPivots
in interface IService
public IBean getBean(String id, LscDatasets attributes, boolean fromSource) throws LscServiceException
getBean
in interface IService
id
- Name of the entry to be returned, which is the name returned by
IService.getListPivots()
(used for display only)attributes
- Map of attribute names and values, which is the data identifier in the
source such as returned by IService.getListPivots()
. It must identify a unique
entry in the source.fromSource
- are the pivot attributes provided by the same serviceLscServiceException
public static Map<String,Object> fillAttributesMap(Map<String,Object> datasets, IBean destinationBean)
public static Map<String,Object> getAttributesMap(List<LscDatasetModification> lscAttributeModifications)
public static Map<String,String> getAttributesMap(LscDatasets lscAttributes)
Copyright © 2005-2024 LSC project. All Rights Reserved.