Difference between revisions of "Nexjexpress/PostgreSQL Adapter/process"

From CDOT Wiki
Jump to: navigation, search
Line 10: Line 10:
 
: public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value);
 
: public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value);
 
: public abstract void appendTypeConversion(StringBuffer buf, Object op,Primitive fromType, Primitive type, SQLGenerator gen);
 
: public abstract void appendTypeConversion(StringBuffer buf, Object op,Primitive fromType, Primitive type, SQLGenerator gen);
:
+
: public abstract void appendPrefixHint(StringBuffer buf, Query query);
 +
: public abstract void appendInfixHint(StringBuffer buf, Query query);
 +
: public abstract void appendSuffixHint(StringBuffer buf, Query query);
 +
: public abstract void appendTableHint(StringBuffer buf, SQLJoin join, Query query);
 +
: public abstract void appendIdentityPrefix(StringBuffer buf, SQLInsert work);
 +
: public abstract boolean appendIdentityColumn(StringBuffer buf, SQLInsert work);
 +
: public abstract boolean appendIdentityValue(StringBuffer buf, SQLInsert work);
 +
: public abstract boolean appendIdentitySuffix(StringBuffer buf, SQLInsert work);
 +
: public abstract void bindIdentity(PreparedStatement stmt, SQLInsert work) throws SQLException;
 +
: public abstract Object getIdentityValue(PreparedStatement stmt, Column column, SQLInsert work) throws SQLException;
  
 
*Protected methods
 
*Protected methods
 
: protected boolean isLikeReservedChar(char ch)
 
: protected boolean isLikeReservedChar(char ch)
 +
: protected void appendLiteral(StringBuffer buf, String sValue)
 +
: public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value);
 
:
 
:
 
==MySQLAdapter.java==
 
==MySQLAdapter.java==

Revision as of 09:41, 12 November 2010

SQLAdapter.java

PostgreSQLAdapter.java

  • Abstract methods to work on
public abstract String appendStringLengthPrefix(StringBuffer buf, FunctionOperator op);
public abstract String appendSubstringPrefix(StringBuffer buf, FunctionOperator op);
public abstract boolean isLiteral(Primitive type, Object value);;
public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value);
public abstract void appendTypeConversion(StringBuffer buf, Object op,Primitive fromType, Primitive type, SQLGenerator gen);
public abstract void appendPrefixHint(StringBuffer buf, Query query);
public abstract void appendInfixHint(StringBuffer buf, Query query);
public abstract void appendSuffixHint(StringBuffer buf, Query query);
public abstract void appendTableHint(StringBuffer buf, SQLJoin join, Query query);
public abstract void appendIdentityPrefix(StringBuffer buf, SQLInsert work);
public abstract boolean appendIdentityColumn(StringBuffer buf, SQLInsert work);
public abstract boolean appendIdentityValue(StringBuffer buf, SQLInsert work);
public abstract boolean appendIdentitySuffix(StringBuffer buf, SQLInsert work);
public abstract void bindIdentity(PreparedStatement stmt, SQLInsert work) throws SQLException;
public abstract Object getIdentityValue(PreparedStatement stmt, Column column, SQLInsert work) throws SQLException;
  • Protected methods
protected boolean isLikeReservedChar(char ch)
protected void appendLiteral(StringBuffer buf, String sValue)
public abstract void appendLiteral(StringBuffer buf, Primitive type, Object value);

MySQLAdapter.java