Carey Brown wrote:Look up the DriverManager class. There are a few getConnection() methods to choose from.
Creates a Statement object for sending SQL statements to the database. SQL statements without parameters are normally executed using Statement objects. If the same SQL statement is executed many times, it may be more efficient to use a PreparedStatement object.
Result sets created using the returned Statement object will by default be type TYPE_FORWARD_ONLY and have a concurrency level of CONCUR_READ_ONLY. The holdability of the created result sets can be determined by calling getHoldability.
a new default Statement object
SQLException - if a database access error occurs or this method is called on a closed connection
The method setfichier(String) is undefined for the type Video
The method add(Video) is undefined for the type Video