Interface SqlStatementParser
-
- All Implemented Interfaces:
public interface SqlStatementParserParsing out the plain table, datasource types and replacing boundaries
- Since:
2019-06-11
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSqlStatementParser.SqlType
-
Method Summary
Modifier and Type Method Description abstract SqlStatementParser.SqlTypeparseTypeAndTable(String sql)Parser the type of datasource and plain table name. abstract StringsafeName(String str)For non-standard names (e.g. abstract StringsafeValue(Object obj)Convert the value to the sql literal form abstract StringtrimName(String str)trim the name to plain style, e.g. -
-
Method Detail
-
parseTypeAndTable
abstract SqlStatementParser.SqlType parseTypeAndTable(String sql)
Parser the type of datasource and plain table name.
-
safeName
abstract String safeName(String str)
For non-standard names (e.g. non-ASCII, keyword), escape them to safe word.
- Parameters:
str- name
-
safeValue
abstract String safeValue(Object obj)
Convert the value to the sql literal form
- Parameters:
obj- value
-
-
-
-