Examples of CapaInformacion


Examples of es.emergya.bbdd.bean.CapaInformacion

    @Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = false, rollbackFor = Throwable.class)
    public void removeUsuarios(CapaInformacion ci) {
        try {
            final Session currentSession = getSession();
            currentSession.clear();
            CapaInformacion r = this.get(ci.getId());
            if (r != null && r.getCapasInformacion() != null) {
                for (CapaInformacionUsuario capaUsuario : r.getCapasInformacion()) {
                    currentSession.delete(capaUsuario);
                }
            }
        }
        catch (Throwable t) {
View Full Code Here

Examples of es.emergya.bbdd.bean.CapaInformacion

    }

    @Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = false, rollbackFor = Throwable.class)
    public void updateOrden() {
        try {
            List<CapaInformacion> capas = getByFilter(new CapaInformacion());
            int i = 1;
            for (CapaInformacion capa : capas) {
                capa.setOrden(i++);
                saveOrUpdate(capa);
            }
View Full Code Here

Examples of es.emergya.bbdd.bean.CapaInformacion

        return res;
    }

    @Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = true, rollbackFor = Throwable.class)
    public CapaInformacion getByNombre(String nombre) {
        CapaInformacion res = null;
        try {
            Session currentSession = getSession();
            currentSession.clear();
            Criteria criteria = currentSession.createCriteria(
                    CapaInformacion.class).add(
View Full Code Here

Examples of es.emergya.bbdd.bean.CapaInformacion

    Usuario u = ciu.getUsuario();
    if (u.getId() == null) {
      log.error("Usuario sin ID");
      return false;
    }
    CapaInformacion capa = ciu.getCapaInformacion();
    if (capa.getId() == null) {
      log.error("Capa sin ID");
      return false;
    }

    u = this.get(u.getId());
    capa = (CapaInformacion) this.getSession().get(CapaInformacion.class,
        capa.getId());

    if (u == null || capa == null) {
      log
          .error("Estamos intentando guardar un usuario o capa que ya no existen");
      return false;
View Full Code Here

Examples of es.emergya.bbdd.bean.CapaInformacion

      }
    }

    if (cu == null) {
      cu = new CapaInformacionUsuario(); // Creamos una nueva relacion
      CapaInformacion capa = CapaConsultas.getByNombre(layerName);
      cu.setVisibleHistorico(false); // la iniciamos todo a falso y con
      // sus valores
      cu.setVisibleGPS(false);
      cu.setCapaInformacion(capa);
      cu.setUsuario(Authentication.getUsuario());
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.