Liutauras Vilda wrote:Maybe worth to include error messages you are getting so the guys wouldn't need to guess, please.
Philippe Ponceblanc wrote:but I tell you where the errors of my program are
Philippe Ponceblanc wrote: do not understand the meaning of your question
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.
Returns:
a new default Statement object
Throws:
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
Philippe Ponceblanc wrote:i have juste one error on VideoDaoImpl
Carey Brown wrote:
Philippe Ponceblanc wrote:i have juste one error on VideoDaoImpl
Your VideoDaoImpl class doesn't have an add() method defined.
Have your replaced the body of this method? What does it look like?Philippe Ponceblanc wrote:in VideoFactory i have add an static methode, like this :
Carey Brown wrote:Look up the DriverManager class. There are a few getConnection() methods to choose from.
The method put(String, String) is undefined for the type Properties
Yes.Paul Clapham wrote:And this "Properties" class: it is java.util.Properties, isn't it?
Carey Brown wrote:
Yes.Paul Clapham wrote:And this "Properties" class: it is java.util.Properties, isn't it?
Carey Brown wrote:Philippe, what do your imports look like?
Philippe Ponceblanc wrote:import com.sun.javafx.scene.control.Properties;
Carey Brown wrote:You crreate a "Video" (upper-case-V) object called "video" (lower-case-v). The problem with the error lines is that you need to call the setter methods on the object, not on the class.