public abstract class Entity extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ASSET_STATE_VALUE |
protected static String |
ASSET_VALUE |
static String |
CHANGE_DATE_UTC
Change date attribute.
|
protected static String |
CONTENT_TYPE_VALUE |
protected static String |
CONTENT_VALUE |
static String |
CREATE_DATE_UTC
Create date attribute.
|
protected static String |
DELETE_OPERATION |
protected static String |
DESCRIPTION_VALUE |
protected static String |
FILENAME_VALUE |
protected static String |
NAME_VALUE |
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this
Entity with the specified object. |
protected Object |
get(String name)
Gets a simple value by name for this entity.
|
String |
getChangeComment() |
DB.DateTime |
getChangeDate() |
Member |
getChangedBy() |
String |
getCreateComment() |
DB.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(String comment)
Save any changes to this entity to the VersionOne System with a comment.
|
String |
toString() |
protected static final String DESCRIPTION_VALUE
protected static final String ASSET_VALUE
protected static final String ASSET_STATE_VALUE
protected static final String CONTENT_TYPE_VALUE
protected static final String FILENAME_VALUE
protected static final String NAME_VALUE
protected static final String CONTENT_VALUE
public static final String CREATE_DATE_UTC
public static final String CHANGE_DATE_UTC
protected static final String DELETE_OPERATION
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.protected V1Instance getInstance()
public AssetID getID()
public DB.DateTime getChangeDate()
public String getChangeComment()
public Member getChangedBy()
public DB.DateTime getCreateDate()
public String getCreateComment()
public Member getCreatedBy()
protected Object get(String name)
name
- Name of the attribute.public void save(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(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
.public int hashCode()
assetID
or stubAssetID
field.hashCode
in class Object
AssetID.hashCode().
public String toString()
toString
in class Object
AssetID.toString().
Copyright © 2013 Version One, Inc.. All rights reserved.