|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configuration interface used by SqlBeanDataLoader Copyright 2003 Sapient
Field Summary | |
static Class |
MapType
Providing default value to Map type |
Fields inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
ComponentTemplateName |
Method Summary | |
Map |
getBeanAttribute()
Map of beanAttribute contains key as the DB column name and value as the bean property name. |
String |
getBeanAttribute(String key)
Accessor for the bean attribute name for the specified Db column |
Class |
getBeanClass()
BeanClass defines the bean representing the value attribute in the map This class must have a public default constructor and must provide a setter for each attribute defined in BeanAttribute |
Class |
getComparator()
Accessor for comparator implementation class. |
ConnectionFactory |
getConnectionFactory()
ConnectionFactory defines the reference to ConnectionFactory component |
String |
getDataLoadQuery()
DataLoadQuery defines the query to retreive the data to be cached |
String |
getKeyColumn()
KeyColumn defines the name of the column acting as the key for the accessing specific values in the map stored in cache |
Class |
getMapType()
Accessor for Map implementation type. |
void |
setBeanAttribute(Map newMap)
Sets the map containing Db column to bean attribute mapping The keys of this map must match the name of DB columns (case sensitive) returned from the ResultSet obtained by executing the dataload query and the values in the map must have respective setters defined in the BeanClass. |
void |
setBeanAttribute(String key,
String value)
Sets the bean attribute name for the specified Db column |
void |
setBeanClass(Class beanClass)
Sets the Javabean that will store the data retreived from database. |
void |
setComparator(Class comparator)
Sets the class name for comparator implementation |
void |
setConnectionFactory(ConnectionFactory connectionFactory)
Sets the reference to ConnectionFactory componenent |
void |
setDataLoadQuery(String dataLoadQuery)
Sets the SQL query to retreive the data to be cached |
void |
setKeyColumn(String keyColumn)
Sets the column name acting as the key for accessing values from the map |
void |
setMapType(Class mapType)
Sets the map implementation type used to store the cache |
Methods inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
getComponentDescription, getComponentTemplateName, getFunctionalImplementationClass, getFunctionalInterface, setComponentDescription, setComponentTemplateName, setFunctionalImplementationClass, setFunctionalInterface |
Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
Field Detail |
public static final Class MapType
Method Detail |
public String getDataLoadQuery()
public void setDataLoadQuery(String dataLoadQuery)
dataLoadQuery
- to load datapublic String getKeyColumn()
public void setKeyColumn(String keyColumn)
keyColumn
- name acting as the key of the mappublic ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
connectionFactory
- to ConnectionFactory componentpublic Class getBeanClass()
public void setBeanClass(Class beanClass)
beanClass
- name the of JavaBean storing the data from databasepublic Class getMapType()
java.util.HashMap
public void setMapType(Class mapType)
mapType
- fully qualified map implementation class namepublic Class getComparator()
public void setComparator(Class comparator)
comparator
- class name specifying the comparator implementation to be usedpublic Map getBeanAttribute()
public String getBeanAttribute(String key)
key
- Db column
public void setBeanAttribute(String key, String value)
key
- Db columnvalue
- bean attributepublic void setBeanAttribute(Map newMap)
newMap
- mapping of Db column to bean attribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |