org.clazzes.jdbc2xml.sql
Class SqlIdentifierMapperFactory

java.lang.Object
  extended by org.clazzes.jdbc2xml.sql.SqlIdentifierMapperFactory
Direct Known Subclasses:
SqlIdentifierMapperFactoryImpl

public abstract class SqlIdentifierMapperFactory
extends java.lang.Object

Author:
wglas

Constructor Summary
SqlIdentifierMapperFactory()
           
 
Method Summary
static SqlIdentifierMapperFactory newInstance()
           
abstract  SqlIdentifierMapper newMapper(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlIdentifierMapperFactory

public SqlIdentifierMapperFactory()
Method Detail

newInstance

public static SqlIdentifierMapperFactory newInstance()
Returns:
The first implementation registered under the resource path META-INF/services/org.clazzes.jdbc2xml.sql.SqlIdentifierMapperFactory.
See Also:
ServiceRegistry.lookupProviders(Class)

newMapper

public abstract SqlIdentifierMapper newMapper(java.lang.String key)
Parameters:
key - The name of the mapper. Currently, id, lower and upper are supported. The id mapper performs no transformation, the lower and upper mappers perform a lower case resp. upper case transformation of the identifiers. If name is null or and unknown name is specified the id mapper is instantiated and returned.
Returns:
A mapper for SQL identifiers to their external representation.


Copyright © 2010. All Rights Reserved.