sormula simple (easy) object relational mapping
Custom SQL Parameter
Select all rows with quanities of 1 to 42.
// set up
Database database = new Database(getConnection());
Table<Inventory> inventoryTable = database.getTable(Inventory.class);

// execute
List<Inventory> results = inventoryTable.selectAllCustom(
        "where quantity between ? and ?", 1, 42);

// show results
for (Inventory inventory: results)
{
    System.out.println(inventory.getPartNumber() + 
    	" quantity=" + inventory.getQuantity());
}
INVENTORY schema and Inventory.java used by this example. See SimpleExample.java class in the Simple Example download.