The life cycle for a servlet
comprises of the following phases:
• DriverManager : for managing a list of database drivers.
• Driver : for communicating with the database.
• Connection : for interfacing with all the methods for connecting a database.
• Statement : for encapsulating an SQL statement for passing to the database which had been parsed, compiled, planned and executed.
• ResultSet: for representing a set of rows retrieved for the query execution.
See Example Here:
http://java91.blogspot.in/2015/01/mysql-and-java-jdbc-connection-to.html
• DriverManager : for managing a list of database drivers.
• Driver : for communicating with the database.
• Connection : for interfacing with all the methods for connecting a database.
• Statement : for encapsulating an SQL statement for passing to the database which had been parsed, compiled, planned and executed.
• ResultSet: for representing a set of rows retrieved for the query execution.
See Example Here:
http://java91.blogspot.in/2015/01/mysql-and-java-jdbc-connection-to.html
No comments:
Post a Comment