]> git.mxchange.org Git - jcore.git/log
jcore.git
9 years agoReplace multiple-added strings/objects into MessageFormat.format() call to reduce...
Roland Haeder [Mon, 17 Aug 2015 07:19:37 +0000 (09:19 +0200)]
Replace multiple-added strings/objects into MessageFormat.format() call to reduce string objects in string pool + ignored them for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoOrganized members
Roland Haeder [Mon, 17 Aug 2015 07:07:13 +0000 (09:07 +0200)]
Organized members
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded support for Long and currently null is not supported
Roland Haeder [Mon, 17 Aug 2015 06:42:53 +0000 (08:42 +0200)]
Added support for Long and currently null is not supported
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSorted imports (NetBeans' choice?)
Roland Haeder [Mon, 17 Aug 2015 06:11:08 +0000 (08:11 +0200)]
Sorted imports (NetBeans' choice?)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoFixed lib path
Roland Haeder [Mon, 17 Aug 2015 06:09:17 +0000 (08:09 +0200)]
Fixed lib path
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore:
Roland Haeder [Sat, 15 Aug 2015 09:00:26 +0000 (11:00 +0200)]
Continued with jcore:
- renamed interface to SearchableCriteria (typo fixed)
- addCriteria() now accepts Boolean and not boolean
-

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

9 years agoAdded Boolean type
Roland Haeder [Fri, 14 Aug 2015 22:49:09 +0000 (00:49 +0200)]
Added Boolean type
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded synchronized file access
Roland Haeder [Fri, 14 Aug 2015 22:44:24 +0000 (00:44 +0200)]
Added synchronized file access
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome more parameter checks and split each BASE64 line
Roland Haeder [Fri, 14 Aug 2015 22:11:31 +0000 (00:11 +0200)]
Some more parameter checks and split each BASE64 line
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore:
Roland Haeder [Fri, 14 Aug 2015 22:02:56 +0000 (00:02 +0200)]
Continued with jcore:
- Added interface Logical for logical matches ...
- Continued with matches() method in SearchCriteria: Now only single column tests are supported, but more follow!
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIntroduced getTotalRows() to DatabaseBackend implementations + added getIdName()...
Roland Haeder [Fri, 14 Aug 2015 21:25:03 +0000 (23:25 +0200)]
Introduced getTotalRows() to DatabaseBackend implementations + added getIdName() to DatabaseFrontend
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoLong story, short purpose. Short story, long purpose ...
Roland Haeder [Fri, 14 Aug 2015 21:05:09 +0000 (23:05 +0200)]
Long story, short purpose. Short story, long purpose ...

Well, String is stored in database, but some getter require Long or Float which cannot be casted. So a hard-code "casting" needs to be added ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIntroduced getType() which gets a type reflection from given value
Roland Haeder [Fri, 14 Aug 2015 20:19:35 +0000 (22:19 +0200)]
Introduced getType() which gets a type reflection from given value
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoChanged parameter type from String to Object + implemented one setter
Roland Haeder [Fri, 14 Aug 2015 19:48:53 +0000 (21:48 +0200)]
Changed parameter type from String to Object + implemented one setter
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIntroduced getMethodFromName() with value check
Roland Haeder [Fri, 14 Aug 2015 19:41:40 +0000 (21:41 +0200)]
Introduced getMethodFromName() with value check
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAlso added here missing thrown exceptions
Roland Haeder [Fri, 14 Aug 2015 19:27:14 +0000 (21:27 +0200)]
Also added here missing thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore:
Roland Haeder [Fri, 14 Aug 2015 19:18:47 +0000 (21:18 +0200)]
Continued with jcore:
- Added convertColumnNameToSetterMethod()
- Added setBooleanField()
- Added setField()
- Added setValueInStoreableFromColumn()
- Added getValueInStoreableFromColumn()
- Added missing trace message
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore: (refacturing)
Roland Haeder [Fri, 14 Aug 2015 18:28:50 +0000 (20:28 +0200)]
Continued with jcore: (refacturing)
- Added Apache commons jar
- Added missing license files
- getValueFromColumn() and setValueFromColumn() are now moved to Storeable (that they are in BaseFrameworkSystem and then needs to be overwritten again was bad OOP-ed style anyway).
- Also for this work, the type-hint for (mostly) instance must be changed to Storeable
- Added new exception CorruptedDatabaseFileException. This is thrown when the file is damaged
- Removed CorruptedDatabaseFileException() as StoreableCsv is now removed, too
-
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded addToDataSet() for Boolean values
Roland Haeder [Fri, 14 Aug 2015 13:16:29 +0000 (15:16 +0200)]
Added addToDataSet() for Boolean values
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded handling of Integer and Float values
Roland Haeder [Fri, 14 Aug 2015 12:51:33 +0000 (14:51 +0200)]
Added handling of Integer and Float values
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded addToDataSet() for Number classes
Roland Haeder [Fri, 14 Aug 2015 12:31:15 +0000 (14:31 +0200)]
Added addToDataSet() for Number classes
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSorted members
Roland Haeder [Fri, 14 Aug 2015 12:29:58 +0000 (14:29 +0200)]
Sorted members
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore:
Roland Haeder [Fri, 14 Aug 2015 10:00:47 +0000 (12:00 +0200)]
Continued with jcore:
- Improved handling of null values in doInsertDataSet()
- Added emptyStringToNull() to DatabaseFrontend interface
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with jcore:
Roland Haeder [Fri, 14 Aug 2015 08:49:44 +0000 (10:49 +0200)]
Continued with jcore:
- Added method doInsertDataSet()
- Introduced getPreparedStatement()
- Added new constructor in DatabaseResult for status code and SQL warnings from previous executeQuery() call
Signed-off-by:Roland Häder <roland@mxchange.org>

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>