Roland Haeder [Thu, 13 Aug 2015 10:07:33 +0000 (12:07 +0200)]
A lot changes on jcore:
- Implemented doSelectByCriteria() in MySQL backend
- Close only connection in same backend if it is still open
- Added method size() to Result/DatabaseResult
- Moved member entrySet() in BaseCriteria to proper location
- Fixed comments of interface Criteria and SearchableCriteria
- Some trace/debug messages added
- Now database frontends have a new method getResultFromSet() which transforms a ResultSet (SQL) to a Result (jcore)
- Sorted class/interface imports
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 12 Aug 2015 12:34:02 +0000 (14:34 +0200)]
Added more data-gateway pattern classes + more rewrites for better usability in web-based applications:
- Added methods values() and entrySet() to Criteria instances
- Added method add() to Result instances
- Added method matchesAnd() which does a boolean check on all criteria on each Storeable instance
- Added DatabaseResult class with no implemented methods (will follow)
- Method doSelectByCriteria() in Base64 database backend is now "basicly finished"
- Added more thrown exceptions to not exit application servers on any thrown exception
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 10 Aug 2015 13:37:05 +0000 (15:37 +0200)]
Reverted a bit back because the ConsoleClient has enterChar() which requires an array of chars + renamed + changed type of attribute
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 10 Aug 2015 09:32:19 +0000 (11:32 +0200)]
Fixes for factory class, you need to take DatabaseFrontend.class as parameter type (sure) because it is used there
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 10 Aug 2015 09:22:19 +0000 (11:22 +0200)]
Introduced BackendFactory which does now instance the database backend class. You only need to implement DatabaseBackend and have the class' name set in property org.mxchange.jcore.database.backend.class
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 7 Aug 2015 11:41:56 +0000 (13:41 +0200)]
Better return an iterator of Map.Entry<Field, Object>. This is really generic, it may be fine for first "demo"
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 7 Aug 2015 06:31:14 +0000 (08:31 +0200)]
Added new interface for managers that need to access database, maybe later this will be changed, if more classes need same methods (remember DRY). But for now, this is fine.
Signed-off-by:Roland Häder <roland@mxchange.org>