|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.versionone.om.Entity
public abstract class Entity
Abstract representation of entities in the VersionOne system.
| Field Summary | |
|---|---|
protected static java.lang.String |
ASSET_STATE_VALUE
|
protected static java.lang.String |
ASSET_VALUE
|
static java.lang.String |
CHANGE_DATE_UTC
Change date attribute. |
protected static java.lang.String |
CONTENT_TYPE_VALUE
|
protected static java.lang.String |
CONTENT_VALUE
|
static java.lang.String |
CREATE_DATE_UTC
Create date attribute. |
protected static java.lang.String |
DELETE_OPERATION
|
protected static java.lang.String |
DESCRIPTION_VALUE
|
protected static java.lang.String |
FILENAME_VALUE
|
protected static java.lang.String |
NAME_VALUE
|
| Constructor Summary | |
|---|---|
protected |
Entity(AssetID id,
V1Instance instance)
Constructor used to represent an entity that DOES exist in the VersionOne System. |
protected |
Entity(V1Instance instance)
Constructor used to represent an entity that does NOT exist yet in the VersionOne System. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this Entity with the specified object. |
protected java.lang.Object |
get(java.lang.String name)
Gets a simple value by name for this entity. |
java.lang.String |
getChangeComment()
|
DateTime |
getChangeDate()
|
Member |
getChangedBy()
|
java.lang.String |
getCreateComment()
|
DateTime |
getCreateDate()
|
Member |
getCreatedBy()
|
AssetID |
getID()
Unique ID of this entity. |
protected V1Instance |
getInstance()
|
int |
hashCode()
To calculate hashCode used assetID or stubAssetID
field. |
void |
save()
Save any changes to this entity to the VersionOne System. |
void |
save(java.lang.String comment)
Save any changes to this entity to the VersionOne System with a comment. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String DESCRIPTION_VALUE
protected static final java.lang.String ASSET_VALUE
protected static final java.lang.String ASSET_STATE_VALUE
protected static final java.lang.String CONTENT_TYPE_VALUE
protected static final java.lang.String FILENAME_VALUE
protected static final java.lang.String NAME_VALUE
protected static final java.lang.String CONTENT_VALUE
public static final java.lang.String CREATE_DATE_UTC
public static final java.lang.String CHANGE_DATE_UTC
protected static final java.lang.String DELETE_OPERATION
| Constructor Detail |
|---|
protected Entity(AssetID id,
V1Instance instance)
id - Unique ID of this entity.instance - this entity belongs to.protected Entity(V1Instance instance)
instance - this entity belongs to.| Method Detail |
|---|
protected V1Instance getInstance()
public AssetID getID()
public DateTime getChangeDate()
public java.lang.String getChangeComment()
public Member getChangedBy()
public DateTime getCreateDate()
public java.lang.String getCreateComment()
public Member getCreatedBy()
protected java.lang.Object get(java.lang.String name)
name - Name of the attribute.
public void save(java.lang.String comment)
throws DataException,
ApplicationUnavailableException
comment - Comment.
DataException - Thrown when a rule or security violation has
occurred.
ApplicationUnavailableException - Thrown when network connection
to V1 Server is lost.
public void save()
throws DataException,
ApplicationUnavailableException
DataException - Thrown when a rule or security violation has
occurred.
ApplicationUnavailableException - Thrown when network connection
to V1 Server is lost.public boolean equals(java.lang.Object obj)
Entity with the specified object. The result is
true if and only if the argument is not null and is an
Entity with the same AssetID.
equals in class java.lang.Objectobj - The object to compare this Entity against.
true if the given object represents the same
Entity on the server, false otherwise.public int hashCode()
assetID or stubAssetID
field.
hashCode in class java.lang.ObjectAssetID.hashCode().public java.lang.String toString()
toString in class java.lang.ObjectAssetID.toString().
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||