All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.cayenne.velocity.VelocitySQLTemplateProcessor.class Maven / Gradle / Ivy

????7?
java/lang/Object()V5org/apache/cayenne/template/SQLTemplateRenderingUtils
	
8org/apache/cayenne/velocity/VelocitySQLTemplateProcessorrenderingUtils7Lorg/apache/cayenne/template/SQLTemplateRenderingUtils;+org/apache/velocity/runtime/RuntimeInstance
	velocityRuntime-Lorg/apache/velocity/runtime/RuntimeInstance;
userdirective)org/apache/cayenne/velocity/BindDirective
 java/lang/ClassgetName()Ljava/lang/String;
"#$addProperty'(Ljava/lang/String;Ljava/lang/Object;)V&.org/apache/cayenne/velocity/BindEqualDirective(1org/apache/cayenne/velocity/BindNotEqualDirective*4org/apache/cayenne/velocity/BindObjectEqualDirective,7org/apache/cayenne/velocity/BindObjectNotEqualDirective.+org/apache/cayenne/velocity/ResultDirective0*org/apache/cayenne/velocity/ChainDirective2*org/apache/cayenne/velocity/ChunkDirective
45init7java/lang/Exception9*org/apache/cayenne/CayenneRuntimeException;*Error setting up Velocity RuntimeInstance.
8=>=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V@ABCD
java/util/MapisEmpty()ZFjava/util/HashMap
EHI(Ljava/util/Map;)V
EKL(I)V
NOPparseH(Ljava/lang/String;)Lorg/apache/velocity/runtime/parser/node/SimpleNode;
RSTprocessTemplate?(Ljava/lang/String;Lorg/apache/velocity/runtime/parser/node/SimpleNode;Ljava/util/Map;)Lorg/apache/cayenne/access/jdbc/SQLStatement;
EWNorg/apache/cayenne/velocity/VelocitySQLTemplateProcessor$PositionalParamMapper
VYZ\(Lorg/apache/cayenne/velocity/VelocitySQLTemplateProcessor;Ljava/util/List;Ljava/util/Map;)V
\]^_`2org/apache/velocity/runtime/parser/node/SimpleNode	jjtAccept](Lorg/apache/velocity/runtime/parser/node/ParserVisitor;Ljava/lang/Object;)Ljava/lang/Object;
VbconFinishejava/util/ArrayList
dhbindings@jklput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;n
resultColumnsphelperr#org/apache/velocity/VelocityContext
qH
uvwbuildStatement(Lorg/apache/velocity/VelocityContext;Ljava/lang/String;Lorg/apache/velocity/runtime/parser/node/SimpleNode;)Ljava/lang/String;y"Error processing Velocity template{|}~java/util/Listsize()I?5org/apache/cayenne/access/translator/ParameterBinding{???toArray(([Ljava/lang/Object;)[Ljava/lang/Object;?/org/apache/cayenne/access/jdbc/ColumnDescriptor?+org/apache/cayenne/access/jdbc/SQLStatement
???(Ljava/lang/String;[Lorg/apache/cayenne/access/jdbc/ColumnDescriptor;[Lorg/apache/cayenne/access/translator/ParameterBinding;)V?6org/apache/velocity/context/InternalContextAdapterImpl
???((Lorg/apache/velocity/context/Context;)V
????pushCurrentTemplateName(Ljava/lang/String;)V?java/io/StringWriter
????java/lang/Stringlength
?K
\?5?Z(Lorg/apache/velocity/context/InternalContextAdapter;Ljava/lang/Object;)Ljava/lang/Object;
\???renderG(Lorg/apache/velocity/context/InternalContextAdapter;Ljava/io/Writer;)Z
??? toString
???popCurrentTemplateName?java/io/StringReader
????org/apache/velocity/Template
?
?O?d(Ljava/io/Reader;Lorg/apache/velocity/Template;)Lorg/apache/velocity/runtime/parser/node/SimpleNode;?1org/apache/velocity/runtime/parser/ParseException? Error parsing template '%s' : %s
??? 
getMessage
8??((Ljava/lang/String;[Ljava/lang/Object;)V?Error parsing template %s?3org/apache/cayenne/access/jdbc/SQLTemplateProcessorBINDINGS_LIST_KEYLjava/lang/String;
ConstantValueRESULT_COLUMNS_LIST_KEY
HELPER_KEYCodeLineNumberTableLocalVariableTableexLjava/lang/Exception;this:Lorg/apache/cayenne/velocity/VelocitySQLTemplateProcessor;
StackMapTableP(Ljava/lang/String;Ljava/util/Map;)Lorg/apache/cayenne/access/jdbc/SQLStatement;template
parametersLjava/util/Map;internalParametersparsedTemplate4Lorg/apache/velocity/runtime/parser/node/SimpleNode;LocalVariableTypeTable$Ljava/util/Map;5Ljava/util/Map;	Signaturee(Ljava/lang/String;Ljava/util/Map;)Lorg/apache/cayenne/access/jdbc/SQLStatement;Q(Ljava/lang/String;Ljava/util/List;)Lorg/apache/cayenne/access/jdbc/SQLStatement;positionalParametersLjava/util/List;visitorPLorg/apache/cayenne/velocity/VelocitySQLTemplateProcessor$PositionalParamMapper;$Ljava/util/List;e(Ljava/lang/String;Ljava/util/List;)Lorg/apache/cayenne/access/jdbc/SQLStatement;sqleresults
bindingsArray8[Lorg/apache/cayenne/access/translator/ParameterBinding;resultsArray2[Lorg/apache/cayenne/access/jdbc/ColumnDescriptor;ILjava/util/List;CLjava/util/List;?(Ljava/lang/String;Lorg/apache/velocity/runtime/parser/node/SimpleNode;Ljava/util/Map;)Lorg/apache/cayenne/access/jdbc/SQLStatement;context%Lorg/apache/velocity/VelocityContext;ica8Lorg/apache/velocity/context/InternalContextAdapterImpl;outLjava/io/StringWriter;?java/lang/Throwable
ExceptionsnodeTreepex3Lorg/apache/velocity/runtime/parser/ParseException;
SourceFile!VelocitySQLTemplateProcessor.javaNestMembersInnerClassesPositionalParamMapper!????g???m???o?3?*?*?Y?	?
*?Y??*???!*?%??!*?'??!*?)??!*?+??!*?-??!*?/??!*?1??!*??3?L?8Y:+??2??2??2??,??#?????2??#????ST??	??dY?f:?dY?f:-g?iW-m?iW-o*?
?iW*?qY-?s+,?t:?:?8Yx??J??J??J??J??
@??-????@q?\????6OP??L*???Y+????Y????M?N?8Y??Y+SY-??S???,??8Y??Y+S???,???????4?8?J??4????L??L??4???
Z??\???V?
V?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy