This method of the Connection class retrieves the available permissions for modifying data in a Connection.
public int getMode();
Returns a ConnectMode value. The default is UNKNOWN.