Skip to content

TypeSafeValues

gert-wijns edited this page Sep 12, 2014 · 2 revisions

TypeSafeValues are at the core of the TypeSafeQueryBuilder. Every value used in the query is represented by a TypeSafeValue.

A TypeSafeValue knows about which valueType it represents and can be converted to an HqlQueryValue when the query is being prepared to list results.

Most TypeSafeValue subtypes are used under the hood. The ones that could be used directly are:

  • CustomTypeSafeValue, used to inject custom HQL into the query
  • NullTypeSafeValue, used when it is more convenient to return a value than to handle a special null case
Clone this wiki locally