org.lsc.service
Class IBatisDataSchemaProvider

java.lang.Object
  extended by org.lsc.service.IBatisDataSchemaProvider
All Implemented Interfaces:
DataSchemaProvider

public class IBatisDataSchemaProvider
extends Object
implements DataSchemaProvider

This class provides the data schema by reading the request schema via iBatis

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

Field Summary
static org.slf4j.Logger LOGGER
          This is the local logger.
 
Constructor Summary
IBatisDataSchemaProvider(ResultSetMetaData metadata)
           
 
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)
          Never return true, or maybe in a 3D database implementation :)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.slf4j.Logger LOGGER
This is the local logger.

Constructor Detail

IBatisDataSchemaProvider

public IBatisDataSchemaProvider(ResultSetMetaData metadata)
Method Detail

getElementsName

public Collection<String> getElementsName()
Description copied from interface: DataSchemaProvider
Return the list of elements name

Specified by:
getElementsName in interface DataSchemaProvider
Returns:
the list of elements name

getElementSingleType

public Class<?> getElementSingleType(String elementName)
Description copied from interface: DataSchemaProvider
Return the Java type of the specified element

Specified by:
getElementSingleType in interface DataSchemaProvider
Parameters:
elementName - Element name
Returns:
Class Java type of the specified element

isElementMandatory

public boolean isElementMandatory(String elementName)
Description copied from interface: DataSchemaProvider
Must the abstract bean include a value for the following attributes Binded to mandatory directory attributes or non null SQL columns

Specified by:
isElementMandatory in interface DataSchemaProvider
Parameters:
elementName - Element name
Returns:
element mandatory character

isElementMultivalued

public boolean isElementMultivalued(String elementName)
Never return true, or maybe in a 3D database implementation :)

Specified by:
isElementMultivalued in interface DataSchemaProvider
Parameters:
elementName - Name of the element
Returns:
false


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