prepare_for_offline


Description:

[ Version ( since = "5.2.0" ) ]
public bool prepare_for_offline () throws Error

Use this method to make sure all the data contained in the data model are stored on the client side (and that no subsquent call to the server will be necessary to access that data), at the cost of a higher memory consumption.

This method is useful in the following situations:

  • You need to disconnect from the server and continue to use the data in the data model
  • You need to make sure the data in the data model can be used even though the connection to the server may be used for other purposes (for example executing other queries)

Note that this method will fail if:

  • the data model contains any blobs (because blobs reading requires acces to the server); binary values are Ok, though.
  • the data model has been modified since it was created

Parameters:

this

a DataSelect object

Returns:

true if no error occurred