public void insert(Client client) throws SQLException { String firstName = client.getFitstName(); String secondName = client.getSecondName(); String email = client.getEmail(); PreparedStatement ps = OracleConnection.getConnection().prepareStatement("INSERT into Client VALUES ? ,? ,? "); ps.setString(1, firstName); ps.setString(2, secondName); ps.setString(3, email); ps.executeQuery(); }