Loads an object stored in the file system.
Syntax
public
abstract< TextendsISDMPersistable > boolean
loadObject
(
String
key
,
T
object
) throws SDMPersistenceException, IllegalArgumentException
Parameters
-
<T> –
The class type of the stored object.
-
key –
The key used for identifying the object and the input file.
-
object –
The object to fill by the stored data.
Returns
true if the object has found and successfully loaded and false otherwise.
Exceptions
-
SDMPersistenceException class –
if object can not be loaded for any reason.
-
IllegalArgumentException –
if parameter 'object' or parameter 'key' is null.