|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.versionone.Oid
public class Oid
VersionOne object identifier
| Field Summary | |
|---|---|
static Oid |
Null
|
protected static java.lang.String |
NullOidToken
|
| Constructor Summary | |
|---|---|
Oid(IAssetType assetType)
Create Object Identifier with just an AssetType |
|
Oid(IAssetType assetType,
DB.Int id,
DB.Int moment)
Deprecated. use Oid(com.versionone.apiclient.IAssetType, int, int) |
|
Oid(IAssetType assetType,
int id)
Create Object Identifier without moment |
|
Oid(IAssetType assetType,
int id,
DB.Int moment)
Deprecated. use Oid(com.versionone.apiclient.IAssetType, int) |
|
Oid(IAssetType assetType,
int id,
int moment)
Create fully qualified object identifier |
|
| Method Summary | |
|---|---|
static boolean |
compare(Oid lhs,
Oid rhs)
Compare two oids |
boolean |
equals(java.lang.Object obj)
Compare this instance to another oid |
static Oid |
fromToken(java.lang.String oidtoken,
IMetaModel meta)
Create an OID from a token |
IAssetType |
getAssetType()
Get the AssetType |
java.lang.Object |
getKey()
Get the id for this instance |
java.lang.Object |
getMoment()
get the moment for this oid |
Oid |
getMomentless()
Get this instance as a momentless oid |
java.lang.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 |
java.lang.String |
toString()
Object as string (the token) |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String NullOidToken
public static final Oid Null
| Constructor Detail |
|---|
public Oid(IAssetType assetType,
DB.Int id,
DB.Int moment)
Oid(com.versionone.apiclient.IAssetType, int, int)
assetType - id - moment -
public Oid(IAssetType assetType,
int id,
DB.Int moment)
Oid(com.versionone.apiclient.IAssetType, int)
assetType - id - moment -
public Oid(IAssetType assetType,
int id,
int moment)
assetType - id - moment -
public Oid(IAssetType assetType,
int id)
assetType - id - public Oid(IAssetType assetType)
assetType - | Method Detail |
|---|
public IAssetType getAssetType()
public java.lang.Object getKey()
public java.lang.Object getMoment()
public boolean isNull()
public java.lang.String getToken()
public java.lang.String toString()
toString in class java.lang.Object
public static Oid fromToken(java.lang.String oidtoken,
IMetaModel meta)
throws OidException
oidtoken - - token to parsemeta - - metamodel
OidException - - if the OID cannot be created.public Oid getMomentless()
public boolean hasMoment()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public static boolean compare(Oid lhs,
Oid rhs)
lhs - - left hand siderhs - - right hand side
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||