public class VgIDatabase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
getCachedLicenseFilenameForConfiguration(java.lang.String pConfigFilename,
java.lang.String[] pOutLicenseFilename) |
VgIDatabaseDatasetDescriptor |
getCurrentDatasetDescriptor()
Retrieves the descriptor of the current dataset.
|
VgIDatabaseDatasetDescriptorVector |
getDatasetDescriptors()
Retrieves the vector of all available datasets.
|
boolean |
loadConfiguration(java.lang.String pConfigFilename,
long pSecretKey) |
boolean |
loadConfiguration(java.lang.String pConfigFilename,
long pSecretKey,
java.lang.String pLicenseGeneratorURL)
Loads a database configuration from a mass storage.
|
boolean |
selectDataset(int pIndex)
Selects a dataset using its index.
|
boolean |
selectDataset(java.lang.String pDatasetName)
Selects a dataset using its name.
|
void |
unloadConfiguration()
unloads the current configuration if there is one.
|
public void delete()
public boolean loadConfiguration(java.lang.String pConfigFilename, long pSecretKey, java.lang.String pLicenseGeneratorURL)
pConfigFilename
- The path of the configuration file to be loaded.
This parameter may be either an abosolute path or (on iOS only) it may be
a path relative to the application directory:
{APPLICATIONS_DIRECTORY}/{GUID_DIRECTORY}/{NAME_OF_APP}.app/pSecretKey
- The secret key that matches the secret key that was
used to generate the associated licence xml file's hash code.pLicenseGeneratorURL
- The URL that will be reached to get the license if missing.public boolean loadConfiguration(java.lang.String pConfigFilename, long pSecretKey)
public void unloadConfiguration()
public boolean getCachedLicenseFilenameForConfiguration(java.lang.String pConfigFilename, java.lang.String[] pOutLicenseFilename)
public boolean selectDataset(java.lang.String pDatasetName)
pDatasetName
- The name of the dataset. Needs to match the name of a
dataset defined within the currently loaded configuration file.public boolean selectDataset(int pIndex)
pIndex
- Index of dataset, indicated by it's position relative to other
datasets within the configuration file (starting at 0).public VgIDatabaseDatasetDescriptor getCurrentDatasetDescriptor()
public VgIDatabaseDatasetDescriptorVector getDatasetDescriptors()