|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.common.IIDGenerator
public class IIDGenerator
Description: Generates a Unique Instance Identifier (IID) for the given namespace. The IIDs are unique as the namespace id is embedded as 16 MSB and 48 LSB have the sequence number.
IIDs are unique numbers to identify an instance of an DTS Schema Object (ex: Property, Association, Qualifier, etc)Copyright: Copyright (c) 2005
Company: Apelon, Inc.
Field Summary | |
---|---|
static int |
EXIT_OPTION
|
static int |
IID_OPTION
|
static int |
LIMIT_OPTION
|
static String |
PROMPT
|
Constructor Summary | |
---|---|
IIDGenerator()
|
Method Summary | |
---|---|
static long |
getIdFromIID(long iid)
Given an IID, this method will get the sequence_id (48 lsb bits) for it |
static long |
getIID(int namespace_id,
long seq_id)
Synthesis a IID from a given namespace id (16 bits), object id (48 bits) |
static int |
getNamespaceIdFromGid(long gid)
Given a GID, its namespaceId can be found with this method. |
static long[] |
getNamespaceMaxAndMinGID(int namespace_id)
Deprecated. Use getNamespaceMaxAndMinIID() instead |
static long[] |
getNamespaceMaxAndMinIID(int namespace_id)
A method to get the IID boundaries per namespace. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String PROMPT
public static int IID_OPTION
public static int LIMIT_OPTION
public static int EXIT_OPTION
Constructor Detail |
---|
public IIDGenerator()
Method Detail |
---|
public static long getIID(int namespace_id, long seq_id)
namespace_id
- the namespace idseq_id
- the object id
public static int getNamespaceIdFromGid(long gid)
gid
- The gid whose namespace id is to be found
public static long getIdFromIID(long iid)
iid
- The IID value to be inspected
public static long[] getNamespaceMaxAndMinGID(int namespace_id)
namespace_id
- the namespace id
public static long[] getNamespaceMaxAndMinIID(int namespace_id)
namespace_id
- the namespace id
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |