Class QueryAndParams
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.QueryAndParams
-
public final class QueryAndParams extends Object
Query and Params.Means a prepared (and transformed if neccessary) query and parameters in sequental order.
This class is a value-object.
Before 8.1.3 it was an inner class of
DBFunctions.- Since:
- 8.1.3
-
-
Field Summary
Fields Modifier and Type Field Description QueryKindkindKind of the query.static intourShortDescriptionLengthLimitstatic intourShortDescriptionParamLengthLimitStringqueryThe query text.
-
Constructor Summary
Constructors Constructor Description QueryAndParams(QueryKind kind, String query, int batchDataRows)Trivial constructor for batch operations.QueryAndParams(QueryKind kind, String query, Object[] params)Trivial constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidappendParams(StringBuilder b, Object[] params, boolean useNLs, int limitDescriptionLength, int limitParamLength)booleanequals(Object o)Object[]getParams()StringgetTypeDescription()Generates and returns a description of the type of the query.inthashCode()QueryAndParamssubstituteQuery(String newSqlQuery)StringtoString()Just callsgetShortDescription()
-
-
-
Method Detail
-
appendParams
public static void appendParams(@NotNull StringBuilder b, @Nullable Object[] params, boolean useNLs, int limitDescriptionLength, int limitParamLength)
-
getTypeDescription
public String getTypeDescription()
Generates and returns a description of the type of the query.
-
getParams
@Nullable public Object[] getParams()
-
toString
public String toString()
Just callsgetShortDescription()
-
substituteQuery
@NotNull public QueryAndParams substituteQuery(@NotNull String newSqlQuery)
-
-