implements methods in Connection in java 1.7