Examples of PoiEntity


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

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

        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

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

    @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

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

        }
    }

    public void DebugAddRandomPoiEntity()
    {
        PoiEntity poiEntity = new PoiEntity();

        //set local attributes
        poiEntity.setName(BaseUtil.GenerateRandomString(10));
        poiEntity.setLatitude(10.0);
        poiEntity.setLongitude(10.0);

        //type relationship .. get it from DB
        try
        {
            List<BasicEntityType> basicEntityType = basicEntityTypeService.getAll();
            for(BasicEntityType bet:basicEntityType)
            {
                if(bet.getType() == EntityType.POI)
                {
                    poiEntity.setEntityType(bet);
                    poiEntityService.create(poiEntity);
                    break;
                }
            }
        }
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.