public interface ParamParser
'?', used at JDBC prepared statements.
Instances of this class must be IMMUTABLE and safe for use by multiple concurrent threads| Modifier and Type | Method and Description |
|---|---|
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) |
String[] find(String query)
query - the SQL sentenceString replaceForPlaceholder(String query, Object params)
query - the SQL sentenceparams - parameters used at query, its necessary when the query use IN clauseString replaceForPlaceholder(String query)
query - the SQL sentenceString replaceForPlaceholderWithNumber(String query, Object params)
ParamMarkType getType()
String getPlaceholder()
?Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.