Adding api to get latest partition date for cube

Java doc needs change