Examples of SqlMapClientCallback


Examples of org.g4studio.core.orm.xibatis.support.SqlMapClientCallback

   * @return
   * @throws SQLException
   */
  public Dto batchSaveSfxmDomains(final Dto pDto) {
    Dto outDto = new BaseDto();
    g4Dao.getSqlMapClientTpl().execute(new SqlMapClientCallback() {
      public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
        executor.startBatch();
        for (int i = 0; i < pDto.getAsInteger("count").intValue(); i++) {
          Dto dto = new BaseDto();
          String xmid = IDHelper.getXmID();
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

*/
@SuppressWarnings("unchecked")
public class UtentiDaoImpl extends SqlMapClientDaoSupport implements UtentiDao {

    public int aggiornaUtenti(final List<String> ids, final long idGruppo) {
        return (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
            public Object doInSqlMapClient(SqlMapExecutor executor) {
                int ris = 0;
                try {

                    executor.startBatch();
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

    public int updateUtente(Utente utente) throws DataAccessException {
        return getSqlMapClientTemplate().update("updateUtente", utente);
    }

    public int insertUtenti(final List<Utente> utenti, final long idCentro) throws DataAccessException {
        return (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
            public Object doInSqlMapClient(SqlMapExecutor executor) {
                int ris = 0;
                try {

                    executor.startBatch();
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

            update("updateCenterUser", user);
        }
    }

    public void insertCenterUsers(final List<CenterUser> users) throws DataAccessException {
        execute(new SqlMapClientCallback() {
            public Object doInSqlMapClient(SqlMapExecutor executor) {
                int ris = 0;
                try {
                    executor.startBatch();
                    for (CenterUser centerUser : users) {
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

        params.put("groupId", groupId);
        update("updateDeleteGroup", params);
    }

    public void updateCenterUsers(final Collection<String> ids, final String groupId, final String centerId) throws DataAccessException {
        execute(new SqlMapClientCallback() {
            public Object doInSqlMapClient(SqlMapExecutor executor) {
                int ris = 0;
                try {

                    executor.startBatch();
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

            if (lastEx != null) {
                throw lastEx;
            }
            return counter;
        } else {
            return (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
                public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
                    executor.startBatch();
                    for (Object item : entities) {
                        executor.insert(statementName, item);
                    }
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

            if (lastEx != null) {
                throw lastEx;
            }
            return counter;
        } else {
            return (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
                public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
                    executor.startBatch();
                    for (Object parameterObject : entities) {
                        executor.delete(statementName, parameterObject);
                    }
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

            if (lastEx != null) {
                throw lastEx;
            }
            return counter;
        } else {
            return (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() {

                public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
                    executor.startBatch();
                    for (Object parameterObject : entities) {
                        executor.update(statementName, parameterObject);
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

            if (isPartitioningBehaviorEnabled()) {
                SortedMap<String, DataSource> dsMap = lookupDataSourcesByRouter(statementName,
                        parameterObject);
                if (!MapUtils.isEmpty(dsMap)) {

                    SqlMapClientCallback action = new SqlMapClientCallback() {
                        public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
                            return executor.delete(statementName, parameterObject);
                        }
                    };
View Full Code Here

Examples of org.springframework.orm.ibatis.SqlMapClientCallback

                    return batchInsertAfterReordering(statementName, parameterObject);

                } else {
                    DataSource targetDataSource = null;
                    SqlMapClientCallback action = new SqlMapClientCallback() {
                        public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
                            return executor.insert(statementName, parameterObject);
                        }
                    };
                    SortedMap<String, DataSource> resultDataSources = lookupDataSourcesByRouter(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.