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)
ParamParser
find
in interface ParamParser
query
- the SQL sentencepublic String replaceForPlaceholder(String query, Object params)
ParamParser
replaceForPlaceholder
in interface ParamParser
query
- the SQL sentenceparams
- parameters used at query, its necessary when the query use IN clausepublic String replaceForPlaceholderWithNumber(String query, Object params)
replaceForPlaceholderWithNumber
in interface ParamParser
public String replaceForPlaceholder(String query)
ParamParser
replaceForPlaceholder
in interface ParamParser
query
- the SQL sentencepublic ParamMarkType getType()
getType
in interface ParamParser
public String getPlaceholder()
ParamParser
?
getPlaceholder
in interface ParamParser
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.