org.sql.generation.implementation.transformation
Class DefaultSQLProcessor
java.lang.Object
org.sql.generation.implementation.transformation.DefaultSQLProcessor
- All Implemented Interfaces:
- SQLProcessorAggregator
- Direct Known Subclasses:
- DerbyProcessor, MySQLProcessor, PostgreSQLProcessor
public class DefaultSQLProcessor
- extends Object
- implements SQLProcessorAggregator
This is base class for processing the SQL syntax elements defined in API. It contains the default processors for
nearly all default syntax elements, and a way to easily extend this class in order to add custom processors, or
replace default processors with custom ones.
- Author:
- Stanislav Muhametsin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSQLProcessor
public DefaultSQLProcessor(SQLVendor vendor)
DefaultSQLProcessor
public DefaultSQLProcessor(SQLVendor vendor,
Map<Class<? extends org.atp.api.Typeable<?>>,SQLProcessor> processors)
process
public void process(org.atp.api.Typeable<?> object,
StringBuilder builder)
- Specified by:
process in interface SQLProcessorAggregator
getVendor
public SQLVendor getVendor()
- Specified by:
getVendor in interface SQLProcessorAggregator
getProcessors
protected Map<Class<? extends org.atp.api.Typeable<?>>,SQLProcessor> getProcessors()
getDefaultProcessors
public static Map<Class<? extends org.atp.api.Typeable<?>>,SQLProcessor> getDefaultProcessors()
getDefaultBinaryOperators
public static Map<Class<? extends BinaryPredicate>,String> getDefaultBinaryOperators()
getDefaultMultiOperators
public static Map<Class<? extends MultiPredicate>,String> getDefaultMultiOperators()
getDefaultMultiSeparators
public static Map<Class<? extends MultiPredicate>,String> getDefaultMultiSeparators()
getDefaultParenthesisPolicies
public static Map<Class<? extends MultiPredicate>,Boolean> getDefaultParenthesisPolicies()
getDefaultUnaryOperators
public static Map<Class<? extends UnaryPredicate>,String> getDefaultUnaryOperators()
getDefaultUnaryOrientations
public static Map<Class<? extends UnaryPredicate>,BooleanExpressionProcessing.UnaryPredicateProcessor.UnaryOperatorOrientation> getDefaultUnaryOrientations()
Copyright © 2010-2012. All Rights Reserved.