Since the original variable names can't be gotten from the string context (they're replaced by empty strings), use numbers to represent the parameter names, starting from 0.
Given a query with named parameters beginning with '@', construct the query for use with JDBC, so that names are replaced by '?', and each parameter has a map to its positions in the query.
Given a query with named parameters beginning with '@', construct the query for use with JDBC, so that names are replaced by '?', and each parameter has a map to its positions in the query.
Parameter names must start with a unicode letter or underscore, and then any character after the first one can be a unicode letter, unicode number, or underscore. A parameter that does not follow this scheme must be quoted by backticks. Parameter names are case sensitive.
Two '@' in a row are replaced with a single '@'. This follows the same rules as String), so that "@@@abc" becomes "@?".
Examples of identifiers:
"@hello"
"@`hello there`"
"@_i_am_busy"
Construct a CompiledStatement without altering the queryText.
Read a query from a resource where constructing the full path to the resource requires the class.
Read a query from a resource where constructing the full path to the resource requires the class.
Using a different nameMangler
allows different naming schemes depending
on your requirements. The default is to look for resources in the same
package as the given class. See NameManglers for more examples.
Name mangling is generally required, because if you have a class a.B, package a.B containing query files can not also exist.
Read a query from a resource where constructing the full path to the resource requires the class.
Read a query from a resource where constructing the full path to the resource requires the class.
Using a different nameMangler
allows different naming schemes depending
on your requirements. The default is to look for resources in the same
package as the given class. See NameManglers for more examples.
Name mangling is generally required, because if you have a class a.B, package a.B containing query files can not also exist.