|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configuration interface used by SqlBeanMRUDataLoader. Copyright 2003 Sapient
Field Summary | |
static Class |
ValueMapType
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 ValueMap. |
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 ValueMap stored in cache |
Class |
getValueMapType()
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 |
setValueMapType(Class valueMapType)
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 ValueMapType
Method Detail |
public String getDataLoadQuery()
public void setDataLoadQuery(String dataLoadQuery)
public ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
public Class getValueMapType()
java.util.HashMap
public void setValueMapType(Class valueMapType)
public Class getComparator()
public void setComparator(Class comparator)
public String getKeyColumn()
public void setKeyColumn(String keyColumn)
public Class getBeanClass()
public void setBeanClass(Class beanClass)
public 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 |