1,234
edits
Changes
no edit summary
{{Admon/obsolete}}
<big><big> Postgre Project - SQLAdapter Files</big></big>
==SQLAdapter.java==
::protected interface Bind
{| class="wikitable sortable" border="1" cellpadding="5"
{| class="wikitable sortable" border="1" cellpadding="5"
|+ '''Protected Non-Abstract methods to work on'''
! Modifier !! Method Name !! Tests Cases !! Status !! ToDo
|-
|-
| protected || boolean indexNameMatches(String sMetadataName, int nMetaStart, String sPhysicalName, String sPrefix, boolean bCaseInsensitive)|| testNew(), no implementation in MySQL, but it's called from <code> indexNameMatches (Index, String) </code> || not started || ---
|-
| public || void appendLikeEscape(StringBuffer buf) [where A.first_name like ? escape '\\' /* 1 */] [parse("(and (like? firstName \"J*\")]|| testRead(), testUnicodeCharset() ||not started || ---
|-
| public || void close(Connection connection)|| All the tests (After commit, closes the conncetion) || not started || ---
|-
| public || SQLConnection getConnection(Query query) throws SQLException|| All the tests || not started || ---
|-
| public || String getInitialSQL() || Before any test and during testMatch() (Gets SQL statement to execute when a connection is first established) || not started || ---
|-
| public || Table getMatchJoin(Column column, Pair expression) || testMatch() (see the comment for appendMatchStatement() in SQLAdapter) || not started || ---
|-
| public || void setFetchSize(PreparedStatement stmt, Query query) throws SQLException || All the tests EXCEPT testUpgrade(), testSQLUpdateDenorm() || not started || ---
|-
|}
==MySQLAdapter.java==
{| class="wikitable sortable" border="1" cellpadding="5"
|+ '''Public methods Methods specific to work onMySQL'''! Modifier !! Method Name !! Tests Cases!! after parsing !! before parsing !! Status !! ToDo
|-
| public protected || void appendLikeEscapeappendMatchLiteral(StringBuffer buf)|| testRead(), testUnicodeCharset(String sValue) ||where A.first_name like ? escape '\\' /* 1 */ || parse("(and (like? firstName \"J*\") --- || not started || ---
|-
| public protected || void closeappendMatchExpression(Connection connectionStringBuffer buf, Object expression, boolean bMax)|| All the tests testMatch(After commit, closes the conncetion) ||---|| --- || not started || ---
|-
| public protected || SQLConnection getConnectionString getIndexName(Query queryTable table, int nId) throws SQLException|| testNew() All the tests ||---|| --- see comments for <code>boolean indexNameMatches</code> in SQLAdapter.java|| not started || ---
|-
| public } ==PostgreSQLAdapter.java=={|class="wikitable sortable" border="1" cellpadding="5"| String getInitialSQL() || Before any test and during testMatch() (Gets SQL statement +'''Methods specific to execute when a connection is first established) ||---|| --- || not started || PostgreSQL'''! Modifier !! Method !! Tests Cases !! Status !! ---ToDo
|-
|-
|}