public class Oid extends Object
Modifier and Type | Field and Description |
---|---|
static Oid |
Null |
protected static String |
NullOidToken |
Constructor and Description |
---|
Oid(com.versionone.apiclient.IAssetType assetType)
Create Object Identifier with just an AssetType
|
Oid(com.versionone.apiclient.IAssetType assetType,
DB.Int id,
DB.Int moment)
Deprecated.
|
Oid(com.versionone.apiclient.IAssetType assetType,
int id)
Create Object Identifier without moment
|
Oid(com.versionone.apiclient.IAssetType assetType,
int id,
DB.Int moment)
Deprecated.
|
Oid(com.versionone.apiclient.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,
com.versionone.apiclient.IMetaModel meta)
Create an OID from a token
|
com.versionone.apiclient.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(com.versionone.apiclient.IAssetType assetType, DB.Int id, DB.Int moment)
Oid(com.versionone.apiclient.IAssetType, int, int)
assetType
- id
- moment
- public Oid(com.versionone.apiclient.IAssetType assetType, int id, DB.Int moment)
Oid(com.versionone.apiclient.IAssetType, int)
assetType
- id
- moment
- public Oid(com.versionone.apiclient.IAssetType assetType, int id, int moment)
assetType
- id
- moment
- public Oid(com.versionone.apiclient.IAssetType assetType, int id)
assetType
- id
- public Oid(com.versionone.apiclient.IAssetType assetType)
assetType
- public com.versionone.apiclient.IAssetType getAssetType()
public Object getKey()
public Object getMoment()
public boolean isNull()
public String getToken()
public static Oid fromToken(String oidtoken, com.versionone.apiclient.IMetaModel meta) throws com.versionone.apiclient.OidException
oidtoken
- - token to parsemeta
- - metamodelcom.versionone.apiclient.OidException
- - if the OID cannot be created.public Oid getMomentless()
public boolean hasMoment()
public boolean equals(Object obj)
Copyright © 2013 Version One, Inc.. All rights reserved.