0
I Use This!
Activity Not Available
Analyzed about 1 year ago. based on code collected about 1 year ago.

Project Summary

Lightweight, flexible Data Access Library for Java (ORM alternative).

There is no xml configuration, no SQL (or any other) scripting, just a thin layer on top of JDBC to make it more "object-oriented"

usage is as simple as:

1. Query:

List models = getDao().execute(new DAOQuery(new DAOQueryConstructor()
{
@Override
public Object fromDatabase(DAOStatementQuery.QueryResultSet resultSetWrapper) throws SQLException
{
ParentModel model = new ParentModel();
model.setId(resultSetWrapper.getLong(DbParent.FIELD_ID));
model.setName(resultSetWrapper.getString(DbParent.FIELD_NAME));
return model;
}
}, new DAOParameters(new DAOParameter(DbParent.FIELD_ID, 1, DAOFunction.Name.MORE_THAN)),
DbParent.Instance.getTable()
)).asList();

2. Update:

DAOUpdate update = new DAOUpdate(DbParent.Instance.getTable(), new DAOParameter(DbParent.FIELD_ID, 1));
update.getCache().add(DbParent.FIELD_NAME, "Name1 updated");
getDao().execute(update);

More samples for Musedao are available in the source package. Currently only Mysql and PostgreSql are supported. If you would like to port it to another RDMS, please write to alexei.y.popov@gmail.com

Tags

dao java jdbc

In a Nutshell, musedao...

 No recognizable code

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has code locations but that location contains no recognizable source code for Open Hub to analyze.

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    check out hot projects on the Open Hub
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    learn about Open Hub updates and features on the Open Hub blog

 No recognizable code

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has code locations but that location contains no recognizable source code for Open Hub to analyze.

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!