Open main menu

CDOT Wiki β

Nexjexpress/PostgreSQL Adapter/Adapter

Revision as of 14:01, 16 November 2010 by Minooz (talk | contribs) (PostgreSQLAdapter.java)

SQLAdapter.java

  1. Questions
protected interface BindFactory
protected interface Bind

PostgreSQLAdapter.java

Abstract methods to work on
Method Type Method Name Tests Cases Status ToDo
public abstract String appendStringLengthPrefix(StringBuffer buf, FunctionOperator op) --- not started ---
public abstract String appendSubstringPrefix(StringBuffer buf, FunctionOperator op) --- not started ---
public abstract boolean isLiteral(Primitive type, Object value) --- not started ---
public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value) testMatch(), testRead(), testLoad() not started ---
public abstract void appendMatchStatement(StringBuffer buf, String sAlias, Column column, SQLJoin join, Pair expression) testMatch() not started ---
public abstract void appendTypeConversion(StringBuffer buf, Object op,Primitive fromType, Primitive type, SQLGenerator gen) --- not started ---
public abstract void appendPrefixHint(StringBuffer buf, Query query) no implementation in MySQLAdapter not started ---
public abstract void appendSuffixHint(StringBuffer buf, Query query) --- not started ---
public abstract void appendTableHint(StringBuffer buf, SQLJoin join, Query query) --- not started ---
public abstract void appendIdentityPrefix(StringBuffer buf, SQLInsert work) --- not started ---
public abstract boolean appendIdentityColumn(StringBuffer buf, SQLInsert work) testNew() not started ---
public abstract boolean appendIdentityValue(StringBuffer buf, SQLInsert work) --- not started ---
public abstract boolean appendIdentitySuffix(StringBuffer buf, SQLInsert work) testNew() not started ---
public abstract void bindIdentity(PreparedStatement stmt, SQLInsert work) throws SQLException --- not started ---
public abstract Object getIdentityValue(PreparedStatement stmt, Column column, SQLInsert work) throws SQLException --- not started ---
public abstract boolean appendNoRowsBlock(StringBuffer buf) testNew(), testSQLUpdateDenorm() not started ---
public abstract void appendNoRowsStart(StringBuffer buf) no implementation in MySQLAdapter not started ---
public abstract void appendNoRowsEnd(StringBuffer buf) no implementation in MySQLAdapter not started ---
public abstract boolean isBatchSupported() --- not started ---
public abstract boolean isBatchUpdateCountSupported() --- not started ---
public abstract boolean isBatchable(SQLWork work) --- not started ---
protected abstract boolean isDateRangeException(SQLException e) --- not started ---
protected abstract boolean isQueryTimeoutException(SQLException e) --- not started ---
protected abstract boolean isDuplicateKeyException(SQLException e) --- not started ---
protected abstract String getDuplicateKeyName(SQLException e) --- not started ---
protected abstract boolean indexNameMatches(Index index, String sPhysicalName) --- not started ---
protected abstract boolean isDeadlockException(SQLException e) --- not started ---
protected abstract boolean isLockTimeoutException(SQLException e) --- not started ---
public abstract SQLSchemaManager createSchemaManager() --- not started ---


Protected methods to work on
Method Type Method Name Tests Cases Status ToDo
protected void appendMatchExpression(StringBuffer buf, Object expression, boolean bMax) testMatch() not started ---
protected boolean isLikeReservedChar(char ch) --- not started ---
protected void appendLiteral(StringBuffer buf, String sValue) testMatch() not started ---
protected int roundUpListSize(int nSize, int nBindCount) --- not started ---
protected int roundUpMaxCount(int nMaxCount) --- not started ---
protected boolean indexNameMatches(String sMetadataName, int nMetaStart, String sPhysicalName, String sPrefix, boolean bCaseInsensitive) --- not started ---


Public methods to work on
Method Type Method Name Tests Cases after parsing before parsing Status ToDo
public void appendLikeEscape(StringBuffer buf) testRead() where A.first_name like ? escape '\\' /* 1 */ parse("(and (like? firstName \"J*\") testRead() not started ---

MySQLAdapter.java