public class MappingEngine extends Object
构造器和说明 |
---|
MappingEngine() |
MappingEngine(MappingProvider provider) |
public MappingEngine()
public MappingEngine(MappingProvider provider)
public Entity getFirstEntity(MappingContext context)
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public MappingProvider getMappingProvider()
public Integer getMaxLimit()
public void setMaxLimit(Integer maxLimit)
public LinkedHashMap<String,Entity> getEntities()
public void addEntity(Entity entity)
public MappingVisitor createMappingVisitor()
public MappingVisitor createMappingVisitor(List<Object> parameters)
public MappingVisitor createMappingVisitor(MappingContext context)
public SQLASTOutputVisitor createOutputVisitor(Appendable out)
public String explain(String sql, MappingContext context)
public SQLSelectQueryBlock explainToSelectSQLObject(String sql)
public SQLSelectQueryBlock explainToSelectSQLObject(String sql, MappingContext context)
public String explainToSelectSQL(String sql, MappingContext context)
public void afterResole(MappingVisitor visitor)
public SQLDeleteStatement explainToDeleteSQLObject(String sql, MappingContext context)
public String explainToDeleteSQL(String sql, MappingContext context)
public String resolveTableName(Entity entity, MappingContext context)
public String resovleColumnName(Entity entity, Property property, MappingContext context)
public SQLUpdateStatement explainToUpdateSQLObject(String sql, MappingContext context)
public String explainToUpdateSQL(String sql, MappingContext context)
public SQLInsertStatement explainToInsertSQLObject(String sql, MappingContext context)
public String explainToInsertSQL(String sql, MappingContext context)
public List<Map<String,Object>> select(Connection conn, String sql, List<Object> parameters) throws SQLException
SQLException
public List<Map<String,Object>> select(Connection conn, String sql, MappingContext context) throws SQLException
SQLException
public int delete(Connection conn, String sql, List<Object> parameters) throws SQLException
SQLException
public int delete(Connection conn, String sql, MappingContext context) throws SQLException
SQLException
public int update(Connection conn, String sql, List<Object> parameters) throws SQLException
SQLException
public int update(Connection conn, String sql, MappingContext context) throws SQLException
SQLException
public void insert(Connection conn, String sql, Object... parameters) throws SQLException
SQLException
public void insert(Connection conn, String sql, List<Object> parameters) throws SQLException
SQLException
public void insert(Connection conn, String sql, MappingContext context) throws SQLException
SQLException
public Connection getConnection() throws SQLException
SQLException
public List<Map<String,Object>> select(String sql, Object... parameters) throws SQLException
SQLException
public List<Map<String,Object>> select(String sql, List<Object> parameters) throws SQLException
SQLException
public int delete(String sql, Object... parameters) throws SQLException
SQLException
public int delete(String sql, List<Object> parameters) throws SQLException
SQLException
public int update(String sql, List<Object> parameters) throws SQLException
SQLException
public void insertToTable(String tableName, Map<String,Object> map) throws SQLException
SQLException
public void insert(String sql, Object... parameters) throws SQLException
SQLException
public void insert(String sql, List<Object> parameters) throws SQLException
SQLException
Copyright © 2012 Alibaba Group. All Rights Reserved.