public class ParamParserNoMark extends Object implements ParamParser
IncludeTag, ProcedureTag, etc)| Modifier and Type | Method and Description |
|---|---|
static ParamParser |
emptyParser()
Empty parser from sql parameter
|
String[] |
find(String query)
extract the parameters names from query.
|
String |
getPlaceholder()
Specifies a character that will be replaced to in SQL query.
|
ParamMarkType |
getType() |
String |
replaceForPlaceholder(String query)
Replace the parameters names for question marks
|
String |
replaceForPlaceholder(String query,
Object params)
Replace the parameters names for question marks
|
String |
replaceForPlaceholderWithNumber(String query,
Object params) |
public static ParamParser emptyParser()
public String[] find(String query)
ParamParserfind in interface ParamParserquery - the SQL sentencepublic String replaceForPlaceholder(String query, Object params)
ParamParserreplaceForPlaceholder in interface ParamParserquery - the SQL sentenceparams - parameters used at query, its necessary when the query use IN clausepublic String replaceForPlaceholderWithNumber(String query, Object params)
replaceForPlaceholderWithNumber in interface ParamParserpublic String replaceForPlaceholder(String query)
ParamParserreplaceForPlaceholder in interface ParamParserquery - the SQL sentencepublic ParamMarkType getType()
getType in interface ParamParserpublic String getPlaceholder()
ParamParser?getPlaceholder in interface ParamParserCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.