[OJB-developers] getSqltype
Brought to you by:
thma
From: <syl...@be...> - 2002-03-03 10:59:05
|
Hi thomas I a recent mail you were taking about a code review to improve performance. I once notice that in JdbcAccess you have a static method getJdbcType that goes thru a bunch of if, else if, and string comparison to return the sqltype of a field. I think that the sqltype could be calculated when the repository is build and stored in the field Class instead of storing the String name of the sqltype. I don't know how often this method get called, so I'm not sure it will improve the performance a lot but it also has the advantage of discovering problems with not supported sql type as soon as the repository is build. (I prefer to be told about problems as soon as possible). Best regards Bertrand |