Difference between revisions of "PostgreSQL Adapter Project - Code Review 4 Changes"
(→PostgreSQLPreparedStatementProxy) |
(→PostgreSQLSchemaManager) |
||
Line 199: | Line 199: | ||
*Use getColumnAlterationToken | *Use getColumnAlterationToken | ||
*Are booleans indexable in Postgres? If not, we should use integers instead. | *Are booleans indexable in Postgres? If not, we should use integers instead. | ||
− | | | + | |'''DONE''' |
+ | *Yes, it supports indexing booleans. Suggested use is with partial indexes on the condition that queries will use most often. | ||
|- | |- | ||
|appendLOManagerTrigger | |appendLOManagerTrigger | ||
*Method JavaDoc comments are required. | *Method JavaDoc comments are required. | ||
*What does this do? | *What does this do? | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|appendTSIncrement | |appendTSIncrement | ||
*interval' – perhaps a space before "'" for readability? | *interval' – perhaps a space before "'" for readability? | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|getGUIDExpr | |getGUIDExpr | ||
*Remove "XXX: from the comment | *Remove "XXX: from the comment | ||
*Move the comment to the class header comment | *Move the comment to the class header comment | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|isImplicitConversion | |isImplicitConversion | ||
*srcType == Primitive.BOOLEAN ) - remove space before ) | *srcType == Primitive.BOOLEAN ) - remove space before ) | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|isValidColumnName | |isValidColumnName | ||
*Spaces around "-" | *Spaces around "-" | ||
− | | | + | |'''DONE''' |
|- | |- | ||
|addColumn | |addColumn |
Revision as of 13:56, 19 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?
|
DONE |
BIND_BLOB
You already have this value, no need to get it again later on. Use Primitive.createLong() to create the long value.
|
DONE'
|
BIND_STRING, BIND_BINARY
|
|
RequestTimeout should take into account non-positive timeouts. | values <=0 do not get to requestTimeout |
The timeout management functionality requestTimeout and releaseTimeout(rename to schedule and cancel)
|
DONE |
unwrap
|
- PGXADataSource is the one that gives pooled connections |
s_PGXAConnection, s_getQueryExecutor
|
-s_PGXAConnection used to ensure that reflected methods and properties loaded successfully |
appendIdentitySuffix
|
DONE |
appendLiteral
|
DONE
|
appendTypeConversion
|
DONE
|
indexNameMatches
|
DONE |
isUnicode
|
DONE |
PostgreSQLPreparedStatementProxy
Task | Status |
---|---|
*Provide a class comment
|
DONE |
requestSavepoint
|
|
PostgreSQLSchemaManager
Task | Status |
---|---|
appendColumnAlteration
|
DONE
|
appendLOManagerTrigger
|
DONE |
appendTSIncrement
|
DONE |
getGUIDExpr
|
DONE |
isImplicitConversion
|
DONE |
isValidColumnName
|
DONE |
addColumn
|