Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.3
-
Fix Version/s: 1.3.1
-
Component/s: JDO queries
-
Labels:None
-
Number of attachments :
Description
The aim of this refactoring is to improve and restructure the implementation of SQLStatementStore. The step proposed for refactoring are:
1) Moving the SQLFieldInfo[] fields= _engine.getInfo() to the constructor and make it a class attribute because it is being used by different methods.
2) Moving SQLColumnInfo[] ids = _engine.getColumnInfoForIdentities() to the constructor and make it a class attribute because it is being used by different methods.
3) Separates the PrepareStatement from execute statement. Construct a new method that only deals with preparing statement and then call this method from within executestatement. This way the code should be more structured and modular as well.
4) Moving Identity size check from SQLStatementStore to SQLEngine.
5) Move the Storage of extended classes to the ClassMolder
Regards, Ahmad
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.3.1 [ 14004 ] | |
| Assignee | AHMAD HASSAN [ ahmad.hassan ] | Ralf Joachim [ rjoachim ] |
| Description |
The aim of this refactoring is to improve and restructure the implementation of SQLStatementStore. The step proposed for refactoring are: 1) Moving the SQLFieldInfo[] fields= _engine.getInfo() to the constructor and make it a class attribute because it is being used by different methods. 2) Moving SQLColumnInfo[] ids = _engine.getColumnInfoForIdentities() to the constructor and make it a class attribute because it is being used by different methods. 3) Separates the PrepareStatement from execute statement. Construct a new method that only deals with preparing statement and then call this method from within executestatement. This way the code should be more structured and modular as well. 4) Moving Identity size check from SQLStatementStore to SQLEngine. 5) Move the Storage of extended classes to the ClassMolder Regards, Ahmad |
The aim of this refactoring is to improve and restructure the implementation of SQLStatementStore. The step proposed for refactoring are: 1) Moving the SQLFieldInfo[] fields= _engine.getInfo() to the constructor and make it a class attribute because it is being used by different methods. 2) Moving SQLColumnInfo[] ids = _engine.getColumnInfoForIdentities() to the constructor and make it a class attribute because it is being used by different methods. 3) Separates the PrepareStatement from execute statement. Construct a new method that only deals with preparing statement and then call this method from within executestatement. This way the code should be more structured and modular as well. 4) Moving Identity size check from SQLStatementStore to SQLEngine. 5) Move the Storage of extended classes to the ClassMolder Regards, Ahmad |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Ahmad, wouldn't it make sense to move the whole check for the failure reason of update statement into an own class. This would move everything related to _statementLoad into an own class similar to SQLStatementLookup. In my opinion would SQLSatementStore be much easier to understand thereafter.
If you agree, please create a new subtask for this.
Having said that this should be next step in my opinion.