public class Oid extends Object
Modifier and Type | Field and Description |
---|---|
static Oid |
Null |
protected static String |
NullOidToken |
Constructor and Description |
---|
Oid(IAssetType assetType)
Create Object Identifier with just an AssetType
|
Oid(IAssetType assetType,
DB.Int id,
DB.Int moment)
Deprecated.
|
Oid(IAssetType assetType,
int id)
Create Object Identifier without moment
|
Oid(IAssetType assetType,
int id,
DB.Int moment)
Deprecated.
|
Oid(IAssetType assetType,
int id,
int moment)
Create fully qualified object identifier
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(Oid lhs,
Oid rhs)
Compare two oids
|
boolean |
equals(Object obj)
Compare this instance to another oid
|
static Oid |
fromToken(String oidtoken,
IMetaModel meta)
Create an OID from a token
|
IAssetType |
getAssetType()
Get the AssetType
|
Object |
getKey()
Get the id for this instance
|
Object |
getMoment()
get the moment for this oid
|
Oid |
getMomentless()
Get this instance as a momentless oid
|
String |
getToken()
Get the token for this object identifier
|
int |
hashCode()
Get the hash code for the oid
|
boolean |
hasMoment()
Does this instance contain a moment?
|
boolean |
isNull()
Is this OID null
|
String |
toString()
Object as string (the token)
|
protected static final String NullOidToken
public static final Oid Null
public Oid(IAssetType assetType, DB.Int id, DB.Int moment)
Oid(com.versionone.apiclient.interfaces.IAssetType, int, int)
assetType
- - IAssetTypeid
- - DB.Intmoment
- - DB.Intpublic Oid(IAssetType assetType, int id, DB.Int moment)
Oid(com.versionone.apiclient.interfaces.IAssetType, int)
assetType
- - IAssetTypeid
- - intmoment
- - DB.Intpublic Oid(IAssetType assetType, int id, int moment)
assetType
- - IAssetTypeid
- - intmoment
- - intpublic Oid(IAssetType assetType, int id)
assetType
- - IAssetTypeid
- - intpublic Oid(IAssetType assetType)
assetType
- - IAssetTypepublic IAssetType getAssetType()
public Object getKey()
public Object getMoment()
public boolean isNull()
public String getToken()
public static Oid fromToken(String oidtoken, IMetaModel meta) throws OidException
oidtoken
- - token to parsemeta
- - metamodelOidException
- - if the OID cannot be created.public Oid getMomentless()
public boolean hasMoment()
public boolean equals(Object obj)
Copyright © 2015 VersionOne, Inc.. All rights reserved.