]>
git.mxchange.org Git - jcore.git/log
Roland Haeder [Fri, 4 Sep 2015 18:44:19 +0000 (20:44 +0200)]
Cleanup from unused methods (TDGP -> EJB)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 14:53:20 +0000 (16:53 +0200)]
Also this came from old TDGP times
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 13:26:49 +0000 (15:26 +0200)]
Removed all TDGP-related classes as Persistence is coming
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 12:51:33 +0000 (14:51 +0200)]
Preprared jcore for EJB applications:
- moved Gender into own sub package
- added utility class GenderUtils
- removed session-related stuff as this was a bad idea anyway
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 4 Sep 2015 08:26:32 +0000 (10:26 +0200)]
Also copy it to any EJB lib folders
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 13:52:57 +0000 (15:52 +0200)]
Better this way.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 13:32:13 +0000 (15:32 +0200)]
Removed toString()
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 08:38:51 +0000 (10:38 +0200)]
Tpyo fixed ... ;-)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 06:47:03 +0000 (08:47 +0200)]
Sorted members + removed setSelfInstance()
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 06:31:53 +0000 (08:31 +0200)]
Default gender is UNKNOWN
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 2 Sep 2015 12:31:47 +0000 (14:31 +0200)]
Moved Swing stuff to jswingcore
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 2 Sep 2015 08:38:09 +0000 (10:38 +0200)]
A warning was to harsh here
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 1 Sep 2015 09:30:12 +0000 (11:30 +0200)]
Changed to SortedSet to keep ordering
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 1 Sep 2015 06:28:21 +0000 (08:28 +0200)]
Some changes for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 31 Aug 2015 09:29:17 +0000 (11:29 +0200)]
don't make all lower-case
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 31 Aug 2015 09:24:59 +0000 (11:24 +0200)]
Also allow upper-case characters
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 31 Aug 2015 07:46:21 +0000 (09:46 +0200)]
Closed internal TODO, got rid of 'size' as countTokens() can be used instead
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 31 Aug 2015 07:41:19 +0000 (09:41 +0200)]
@TODO is not valid, only use TODO
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 28 Aug 2015 14:20:39 +0000 (16:20 +0200)]
Fixed NetBeans properties
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 28 Aug 2015 10:11:34 +0000 (12:11 +0200)]
More tpyos fixed ... ;-)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 28 Aug 2015 10:09:19 +0000 (12:09 +0200)]
Continued:
- contacts are now fully comparable
- this project has double libraries and source packages, please try to fix it
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 21:38:54 +0000 (23:38 +0200)]
Added field lastNumRows() with a public getter
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 21:26:47 +0000 (23:26 +0200)]
Continued:
- Added method numRows() (and implemented it generically)
- made doSelectByCrirtia() in BaseDatabaseBackend abstract
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 20:20:53 +0000 (22:20 +0200)]
Added method resultSet() to Result
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 19:02:17 +0000 (21:02 +0200)]
Exclude field names starting with a dollar character + added dist.sh which helps me distributing the jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 13:33:54 +0000 (15:33 +0200)]
New jar for merging arrays added
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 12:26:23 +0000 (14:26 +0200)]
use getFields(), not getDeclaredFields()
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 12:14:31 +0000 (14:14 +0200)]
Some changes:
- Moved sessionId + setter/getter to super class BaseFrameworkSystem
- added method isBundledInitialized()
- the data source identifier is now hard-coded
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 07:20:52 +0000 (09:20 +0200)]
added debug message
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 06:51:19 +0000 (08:51 +0200)]
Better compare this way:
if (null == foo)
Otherwise could lead to a bug if you miss only one equal sign
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 06:16:21 +0000 (08:16 +0200)]
This should be an AND boolean comparison.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 13:33:01 +0000 (15:33 +0200)]
Added more logging + support for logical AND matcher, readObject() currently causes a NPE
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 12:37:54 +0000 (14:37 +0200)]
Added supported (alpha quality) for null references + added more debug log
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 11:54:36 +0000 (13:54 +0200)]
The name 'wrapper' was not proper, better use 'frontend'.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 11:34:05 +0000 (13:34 +0200)]
Renamed method + converted colum_name to fieldName ;-)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 11:23:50 +0000 (13:23 +0200)]
Log also column name as an NPE came from here
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 26 Aug 2015 07:47:06 +0000 (09:47 +0200)]
Tpyo fixed ...
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 13:03:05 +0000 (15:03 +0200)]
Use own getter-wrapper
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 13:00:23 +0000 (15:00 +0200)]
Added setter for bundle
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 12:41:54 +0000 (14:41 +0200)]
Use logException()
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 11:55:21 +0000 (13:55 +0200)]
Added getStoreableAtRow() which is a more generalized approach than e.g. readSingleContact()
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 11:27:44 +0000 (13:27 +0200)]
Handle thrown exception here
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 11:25:56 +0000 (13:25 +0200)]
Added thrown exception (from some method)
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 11:23:22 +0000 (13:23 +0200)]
Use int, not Long to make it compatible with TableModel's method
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 11:10:04 +0000 (13:10 +0200)]
Got rid of duplicates ...
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 09:59:58 +0000 (11:59 +0200)]
Sorted members
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 20 Aug 2015 15:21:06 +0000 (17:21 +0200)]
Merge branch 'master' of /media/quix0r/stick/Java Project/jcore
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
src/org/mxchange/jcore/database/backend/datasource/DataSourceDatabaseBackend.java
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 20 Aug 2015 15:18:28 +0000 (17:18 +0200)]
Newly created data source backend added.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 20 Aug 2015 12:16:55 +0000 (14:16 +0200)]
Added backend (unfinished) for datasources (JNDI). The usage of a Table Data Gateway Pattern allows the application to never "know" how the data is being stored or retrived from the database, it only gets its wanted objects back and stores them. Also the used pattern is simple (or simplier than) to understand. It also makes sure that the "business logic" classes is free of any SQL which makes it lesser dependent on SQL-based databases.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 15:24:54 +0000 (17:24 +0200)]
Added null check + fixed path for file-based database backends
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 14:45:23 +0000 (16:45 +0200)]
Added logger
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 13:01:01 +0000 (15:01 +0200)]
Added more logger
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 12:43:12 +0000 (14:43 +0200)]
Added debug message
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 09:51:44 +0000 (11:51 +0200)]
It has to be first name and family name OR surname ... :-(
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 09:34:31 +0000 (11:34 +0200)]
Added debug message
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 19 Aug 2015 09:18:46 +0000 (11:18 +0200)]
Moved class/interface in proper package as they are only "helper" classes and no useable backend.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 18 Aug 2015 13:19:44 +0000 (15:19 +0200)]
Better description what should be done with this method.
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 18 Aug 2015 09:49:55 +0000 (11:49 +0200)]
Some comments fixed
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 18 Aug 2015 06:43:57 +0000 (08:43 +0200)]
Used correct type
Signed-off-by:Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 18 Aug 2015 06:34:24 +0000 (08:34 +0200)]
Improved logging message with sizes of entry set and criteria matches
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
Roland Haeder [Mon, 17 Aug 2015 07:07:13 +0000 (09:07 +0200)]
Organized members
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Roland Haeder [Fri, 14 Aug 2015 12:29:58 +0000 (14:29 +0200)]
Sorted members
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
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>
Roland Haeder [Wed, 12 Aug 2015 18:18:59 +0000 (20:18 +0200)]
One line ...
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
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>
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>
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 [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>
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>
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>
Roland Haeder [Wed, 12 Aug 2015 18:00:51 +0000 (20:00 +0200)]
Organized members
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
Roland Haeder [Wed, 12 Aug 2015 16:03:22 +0000 (18:03 +0200)]
Minor formatting
Signed-off-by:Roland Häder <roland@mxchange.org>
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>
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>
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>
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>
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>