Package net.caece.pri.hibernate

Examples of net.caece.pri.hibernate.UserDao


        }
    }

    public void add() {
        User obj = (User) viewToObj(null);
        UserDao dao = new UserDao();
        add(dao, obj);
    }
View Full Code Here


        add(dao, obj);
    }

    public void delete() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        delete(dao, obj);

        // empty all fields
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
View Full Code Here

        refreshObjEntities("User.getAll", objListRenderer);
    }

    public void update() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        update(dao, obj);
    }
View Full Code Here

        // SAVE THE MD5 VALUE OF CLIENT'S PASSWORD
        if (obj.getPasswd() != null) {
            obj.setPasswd(Utility.getInstance().md5(obj.getPasswd()));
        }

        UserDao dao = new UserDao();
        dao.create(obj);
        dao = null;

        refreshObjEntities();

    }
View Full Code Here

        // encode password to md5
        if (obj.getPasswd() != null) {
            obj.setPasswd(Utility.getInstance().md5(obj.getPasswd()));
        }

        UserDao dao = new UserDao();
        dao.update(obj);
        dao = null;

        refreshObjEntities();

    }
View Full Code Here

        }
        dutyList = null;


        obj = (User) viewToObj(item.getValue());
        UserDao dao = new UserDao();
        dao.delete(obj);
        dao = null;

        onCreate();

        refreshObjEntities();
View Full Code Here

        }
    }

    public void add() {
        User obj = (User) viewToObj(null);
        UserDao dao = new UserDao();
        add(dao, obj);
    }
View Full Code Here

        add(dao, obj);
    }

    public void delete() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        delete(dao, obj);

        // empty all fields
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
View Full Code Here

        refreshObjEntities("User.getAll", objListRenderer);
    }

    public void update() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        update(dao, obj);



View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.UserDao

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.