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 Summary
Methods Modifier and Type Method and Description static void
addStatementListener(AS400JDBCStatementListener listener)
Adds an AS400JDBCStatementListener.boolean
isSelectFromInsert()
boolean
isSetSpecialRegister()
static void
removeStatementListener(AS400JDBCStatementListener listener)
Removes an AS400JDBCStatementListener.void
setNativeType(int type)
Sets the native statement type to one of the valid types.void
setSelectFromInsert(boolean selectFromInsert)
java.lang.String
toString()
Returns the SQL statement as a String.
-
-
-
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 classjava.lang.Object
- Returns:
- The string, optionally native SQL.
-
isSetSpecialRegister
public boolean isSetSpecialRegister()
-
-