]> git.mxchange.org Git - jcore.git/log
jcore.git
9 years agoOne line ...
Roland Haeder [Wed, 12 Aug 2015 18:18:59 +0000 (20:18 +0200)]
One line ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions + catched some + added getting of SQL warnings into...
Roland Haeder [Thu, 13 Aug 2015 13:31:05 +0000 (15:31 +0200)]
Added more thrown exceptions + catched some + added getting of SQL warnings into Result instance
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoRewrote handling of values, now it is better secured using prepared statements
Roland Haeder [Thu, 13 Aug 2015 12:45:32 +0000 (14:45 +0200)]
Rewrote handling of values, now it is better secured using prepared statements
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome additions to jcore:
Roland Haeder [Thu, 13 Aug 2015 12:22:51 +0000 (14:22 +0200)]
Some additions to jcore:
- renamed isValueEqual() to isFieldValueEqual() as this method does check a class field (aka. attribute)
- now search criteria can be limit and skip found matches
- added support for string criteria

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoA lot changes on jcore:
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>

9 years agoMoved members to proper location
Roland Haeder [Thu, 13 Aug 2015 07:35:51 +0000 (09:35 +0200)]
Moved members to proper location
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions
Roland Haeder [Wed, 12 Aug 2015 18:11:09 +0000 (20:11 +0200)]
Added more thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions
Roland Haeder [Wed, 12 Aug 2015 18:07:07 +0000 (20:07 +0200)]
Added more thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoOrganized members
Roland Haeder [Wed, 12 Aug 2015 18:00:51 +0000 (20:00 +0200)]
Organized members
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded missing thrown exceptions
Roland Haeder [Wed, 12 Aug 2015 16:04:24 +0000 (18:04 +0200)]
Added missing thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMinor formatting
Roland Haeder [Wed, 12 Aug 2015 16:03:22 +0000 (18:03 +0200)]
Minor formatting
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoPossible fix for non-working path detection on Linux?
Roland Haeder [Wed, 12 Aug 2015 15:33:21 +0000 (17:33 +0200)]
Possible fix for non-working path detection on Linux?
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded files for NetBeans and only ignored 'private'.
Roland Haeder [Wed, 12 Aug 2015 14:51:08 +0000 (16:51 +0200)]
Added files for NetBeans and only ignored 'private'.

Signed-off-by: Roland Häder <roland@mxchange.org>
9 years agoMore comments improved ...
Roland Haeder [Wed, 12 Aug 2015 13:06:36 +0000 (15:06 +0200)]
More comments improved ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome comments improved to make the purpose of BaseContact more clear
Roland Haeder [Wed, 12 Aug 2015 13:04:11 +0000 (15:04 +0200)]
Some comments improved to make the purpose of BaseContact more clear
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoDatabaseResult is now "basicly finished".
Roland Haeder [Wed, 12 Aug 2015 13:00:55 +0000 (15:00 +0200)]
DatabaseResult is now "basicly finished".
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoOpps! Wrong way around ...
Roland Haeder [Wed, 12 Aug 2015 12:54:22 +0000 (14:54 +0200)]
Opps! Wrong way around ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more data-gateway pattern classes + more rewrites for better usability in web...
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>

9 years agoAdded some thrown exceptions
Roland Haeder [Wed, 12 Aug 2015 11:21:53 +0000 (13:21 +0200)]
Added some thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded some comments (ignored string)
Roland Haeder [Wed, 12 Aug 2015 11:06:39 +0000 (13:06 +0200)]
Added some comments (ignored string)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoData path is now configurable
Roland Haeder [Wed, 12 Aug 2015 10:52:08 +0000 (12:52 +0200)]
Data path is now configurable
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded some thrown exceptions
Roland Haeder [Wed, 12 Aug 2015 10:35:34 +0000 (12:35 +0200)]
Added some thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoLet's get rid of abortProgramWithException() where calls from application containers...
Roland Haeder [Wed, 12 Aug 2015 09:53:01 +0000 (11:53 +0200)]
Let's get rid of abortProgramWithException() where calls from application containers may come
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoNo, that wasn't right, too.
Roland Haeder [Wed, 12 Aug 2015 09:44:16 +0000 (11:44 +0200)]
No, that wasn't right, too.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoDon't call exit() here
Roland Haeder [Wed, 12 Aug 2015 09:42:38 +0000 (11:42 +0200)]
Don't call exit() here
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoLet it throw an unchecked exception, if the implementation wants this
Roland Haeder [Wed, 12 Aug 2015 09:40:23 +0000 (11:40 +0200)]
Let it throw an unchecked exception, if the implementation wants this
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded criteria stuff for data-gateway patterm + a lot refacturings
Roland Haeder [Wed, 12 Aug 2015 09:36:37 +0000 (11:36 +0200)]
Added criteria stuff for data-gateway patterm + a lot refacturings
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded doShutdown()
Roland Haeder [Tue, 11 Aug 2015 12:20:36 +0000 (14:20 +0200)]
Added doShutdown()
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoImport from addressbook
Roland Haeder [Tue, 11 Aug 2015 07:06:10 +0000 (09:06 +0200)]
Import from addressbook
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoRewrite of fromChar()
Roland Haeder [Tue, 11 Aug 2015 06:45:14 +0000 (08:45 +0200)]
Rewrite of fromChar()
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoReverted a bit back because the ConsoleClient has enterChar() which requires an array...
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>

9 years agoDon't do this, having chars for database keys, you can directly use the enum name...
Roland Haeder [Mon, 10 Aug 2015 13:27:42 +0000 (15:27 +0200)]
Don't do this, having chars for database keys, you can directly use the enum name itself.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIgnored some strings for internationalization + some debug messages added
Roland Haeder [Mon, 10 Aug 2015 13:08:15 +0000 (15:08 +0200)]
Ignored some strings for internationalization + some debug messages added
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoFixes for factory class, you need to take DatabaseFrontend.class as parameter type...
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>

9 years agoIntroduced BackendFactory which does now instance the database backend class. You...
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>

9 years agoIt has to be Long, with long you get zeros in forms
Roland Haeder [Fri, 7 Aug 2015 13:15:07 +0000 (15:15 +0200)]
It has to be Long, with long you get zeros in forms
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoNeed to be changed to Object
Roland Haeder [Fri, 7 Aug 2015 12:37:09 +0000 (14:37 +0200)]
Need to be changed to Object
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded convertNullToEmpty()
Roland Haeder [Fri, 7 Aug 2015 12:07:54 +0000 (14:07 +0200)]
Added convertNullToEmpty()
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoBetter return an iterator of Map.Entry<Field, Object>. This is really generic, it...
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>

9 years agoSome fixes
Roland Haeder [Fri, 7 Aug 2015 11:27:32 +0000 (13:27 +0200)]
Some fixes
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIntroduced fieldIterator() + all Contact instances are now iterable over their attributes
Roland Haeder [Fri, 7 Aug 2015 09:51:31 +0000 (11:51 +0200)]
Introduced fieldIterator() + all Contact instances are now iterable over their attributes
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoCorrect property name (was from import of addressbook code)
Roland Haeder [Fri, 7 Aug 2015 06:44:55 +0000 (08:44 +0200)]
Correct property name (was from import of addressbook code)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded new interface for managers that need to access database, maybe later this will...
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>

9 years agoMinor: better wording
Roland Haeder [Thu, 6 Aug 2015 13:15:06 +0000 (15:15 +0200)]
Minor: better wording
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMoved interface member as it is a non-data setting/getting method
Roland Haeder [Thu, 6 Aug 2015 13:13:54 +0000 (15:13 +0200)]
Moved interface member as it is a non-data setting/getting method
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded setter/getter for contact instance + made some getter/setter final.
Roland Haeder [Thu, 6 Aug 2015 12:37:03 +0000 (14:37 +0200)]
Added setter/getter for contact instance + made some getter/setter final.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoType needs to be long as the parser wants to set long
Roland Haeder [Thu, 6 Aug 2015 12:16:35 +0000 (14:16 +0200)]
Type needs to be long as the parser wants to set long
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMissed this one ...
Roland Haeder [Thu, 6 Aug 2015 12:05:51 +0000 (14:05 +0200)]
Missed this one ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMade all data-setter public, Gender is fine to be set publicly.
Roland Haeder [Thu, 6 Aug 2015 12:03:42 +0000 (14:03 +0200)]
Made all data-setter public, Gender is fine to be set publicly.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMoved more stuff from addressbook to here
Roland Haeder [Thu, 6 Aug 2015 11:46:51 +0000 (13:46 +0200)]
Moved more stuff from addressbook to here
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agobundle is now static as only one instance is enough + initBundle() added
Roland Haeder [Thu, 6 Aug 2015 09:11:37 +0000 (11:11 +0200)]
bundle is now static as only one instance is enough + initBundle() added
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMinor: moved class member to proper position
Roland Haeder [Thu, 6 Aug 2015 07:43:12 +0000 (09:43 +0200)]
Minor: moved class member to proper position
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoLet generic class BaseClient implement general Client interface for better code style
Roland Haeder [Thu, 6 Aug 2015 07:28:43 +0000 (09:28 +0200)]
Let generic class BaseClient implement general Client interface for better code style
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome cleanups from previous import from addressbook project
Roland Haeder [Thu, 6 Aug 2015 07:25:25 +0000 (09:25 +0200)]
Some cleanups from previous import from addressbook project
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoInitial import, mostly from Addressbook project
Roland Haeder [Thu, 6 Aug 2015 06:30:04 +0000 (08:30 +0200)]
Initial import, mostly from Addressbook project

Signed-off-by: Roland Häder <roland@mxchange.org>