Examples of DBGameFilesBean


Examples of org.c3s.rpgplayer.db.beans.DBGameFilesBean

        if (update && bean.getGameFileId() != null && ("insert".equals(bean.getState()) || "none".equals(bean.getState()))) {
          DbAccess.gameFilesAccess.updateByPrimaryKey(mapper.map(bean, DBGameFilesBean.class), bean.getGameFileId());
        } else if (update && bean.getGameFileId() != null && "delete".equals(bean.getState())) {
          DbAccess.gameFilesAccess.deleteByPrimaryKey(bean.getGameFileId());
        } else if (update && bean.getGameFileId() == null && "insert".equals(bean.getState())) {
          DBGameFilesBean newBean = new DBGameFilesBean().
              setFileId(file_id).setGameId(game_id).setLinkType(bean.getLinkType()).setIsActive(1);
          DbAccess.gameFilesAccess.insert(newBean);
        }
       
        if (!update || !"delete".equals(bean.getState())) {
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.