public class VaultUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VaultUtils.VaultInfo
Encapsulates the vault information.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
composeOid(int vaultMXOID,
int lxOid)
Composes the object-id, for an object with the specified LXOID.
|
static java.lang.String |
composeOid(java.lang.String vaultSuffix,
int lxOid)
Composes the object-id, for an object with the specified LXOID.
|
static java.lang.String |
composeOid(VaultUtils.VaultInfo vi,
int lxOid)
Composes the object-id, for an object with the specified LXOID.
|
static int[] |
decomposeOid(java.lang.String oid)
De-composes the object-id, into an integer array consist of:
The MXOID for the vault
The LXOID for the object
|
static boolean |
exists(java.lang.String vaultName)
Returns true if the vault with the specified name exists in the database.
|
static java.lang.String[] |
getTableSuffixAndLXOID(java.lang.String oid)
Returns an array of length 2, where the first item is the table suffix
for the vault and the second item is the LXOID for the object itself.
|
static VaultUtils.VaultInfo[] |
getVaultInfo()
Returns the vault information for all the vaults in the database
|
static VaultUtils.VaultInfo |
getVaultInfo(java.lang.String name)
Returns the vault information for the given vault
|
static java.lang.String[] |
getVaultNames()
Returns a string array, containing the names of the vaults within the
database
|
public static boolean exists(java.lang.String vaultName) throws TVCException
This method will call the DB using an MQL Command to list the vaults.
vaultName
- The name of the vaultTVCException
- If unable to list the vaults in the database.public static java.lang.String[] getVaultNames() throws TVCException
TVCException
public static VaultUtils.VaultInfo getVaultInfo(java.lang.String name) throws TVCException
name
- The name of the vaultTVCException
- If unable to retreive the informationpublic static VaultUtils.VaultInfo[] getVaultInfo() throws TVCException
TVCException
- If unable to retreive the informationpublic static java.lang.String composeOid(VaultUtils.VaultInfo vi, int lxOid)
vi
- The vaultlxOid
- the LXOID for the object (from the LXBO_* table)public static java.lang.String composeOid(java.lang.String vaultSuffix, int lxOid)
vaultSuffix
- The vault suffixlxOid
- the LXOID for the object (from the LXBO_* table)public static java.lang.String composeOid(int vaultMXOID, int lxOid)
vaultMXOID
- The vault MXOIDlxOid
- the LXOID for the object (from the LXBO_* table)public static int[] decomposeOid(java.lang.String oid)
oid
- The object id. Must be a valid object-id string of format
1234.5678.90123.456public static java.lang.String[] getTableSuffixAndLXOID(java.lang.String oid)
oid
- The object id.Copyright © Technia AB. All Rights Reserved.