9/28/2010

Mailing list for Mirage is now available!

Mailing list for Mirage is now available.

You can subscribe this list at the following page:
http://lists.sourceforge.jp/mailman/listinfo/amateras-mirage

And Mirage 1.0.5 which contains some new features such as batch updating and entity generation tool and also new click-mirage-examples would be released soon!

9/04/2010

Mirage 1.0.4 Released!

Mirage 1.0.4 is now available!

Mirage is a simple SQL centric database access library. See the following URL to know about Mirage:

Here is the list of changes in Mirage 1.0.4:

  • JavaSE 5 support (Mirage 1.0.3 and before work with only JavaSE 6)
  • BugFix: Map which contains null properties causes NullPointerException in SqlManager#executeUpdate()
  • BugFix: When the column value is NULL then Mirage sets the default value of primitive types to entity wrapper type properties.
  • Add new methods to SqlManager for direct sql execution:
    • SqlManager#getResultListBySql()
    • SqlManager#getSingleResultBySql()
    • SqlManager#iterateBySql()
    • SqlManager#executeUpdatySql()

I wish that Mirage helps your development. Enjoy!

7/20/2010

ClickIDE 2.2.0.0 is now available!

ClickIDE 2.2.0.0 is now available!

ClickIDE is an Eclipse plug-in for the developing Click web applications.

This version supports Apache Click 2.2.0 and fixed some issues.

Details about ClickIDE:
http://click.apache.org/docs/click-ide.html
Download page:
http://click.apache.org/docs/click-ide-downloads.html

Enjoy Click!

7/05/2010

EclipseHTMLEditor 2.0.7 Released!

Project Amateras released EclipseHTMLEditor 2.0.7 at 05 July 2010.

EclipseHTMLEditor is an Eclipse plug-in which provides HTML, XML, JSP, JavaScript, CSS and DTD editor.

The main topic of this release is improvement of JavaScript editor. Enhanced JavaScript parser provides many new features for code completion, hyperlink and the outline view.

Here is a list of new features in this release.

  • JavaScript editor improvenemnt
    • Code completion was greatly improved
    • jQuery code completion
    • Quick Outline (CTRL + O)
    • JsDoc support
    • Selected word highlighting
  • XPath search dialog is available in the HTML editor
  • Configurable HTML/JSP formatter
  • Synchronization of the caret offset and outline view selection in HTML, XML, JSP and JavaScript editor

See details here about new features.

Enjoy your development!

6/15/2010

Mirage 1.0.3 Released

Mirage 1.0.3 is now available!

Mirage is a simple SQL centric database access library. See the following URL to know about Mirage:

Here is the list of changes in this release:

  • Iteration search per a record using cursor.
  • Stored procedure / function support.
  • BugFix about SqlManager#insertEntity().

Please see also my past entries about new features in Mirage 1.0.3.

I wish that Mirage helps your development. Enjoy!

6/03/2010

Mirage supports stored procedure/function

The next version of Mirage will support stored procedure/function. We added new methods to call them to SqlManager in the SVN trunk.

Here is an example to call stored function in Mirage:

// Creates parameter object which give to stored function
GetCountParam param = new GetCountParam();
param.deptId = 1;
...
// Calls a stored function and get a result value.
Long count = sqlManager.call(Long.class, "get_emp_count", param);

Fields of the parameter class has annotation such as @In, @Out, @InOut and @ResultSet. These annotations mean parameter type.

If the function returns ResultSet, use SqlManager#callForList() instead of SqlManager#call().

Please wait for the next release of Mirage!

5/09/2010

Large results processing in Mirage

The next release of Mirage is 1.0.3. It contains some new features. Today, I write about iteration search which is one of them.

SqlManager#getResultList() creates all entity instances and returns a list which contains them. If SQL returns a large result, it causes OutOfMemory.

In these case, you should use SqlManager#iterate() instead of SqlManager#getResultList().

Integer result = sqlManager.iterate(
  Book.class,
  new IterationCallback<Book, Integer>() {

    private int result;

    @Override public Integer iterate(Book entity) {
      result = result + entity.price;
      return result;
    }

  },
  SQL_PREFIX + "SqlManagerImplTest_selectBooks.sql");

SqlManager#iterate() accepts IterationCallback and invoke it per record. The return value of SqlManager#iterate() is a last returned value from IterationCallback.

Iteration search would be available in Mirage 1.0.3.