Open main menu

CDOT Wiki β

Changes

PostgreSQL Adapter-nexj/Adapter

281 bytes added, 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 || ---
|-
|}  {| class="wikitable sortable" border="1" cellpadding="5"|+ '''Public methods to work on'''! Modifier !! Method Name !! Tests Cases!! after parsing !! before parsing !! Status !! ToDo|-| public || void appendLikeEscape(StringBuffer buf)|| testRead(), testUnicodeCharset() ||[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"
|+'''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 || ---
|-
|}
|-
|}
 
==PostgreSQLAdapter.java==