@Test public void testDeleteByPhysicalClzObject() { int i = dao.deleteByPhysical(UserNotifyPO.class, 1L); System.out.println("size:" + i); }
@Override public int deleteByPhysical(Object... pojos) throws DataAccessException { int r = 0; for (Object obj : pojos) { try { SqlDelGenerator sqlGenerator = new SqlDelGenerator(obj, true); r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs()); } catch (IllegalArgumentException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (IllegalAccessException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (NoSuchFieldException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SecurityException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SQLException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } } return r; }
DefaultCommonDao implements ICommonDao { @Override public int deleteByPhysical(Object... pojos) throws DataAccessException { int r = 0; for (Object obj : pojos) { try { SqlDelGenerator sqlGenerator = new SqlDelGenerator(obj, true); r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs()); } catch (IllegalArgumentException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (IllegalAccessException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (NoSuchFieldException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SecurityException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SQLException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } } return r; } }
DefaultCommonDao implements ICommonDao { @Override public int deleteByPhysical(Object... pojos) throws DataAccessException { int r = 0; for (Object obj : pojos) { try { SqlDelGenerator sqlGenerator = new SqlDelGenerator(obj, true); r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs()); } catch (IllegalArgumentException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (IllegalAccessException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (NoSuchFieldException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SecurityException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SQLException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } } return r; } DefaultCommonDao(); }
DefaultCommonDao implements ICommonDao { @Override public int deleteByPhysical(Object... pojos) throws DataAccessException { int r = 0; for (Object obj : pojos) { try { SqlDelGenerator sqlGenerator = new SqlDelGenerator(obj, true); r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs()); } catch (IllegalArgumentException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (IllegalAccessException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (NoSuchFieldException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SecurityException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SQLException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } } return r; } DefaultCommonDao(); @Override PaginationSupport<T> queryForPaginatedPojoList(String sql,
			Object[] args, Class<T> pojoType, RowSelection rowSelection); @Override PaginationSupport<T> queryForPaginatedPojoList(
			Class<T> pojoType, Map<String, Object> args,
			RowSelection rowSelection); @Override List<Map<String, Object>> queryForMapList(String sql, Object... args); @Override List<Map<String, Object>> queryForMapList(String sql, Map<String, Object> params); @Override List<T> queryForPojoList(String sql, Object[] args,
			Class<T> pojoType); @Override List<T> queryForPojoList(String sql, Map<String, Object> params,
			Class<T> pojoType); @Override List<T> queryForPojoList(Class<T> pojoType, Map<String, Object> args); @Override List<T> queryForPojoList(Class<T> pojoType, String col, Object... args); @SuppressWarnings("unchecked") @Override T queryForSimpObject(String sql, Object[] args, Class<T> requiredType); @Override List<T> queryForSimpObjectList(String sql, Object[] args,
			Class<T> requiredType); @Override T queryForPojoOne(Class<T> pojoType, Map<String, Object> args); @Override T queryCallback(String sql, Object[] args, ResultSetExtractor<T> resultSetExtractor); @Override int update(String sql, Object... args); @Override int updateByLogic(Object... pojos); @Override int updateByPhysical(Object... pojos); @Override int deleteByLogic(Object... pojos); @Override int deleteByPhysical(Object... pojos); @Override int delete(Class<T> pojoType, Map<String, Object> args); @Override int deleteByLogic(Class<T> pojoType, Object... args); @Override int deleteByPhysical(Class<T> pojoType, Object... args); @Override int insert(Object... pojos); @Override int[] batchUpdate(String sql, List<Object[]> argsList); @Override int[] batchUpdateByLogic(Class<T> pojoType, T... pojos); @Override int[] batchUpdateByPhysical(Class<T> pojoType, T... pojos); void setDataSource(DataSource dataSource); void setDbType(DBType dbType); }
DefaultCommonDao implements ICommonDao { @Override public int deleteByPhysical(Object... pojos) throws DataAccessException { int r = 0; for (Object obj : pojos) { try { SqlDelGenerator sqlGenerator = new SqlDelGenerator(obj, true); r += execute(sqlGenerator.getSql(), sqlGenerator.getArgs()); } catch (IllegalArgumentException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (IllegalAccessException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (NoSuchFieldException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SecurityException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } catch (SQLException e) { logger.error("init delete sql error! exec number : {}", r, e); throw new DataAccessException("init delete sql error!", e); } } return r; } DefaultCommonDao(); @Override PaginationSupport<T> queryForPaginatedPojoList(String sql,
			Object[] args, Class<T> pojoType, RowSelection rowSelection); @Override PaginationSupport<T> queryForPaginatedPojoList(
			Class<T> pojoType, Map<String, Object> args,
			RowSelection rowSelection); @Override List<Map<String, Object>> queryForMapList(String sql, Object... args); @Override List<Map<String, Object>> queryForMapList(String sql, Map<String, Object> params); @Override List<T> queryForPojoList(String sql, Object[] args,
			Class<T> pojoType); @Override List<T> queryForPojoList(String sql, Map<String, Object> params,
			Class<T> pojoType); @Override List<T> queryForPojoList(Class<T> pojoType, Map<String, Object> args); @Override List<T> queryForPojoList(Class<T> pojoType, String col, Object... args); @SuppressWarnings("unchecked") @Override T queryForSimpObject(String sql, Object[] args, Class<T> requiredType); @Override List<T> queryForSimpObjectList(String sql, Object[] args,
			Class<T> requiredType); @Override T queryForPojoOne(Class<T> pojoType, Map<String, Object> args); @Override T queryCallback(String sql, Object[] args, ResultSetExtractor<T> resultSetExtractor); @Override int update(String sql, Object... args); @Override int updateByLogic(Object... pojos); @Override int updateByPhysical(Object... pojos); @Override int deleteByLogic(Object... pojos); @Override int deleteByPhysical(Object... pojos); @Override int delete(Class<T> pojoType, Map<String, Object> args); @Override int deleteByLogic(Class<T> pojoType, Object... args); @Override int deleteByPhysical(Class<T> pojoType, Object... args); @Override int insert(Object... pojos); @Override int[] batchUpdate(String sql, List<Object[]> argsList); @Override int[] batchUpdateByLogic(Class<T> pojoType, T... pojos); @Override int[] batchUpdateByPhysical(Class<T> pojoType, T... pojos); void setDataSource(DataSource dataSource); void setDbType(DBType dbType);  }