You are able to signal the auto increment columns in the prepare statement call
Example:
PreparedStatement ps = con.prepareStatement(sql, pkColumns);
After the insert of the database row:
ResultSet keys = ps.getGeneratedKeys();
Important: This only works, if the auto-increment values has been automatically set by a DB-Trigger via sequences