If I have a Java collection as bellows:
If I would like to utilize SQL statements to do search, which tool can help me?
JoSQL (SQL for Java Objects) provides the ability for a developer to apply a SQL statement to a collection of Java Objects.
JoSQL provides the ability to search, order and group ANY Java objects and should be applied when you want to perform SQL-like queries on a collection of Java Objects.
Configure the two jar files in your classpath:
In this example, it will demonstrate:
- find all employee objects
- find all male employee objects
- find employee objects which named "Mandy"
- find all male employee object which onBoardDate between 2009/01/01 to 2009/12/31