My class implements Connection interface. In my class i have got Object that implements Connection. Now i want to implements all my class method from Connection interface with my object in that class. Is there any fast method?
@Override
public Statement createStatement() throws SQLException {
return connection.createStatement();
}
I can do that thing for all methods, but it is really boiler code.
@Edit I know i can write getter for that object, but I do not want to do that.