Package net.sf.jkniv.sqlegance.params
Class ParamParserQuestionMark
- java.lang.Object
-
- net.sf.jkniv.sqlegance.params.AbstractParamParser
-
- net.sf.jkniv.sqlegance.params.ParamParserQuestionMark
-
- All Implemented Interfaces:
ParamParser
public class ParamParserQuestionMark extends AbstractParamParser
- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Field Summary
-
Fields inherited from class net.sf.jkniv.sqlegance.params.AbstractParamParser
log, REGEX_COLON_MARK, REGEX_DOLLAR_MARK, REGEX_HASH_MARK, REGEX_IN, REGEX_QUESTION_MARK, REGEX_SINGLE_QUOTE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]find(String query)extract the parameters names from query.static ParamParsergetInstance()ParamMarkTypegetType()-
Methods inherited from class net.sf.jkniv.sqlegance.params.AbstractParamParser
getParamsClauseIN, getPlaceholder, padspace, replaceForPlaceholder, replaceForPlaceholder, replaceForPlaceholderWithNumber
-
-
-
-
Method Detail
-
getInstance
public static ParamParser getInstance()
-
find
public String[] find(String query)
Description copied from interface:ParamParserextract the parameters names from query.- Parameters:
query- the SQL sentence- Returns:
- array parameters from query
-
getType
public ParamMarkType getType()
-
-