com.ibm.as400.access

Class JDSQLStatement

  • java.lang.Object
    • com.ibm.as400.access.JDSQLStatement


  • public class JDSQLStatement
    extends java.lang.Object
    Internal class that represents a parsed SQL statement. This should only be used internally by the JDBC driver.
    • Method Detail

      • addStatementListener

        public static void addStatementListener(AS400JDBCStatementListener listener)
        Adds an AS400JDBCStatementListener.
        Parameters:
        listener -
      • removeStatementListener

        public static void removeStatementListener(AS400JDBCStatementListener listener)
        Removes an AS400JDBCStatementListener.
        Parameters:
        listener -
      • setNativeType

        public void setNativeType(int type)
        Sets the native statement type to one of the valid types. If an invalid type is specified, no change will occur. Valid types are:
        • TYPE_UNDETERMINED
        • TYPE_OTHER
        • TYPE_UNDETERMINED
        • TYPE_OTHER
        • TYPE_SELECT
        • TYPE_CALL
        • TYPE_COMMIT
        • TYPE_ROLLBACK
        • TYPE_CONNECT
        • TYPE_BLOCK_INSERT
        Parameters:
        type - Native statement type.
      • setSelectFromInsert

        public void setSelectFromInsert(boolean selectFromInsert)
      • isSelectFromInsert

        public boolean isSelectFromInsert()
      • toString

        public java.lang.String toString()
        Returns the SQL statement as a String. This will be native SQL if conversion was requested.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string, optionally native SQL.
      • isSetSpecialRegister

        public boolean isSetSpecialRegister()