com.github.drinkjava2.jdbpro
Interface ClassTranslator
public interface ClassTranslator
ClassTranslator translator a class item into real SqlItem. for example:
pExecute(SqlText.class, "2", "Bar"); if SqlText is a Text type class, the
DefaultClassTranslator will translate it to a String
- Since:
- 2.0.4
- Author:
- Yong Zhu
|
Method Summary |
boolean |
translate(boolean inlineStyle,
PreparedSQL predSQL,
Class<?> clazz)
Translate a class item into real SqlItem. |
translate
boolean translate(boolean inlineStyle,
PreparedSQL predSQL,
Class<?> clazz)
- Translate a class item into real SqlItem. for example:
pExecute(SqlText.class, "2", "Bar"); if SqlText is a Text type class, the
DefaultClassItemTranslator will translate it to a String
- Parameters:
inlineStyle - if is inside of a in-line style call?predSQL - the PreparedSQL instanceclazz - the class item
- Returns:
- if can not translate by current implementation, return false,
otherwise return true
Copyright © 2018. All rights reserved.