java.lang.Object
|
+--stec.iws.RealmManager
public class RealmManager
Contains methods used to load and unload Realms.
Methods
Method
|
Description
|
isRealmLoaded
|
Returns whether the specified Realm is loaded.
|
loadRealm
|
Used to load the specified Realm alias.
|
unloadRealm
|
Used to unload the specified Realm alias.
|
isRealmLoaded
Returns whether the specified Realm is loaded.
Syntax
public static boolean isRealmLoaded(String alias)
throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
boolean
|
whether the specified Realm is loaded.
|
Throws
Example
RealmManager.isRealmLoaded("default");
loadRealm
Used to load the specified Realm alias.
Syntax
public static Realm loadRealm(String alias) throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
Realm
|
context to the loaded Realm.
|
Throws
Exception
|
if any errors occurs.
|
Example
RealmManager.loadRealm("default");
unloadRealm
Used to unload the specified Realm alias.
Syntax
public static void unloadRealm(String alias) throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
Throws
Exception
|
if any errors occurs.
|
Example
RealmManager.unloadRealm("default");
|