Open main menu

CDOT Wiki β

Changes

PostgreSQL Adapter-nexj/Adapter

75 bytes removed, 20:27, 26 January 2014
no edit summary
{{Admon/obsolete}}
 
<big><big> Postgre Project - SQLAdapter Files</big></big>
{{NexJ_Express Index}}
==SQLAdapter.java==
{| 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 | class="wikitable sortable" border="| void appendLikeEscape(StringBuffer buf) [where A.first_name like ? escape '\\' /* 1*/] [parse(" cellpadding=(and (like? firstName \"5J*\")]||+ '''Public methods to work on'''! Modifier !! Method Name !! Tests Cases!! after parsing !! before parsing !! Status !! testRead(), testUnicodeCharset() ||not started || ToDo---
|-
| public || void appendLikeEscapeclose(StringBuffer bufConnection connection)|| testReadAll the tests ()After commit, testUnicodeCharset() ||where A.first_name like ? escape '\\' /* 1 */ || parse("(and (like? firstName \"J*\"closes the conncetion) || not started || ---
|-
| public || void closeSQLConnection getConnection(Connection connectionQuery query)throws SQLException|| All the tests (After commit, closes the conncetion) ||---|| --- || not started || ---
|-
| public || SQLConnection getConnectionString getInitialSQL(Query query) throws SQLException|| All the tests ||---|| --- Before any test and during testMatch() (Gets SQL statement to execute when a connection is first established) || not started || ---
|-
| public || String getInitialSQLTable getMatchJoin(Column column, Pair expression) || Before any test and during testMatch() (Gets SQL statement to execute when a connection is first establishedsee the comment for appendMatchStatement() ||---|| --- in SQLAdapter) || 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"
|+'''Methods specific to MySQL'''
! Modifier !! Method !! Tests Cases !! Status !! ToDo
|-
| protected || void appendMatchLiteral(StringBuffer buf, String sValue) || --- || not started || ---
|-
| protected ||void appendMatchExpression(StringBuffer buf, Object expression, boolean bMax) || testMatch() || not started || ---
|-
| protected ||String getIndexName(Table table, int nId) || testNew() --- see comments for <code>boolean indexNameMatches</code> in SQLAdapter.java|| not started || ---
|-
|}
|-
|}
 
mthodes just added to MySQLAdapter.java
:protected void appendMatchLiteral(StringBuffer buf, String sValue);
:protected void appendMatchExpression(StringBuffer buf, Object expression, boolean bMax); testMatch()
:protected String getIndexName(Table table, int nId); testNew() --- see comments for <code>boolean indexNameMatches</code> in SQLAdapter.java
 
 
==PostgreSQLAdapter.java==