Package one.xingyi.sqlAndParamsTest
Interface ISqlAndParamsTest
public interface ISqlAndParamsTest
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic voidcheckParamsCountAgainstSql(ISqlAndParams sqlAndParams) static voidcheckSqlAndParamsLegal(ISqlAndParams sqlAndParams) static <Req> voidcheckSqlAndParamsPfnListLegal(Req req, List<IPartialFunction<Req, ISqlAndParams>> pfnList) static voidcheckSqlLegal(String sql) static <Req> voidtestPermutations(Req req, List<IPartialFunction<Req, ISqlAndParams>> pfnList) static <Req> voidtestPermutations(Req req, List<IPartialFunction<Req, ISqlAndParams>> pfnList, boolean throwExceptionIfNotDefined)
-
Method Details
-
checkSqlLegal
- Throws:
MalformedSqlException
-
checkParamsCountAgainstSql
-
checkSqlAndParamsLegal
-
checkSqlAndParamsPfnListLegal
static <Req> void checkSqlAndParamsPfnListLegal(Req req, List<IPartialFunction<Req, ISqlAndParams>> pfnList) throws net.sf.jsqlparser.JSQLParserException- Throws:
net.sf.jsqlparser.JSQLParserException
-
testPermutations
-
testPermutations
static <Req> void testPermutations(Req req, List<IPartialFunction<Req, ISqlAndParams>> pfnList, boolean throwExceptionIfNotDefined)
-