Package au.com.motodetail.poi.ejbclient.entity

Examples of au.com.motodetail.poi.ejbclient.entity.PoiEntity


    //POST VIEW ACTIONS
    public String PostViewAction(String action, Poi poiEntity) {
        BaseUtil.writeLog("PoiBean::PostViewAction param: " + action);

        PoiEntity poi = new PoiEntity();
//        boolean bPoiTypeFound = false;
//
        switch(EntityAction.valueOf(action)) {
            case CREATE:
                poi.setName(name);
                poi.setLatitude(Double.valueOf(latitude));
                poi.setLongitude(Double.valueOf(longitude));
                poiManager.create(poi);
                break;
//
//            case UPDATE:
//                poi.setName(name);
View Full Code Here


        BaseUtil.writeLog("PoiEntityServiceImpl::update ID: " + poiEntity.getId());
        //start transaction
        JPAUtil.createTransactionalEntityManager();

        //retrieve person from db to merge
        PoiEntity ptemp = poiEntityDao.retrieve(poiEntity.getId());

        //modify here
        ptemp.setEntityType(poiEntity.getEntityType());
        ptemp.setLatitude(poiEntity.getLatitude());
        ptemp.setLongitude(poiEntity.getLongitude());
        ptemp.setName(poiEntity.getName());
        ptemp.setRoles(poiEntity.getRoles());

        //commit changes
        poiEntityDao.update(ptemp);

        //commit transaction
View Full Code Here

    @Override
    public PoiEntity getById(Long id) {
        BaseUtil.writeLog("PoiEntityServiceImpl::getById ID: " + id);
        JPAUtil.createEntityManager();
        PoiEntity result = poiEntityDao.retrieve(id);
        JPAUtil.closeEntityManager();
        return result;
    }
View Full Code Here

TOP

Related Classes of au.com.motodetail.poi.ejbclient.entity.PoiEntity

Copyright © 2018 www.massapicom. 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.