JDBC and Connector/J 18 java.sql.Statement: The Statement (Private jvm hosting) interface

JDBC and Connector/J 18 java.sql.Statement: The Statement interface is probably one of the most important interfaces in the JDBC specification. All SQL statements are exe cuted through a Statement object. Each Statement object returns single ResultSet objects. java.sql.Struct: The Struct interface is a mapping from a SQL structured type to the Java language. java.sql.Time: The Time class is a wrapper around java.util.Date to sup port the mapping from SQL TIME to Java. java.sql.Timestamp: The Timestamp class is a wrapper around java.util.Date to support the mapping from SQL TIMESTAMP to Java. java.sql.Types: The Types class is an internal class used to identify generic SQL types or JDBC types. The classes and interfaces within the Core API are linked together, as shown in Figure 2.4. There is a natural progression from a Connection object to a Result- Set. The path from one to the other occurs using a Statement, PreparedStatement, or CallableStatement; and the Statement class is a parent to both of the others. All of the Statement classes will eventually execute SQL to produce a ResultSet. ResultSet Connection DataTypes Statement Prepared Statement Callable Statement createStatement executeQuery Figure 2.4 JDBC Core API class/interface links. The javax.sql Package The Optional API within the JDBC specification is implemented within the javax.sql package. The classes and interfaces are as follows:
Note: If you are looking for cheap and inexpensive provider to host and run your tomcat application check Actions tomcat hosting services

Comments are closed.