Uses of Interface
de.calamanari.adl.sql.QueryParameter
Packages that use QueryParameter
-
Uses of QueryParameter in de.calamanari.adl.sql
Classes in de.calamanari.adl.sql that implement QueryParameterModifier and TypeClassDescriptionfinal recordDefault implementation of aQueryParameterto pass a value to be set on a prepared statementMethods in de.calamanari.adl.sql that return QueryParameterModifier and TypeMethodDescriptionDefaultQueryParameterCreator.createParameter(de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) QueryParameterCreator.createParameter(de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) Takes an argument from an expression withAdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time.QueryParameterCreator.createParameter(String id, de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) Takes an argument from an expression withAdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time.Methods in de.calamanari.adl.sql that return types with arguments of type QueryParameterModifier and TypeMethodDescriptionQueryTemplateWithParameters.orderedParameters()Returns the value of theorderedParametersrecord component.Methods in de.calamanari.adl.sql with parameters of type QueryParameterModifier and TypeMethodDescriptionvoidDefaultQueryParameterApplicator.apply(PreparedStatement stmt, QueryParameter parameter, int parameterIndex) voidQueryParameterApplicator.apply(PreparedStatement stmt, QueryParameter parameter, int parameterIndex) Sets the value of the given parameter on the statement at the given index.voidDefaultQueryParameterApplicator.applyUnsafe(StringBuilder sb, QueryParameter parameter, int parameterIndex) voidQueryParameterApplicator.applyUnsafe(StringBuilder sb, QueryParameter parameter, int parameterIndex) Appends the value of the given parameter to an SQL script.Method parameters in de.calamanari.adl.sql with type arguments of type QueryParameterModifier and TypeMethodDescriptionstatic QueryTemplateWithParametersQueryTemplateWithParameters.of(String queryTemplate, List<QueryParameter> parameters) Takes a template with named parameters (${id}references) and a list of parameters to produce a query template with positional parameters to be executed later as aPreparedStatementafter callingQueryTemplateWithParameters.apply(PreparedStatement)to set the parameters safely.Constructor parameters in de.calamanari.adl.sql with type arguments of type QueryParameterModifierConstructorDescriptionQueryTemplateWithParameters(String qmTemplate, List<QueryParameter> orderedParameters, List<Integer> qmPositions) In general you should useQueryTemplateWithParameters.of(String, List)instead of directly calling this constructor -
Uses of QueryParameter in de.calamanari.adl.sql.cnv
Methods in de.calamanari.adl.sql.cnv that return types with arguments of type QueryParameterModifier and TypeMethodDescriptionResettableScpContext.getRegisteredParameters()SqlConversionProcessContext.getRegisteredParameters()ColumnCondition.parameters()Returns the value of theparametersrecord component.Methods in de.calamanari.adl.sql.cnv with parameters of type QueryParameterModifier and TypeMethodDescriptionvoidResettableScpContext.registerParameter(QueryParameter parameter) voidSqlConversionProcessContext.registerParameter(QueryParameter parameter) Registers a query parameter of the current query.Constructor parameters in de.calamanari.adl.sql.cnv with type arguments of type QueryParameterModifierConstructorDescriptionColumnCondition(ColumnConditionType type, de.calamanari.adl.irl.MatchOperator operator, AdlSqlColumn column, List<QueryParameter> parameters) Creates an instance of aColumnConditionrecord class.