JDBC function is not Abstract does not override

Hello! Can anyone explain this message in beginners terms on what I need to do to resolve this problem? I am recompiling these java programs with jsdk1.4.2_04. Thanks for any help you can provide.

defish

jdbcConnection.java:45: org.peerdb.jdbcConnection is not abstract and does not o

verride abstract method prepareStatement(java.lang.String,java.lang.String[]) in

java.sql.Connection

public class jdbcConnection implements Connection

^

jdbcResultSet.java:65: org.peerdb.jdbcResultSet is not abstract and does not ove

rride abstract method updateRef(java.lang.String,java.sql.Ref) in java.sql.Resul

tSet

public class jdbcResultSet implements ResultSet, ResultSetMetaData

^

jdbcDatabaseMetaData.java:30: org.peerdb.jdbcDatabaseMetaData is not abstract an

d does not override abstract method getAttributes(java.lang.String,java.lang.Str

ing,java.lang.String,java.lang.String) in java.sql.DatabaseMetaData

public class jdbcDatabaseMetaData implements DatabaseMetaData

^

jdbcStatement.java:23: org.peerdb.jdbcStatement is not abstract and does not ove

rride abstract method execute(java.lang.String,java.lang.String[]) in java.sql.S

tatement

public class jdbcStatement implements Statement

^

jdbcPreparedStatement.java:85: org.peerdb.jdbcPreparedStatement is not abstract

and does not override abstract method getParameterMetaData() in java.sql.Prepare

dStatement

public class jdbcPreparedStatement extends jdbcStatement

^

[1597 byte] By [defish102769] at [2007-9-30 6:01:08]
# 1

Whenever you implement an interface as you are doing with lines like:

public class jdbcConnection implements Connection

You must do one of two things: Override (create your own version of) each method in the interface, or declare your class as abstract. If you declare it as abstract, you are saying that some other class will override these methods. You cannot instantiate an interface or an abstract class.

Similarly, if you extend an abstract class, like:

public class jdbcPreparedStatement extends jdbcStatement

You must either override any abstract methods, or declare the class as abstract.

It sounds like you have a "framework" that you are trying to compile. Generally, frameworks are just the beginning. A lot more has to be written before it is a useable piece of software.

msiemon2003 at 2007-7-1 19:28:27 > top of Java-index,Administration Tools,Sun Connection...