org.sql.generation.implementation.transformation
Class DefaultSQLProcessor
java.lang.Object
org.atp.spi.InteractionMapper<org.atp.api.Typeable<?>,SQLProcessor>
org.sql.generation.implementation.transformation.DefaultSQLProcessor
- All Implemented Interfaces:
- SQLProcessorAggregator
- Direct Known Subclasses:
- MySQLProcessor, PostgreSQLProcessor
public class DefaultSQLProcessor
- extends org.atp.spi.InteractionMapper<org.atp.api.Typeable<?>,SQLProcessor>
- 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
| Nested classes/interfaces inherited from class org.atp.spi.InteractionMapper |
org.atp.spi.InteractionMapper.AlreadyContainsInteractionStrategy<InteractionType>, org.atp.spi.InteractionMapper.DoesNotContainInteractionStrategy<InteractionType> |
| Fields inherited from class org.atp.spi.InteractionMapper |
THROW_IF_CONTAINS, THROW_IF_NOT_CONTAINS |
| Methods inherited from class org.atp.spi.InteractionMapper |
associate, associate, getInteraction, getInteraction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSQLProcessor
public DefaultSQLProcessor()
DefaultSQLProcessor
public DefaultSQLProcessor(java.util.Map<java.lang.Class<? extends org.atp.api.Typeable<?>>,SQLProcessor> processors)
process
public void process(org.atp.api.Typeable<?> object,
java.lang.StringBuilder builder)
- Specified by:
process in interface SQLProcessorAggregator
getDefaultProcessors
public static java.util.Map<java.lang.Class<? extends org.atp.api.Typeable<?>>,SQLProcessor> getDefaultProcessors()
getDefaultBinaryOperators
public static java.util.Map<java.lang.Class<? extends BinaryPredicate>,java.lang.String> getDefaultBinaryOperators()
getDefaultMultiOperators
public static java.util.Map<java.lang.Class<? extends MultiPredicate>,java.lang.String> getDefaultMultiOperators()
getDefaultMultiSeparators
public static java.util.Map<java.lang.Class<? extends MultiPredicate>,java.lang.String> getDefaultMultiSeparators()
getDefaultParenthesisPolicies
public static java.util.Map<java.lang.Class<? extends MultiPredicate>,java.lang.Boolean> getDefaultParenthesisPolicies()
getDefaultUnaryOperators
public static java.util.Map<java.lang.Class<? extends UnaryPredicate>,java.lang.String> getDefaultUnaryOperators()
getDefaultUnaryOrientations
public static java.util.Map<java.lang.Class<? extends UnaryPredicate>,BooleanExpressionProcessing.UnaryPredicateProcessor.UnaryOperatorOrientation> getDefaultUnaryOrientations()
Copyright © 2010. All Rights Reserved.