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 QueryKind
kind
Kind of the query.static int
ourShortDescriptionLengthLimit
static int
ourShortDescriptionParamLengthLimit
String
query
The 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 void
appendParams(StringBuilder b, Object[] params, boolean useNLs, int limitDescriptionLength, int limitParamLength)
boolean
equals(Object o)
Object[]
getParams()
String
getTypeDescription()
Generates and returns a description of the type of the query.int
hashCode()
QueryAndParams
substituteQuery(String newSqlQuery)
String
toString()
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)
-
-