Difference between revisions of "PostgreSQL Adapter Project - Code Review 4 Changes"
Line 21: | Line 21: | ||
|getQuotedName | |getQuotedName | ||
* functionality is not needed just use SQLSchemamanager.quote() the way this is done in other sql manager code | * functionality is not needed just use SQLSchemamanager.quote() the way this is done in other sql manager code | ||
− | | | + | |'''DONE''' |
|} | |} | ||
Line 33: | Line 33: | ||
*remove the condition | *remove the condition | ||
*it should be possible to set 0 timeout | *it should be possible to set 0 timeout | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|CancelTask -> StatementCancelationTask; | |CancelTask -> StatementCancelationTask; | ||
*make it a top level class | *make it a top level class | ||
− | | | + | |'''DONE''' |
|} | |} | ||
Line 48: | Line 48: | ||
|addColumn | |addColumn | ||
*change the comment to "Reads a column from a JDBC driver result set and adds it to a table object". | *change the comment to "Reads a column from a JDBC driver result set and adds it to a table object". | ||
− | + | *Move rs argument to the last position | |
− | + | |'''DONE''' | |
− | |||
− | | | ||
|- | |- | ||
|I think the portable flag should not take into account columns that are not added to the table (return null in this case)? | |I think the portable flag should not take into account columns that are not added to the table (return null in this case)? | ||
− | | | + | |'''DONE''' |
|- | |- | ||
| The message about ignoring an index has changed | | The message about ignoring an index has changed | ||
*I think the extra info in the original message that the index was ignored was important. | *I think the extra info in the original message that the index was ignored was important. | ||
− | | | + | |Diff is malfunctioning |
|- | |- | ||
|There are extensive changes to readSchema? | |There are extensive changes to readSchema? | ||
*What is the reason for these (or is it the diff malfunctioning)? | *What is the reason for these (or is it the diff malfunctioning)? | ||
− | | | + | |Diff is malfunctioning |
|- | |- | ||
|getAlterColumnToken | |getAlterColumnToken | ||
*remove the separator flag. | *remove the separator flag. | ||
*Adding separators should be done in different code. Each method should do as little as possible. | *Adding separators should be done in different code. Each method should do as little as possible. | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|isPortable() | |isPortable() | ||
Line 73: | Line 71: | ||
*(Methods should not try to do several tasks at once, in this case skipping invalid entries and determining portability. | *(Methods should not try to do several tasks at once, in this case skipping invalid entries and determining portability. | ||
This hampers method reusability.). | This hampers method reusability.). | ||
− | | | + | |'''DONE''' |
|- | |- | ||
| isWindowsCompatiable -> isWindowsCompatible | | isWindowsCompatiable -> isWindowsCompatible | ||
− | | | + | |'''DONE''' |
|} | |} | ||
Line 87: | Line 85: | ||
|*Proxy.java -> *Wrapper.java | |*Proxy.java -> *Wrapper.java | ||
*(this is not the proxy pattern, but more like the decorator pattern) | *(this is not the proxy pattern, but more like the decorator pattern) | ||
− | | | + | |'''DONE''' |
|} | |} | ||
Revision as of 11:18, 13 September 2011
Contents
General
Task | Status |
---|---|
{
} undo the change to ; |
Classes
Table
Task | Status |
---|---|
getQuotedName
|
DONE |
SQLAdapter
Task | Status |
---|---|
setQueryTimeout()
|
DONE |
CancelTask -> StatementCancelationTask;
|
DONE |
SQLSchemaManager
Task | Status |
---|---|
addColumn
|
DONE |
I think the portable flag should not take into account columns that are not added to the table (return null in this case)? | DONE |
The message about ignoring an index has changed
|
Diff is malfunctioning |
There are extensive changes to readSchema?
|
Diff is malfunctioning |
getAlterColumnToken
|
DONE |
isPortable()
This hampers method reusability.). |
DONE |
isWindowsCompatiable -> isWindowsCompatible | DONE |
StatementProxy/PreparedStatementProxy
Task | Status |
---|---|
*Proxy.java -> *Wrapper.java
|
DONE |
PostgreSQLAdapter
Task | Status |
---|---|
MAX_FIELD_PRECISION - is this from the PostgreSQL documentation?
|
|
MAX_LO_SIZE - Remove "~~" from the comment. This is 2GB-1. | |
BIND_BLOB
You already have this value, no need to get it again later on. Use Primitive.createLong() to create the long value.
|
|
BIND_STRING, BIND_BINARY
|
|
RequestTimeout should take into account non-positive timeouts. | |
The timeout management functionality requestTimeout and releaseTimeout(rename to schedule and cancel)
|
|
unwrap
|
|
s_PGXAConnection, s_getQueryExecutor
|
|
appendIdentitySuffix
|
|
appendLiteral
|
|
appendTypeConversion
|
|
indexNameMatches
|
|
isUnicode
|
PostgreSQLPreparedStatementProxy
Task | Status |
---|---|
Provide a class comment | |
Prepend a comment "// inner classes" | |
Use visibility declarators on members ("protected") | |
Fold lines after about 110 chars | |
requestSavepoint
|
PostgreSQLSchemaManager
Task | Status |
---|---|
appendColumnAlteration
|
|
appendLOManagerTrigger
|
|
appendTSIncrement
|
|
getGUIDExpr
|
|
isImplicitConversion
|
|
isValidColumnName
|
|
addColumn
|