org.lsc.service
Interface DataSchemaProvider

All Known Implementing Classes:
IBatisDataSchemaProvider, JndiDataSchemaProvider

public interface DataSchemaProvider

This class represents the data schema, that is a list of element name and their Java types In this class, elements may be either directory attributes or SQL request columns or any single format data subtype returned by the data source

Author:
Sebastien Bahloul <seb@lsc-project.org>

Method Summary
 Class<?> getElementSingleType(String elementName)
          Return the Java type of the specified element
 Collection<String> getElementsName()
          Return the list of elements name
 boolean isElementMandatory(String elementName)
          Must the abstract bean include a value for the following attributes Binded to mandatory directory attributes or non null SQL columns
 boolean isElementMultivalued(String elementName)
          Must the abstract bean include a value for the following attributes Binded to SINGLE-VALUE directory attributes.
 

Method Detail

getElementsName

Collection<String> getElementsName()
Return the list of elements name

Returns:
the list of elements name

getElementSingleType

Class<?> getElementSingleType(String elementName)
Return the Java type of the specified element

Parameters:
elementName - Element name
Returns:
Class Java type of the specified element

isElementMultivalued

boolean isElementMultivalued(String elementName)
Must the abstract bean include a value for the following attributes Binded to SINGLE-VALUE directory attributes. Default for SQL columns

Parameters:
elementName - Element name
Returns:
element mandatory character

isElementMandatory

boolean isElementMandatory(String elementName)
Must the abstract bean include a value for the following attributes Binded to mandatory directory attributes or non null SQL columns

Parameters:
elementName - Element name
Returns:
element mandatory character


Copyright © 2005-2010 LSC project. All Rights Reserved.