Package co.cubicode.jdbcframework

Examples of co.cubicode.jdbcframework.DatabaseFactory.query()


    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(Permission.class, "findByPrimaryKey");
    sql.setParameter("application", application);
    sql.setParameter("objectType", objectType);
    sql.setParameter("operationType", operationType);
    return instance.query(Permission.class, sql);
  }

}
View Full Code Here


  public static User findByPrimaryKey(Long id) throws ObjectNotFoundException {
    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(User.class, "findByPrimaryKey");
    sql.setParameter("id", id);
    return instance.query(User.class, sql);
  }

  public static List<User> getAll() throws ObjectNotFoundException {
    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(User.class, "getAll");
View Full Code Here

  public static Role findByPrimaryKey(Integer id) throws ObjectNotFoundException {
    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(Role.class, "findByPrimaryKey");
    sql.setParameter("id", id);
    return instance.query(Role.class, sql);
  }

}
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.