|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.repository.infomodel.bean.Relation
public class Relation
Relation
instances are used to define many-to-many relationships
among resources. A Relation
object represents a relationship
between two resources.
Field Summary | |
---|---|
static int |
ATTRIBUTE_SOURCE_OBJECT_ID
Contains the attribute identifier value which represents the attribute source object. |
static int |
ATTRIBUTE_TARGET_OBJECT_ID
Contains the attribute identifier value which represents the attribute target object. |
static int |
ATTRIBUTE_TRACK_TARGET_HEAD
Contains the attribute identifier value which represents the attribute track target head. |
static int |
ATTRIBUTE_TYPE
Contains the attribute identifier value which represents the Relation type. |
static int |
OBJECT_TYPE_RELATION
Contains the object type value which represents Relation
instances. |
static int |
TYPE_DEPENDANT_OF
A predefined constant representing dependent relationships. |
static int |
TYPE_MEMBER_OF
A predefined constant representing membership (file system) relationships. |
Constructor Summary | |
---|---|
Relation()
Default constructor. |
Method Summary | |
---|---|
java.util.Date |
getCreateTime()
Retrieves the time at which this relation was first created. |
long |
getOid()
Retrieves this relation's numerical object identifier. |
Id |
getSourceObjectId()
Retrieves the identifier of the Resource that is the source of this
relation. |
Id |
getTargetObjectId()
Retrieves the identifier of the Resource that is the target of this
relation. |
boolean |
getTrackTargetHead()
Determines whether the target attribute will automatically be updated to the latest version of the target object. |
int |
getType()
Retrieves the type of this relation. |
java.util.Date |
getUpdateTime()
Retrieves the time at which this relation was last modified. |
boolean |
isProjected(int attribute)
Determines whether the supplied attribute or composed object is projected. |
void |
setCreateTime(java.util.Date createTime)
Sets the time at which this relation was first written to the Repository. |
void |
setOid(long oid)
Do not use this method. |
void |
setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
Sets the Repository load profile for this relation. |
void |
setSourceObjectId(Id sourceObjectId)
Sets the numerical object identifier for the Resource instance that is the source
of the relationship. |
void |
setTargetObjectId(Id targetObjectId)
Sets the numerical object identifier for the Resource instance that is the target
of the relationship. |
void |
setTrackTargetHead(boolean trackTargetHead)
Sets whether this relationship will track the head version of the target object. |
void |
setType(int type)
Sets the type of this relation. |
void |
setUpdateTime(java.util.Date updateTime)
Sets the time at which this relation was last modified. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_DEPENDANT_OF
public static final int TYPE_MEMBER_OF
public static final int OBJECT_TYPE_RELATION
Relation
instances.
public static final int ATTRIBUTE_TYPE
Relation
type.
public static final int ATTRIBUTE_TRACK_TARGET_HEAD
public static final int ATTRIBUTE_SOURCE_OBJECT_ID
public static final int ATTRIBUTE_TARGET_OBJECT_ID
Constructor Detail |
---|
public Relation()
Method Detail |
---|
public void setRepositoryLoadProfile(RepositoryLoadProfile loadProfile)
RepositoryLoadProfile
.
loadProfile
- The Repository load profile for this relation.public boolean isProjected(int attribute)
attribute
- The attribute or composed object, which can be any one of
the LOAD_*
constants defined in this class.
true
if the supplied attribute or composed object is
projected, false
otherwise.public long getOid()
public void setOid(long oid)
Sets this relation's numerical object identifier.
oid
- This relation's numerical object identifier.public int getType()
TYPE_*
constants, or a client-specified
value greater than or equal to 1024
.public void setType(int type)
type
- One of the TYPE_*
constants, or a client-specified
value greater than or equal to 1024
.public boolean getTrackTargetHead()
true
if the target attribute will automatically be
updated to the latest version of the target object,
false
otherwise.public void setTrackTargetHead(boolean trackTargetHead)
trackTargetHead
- true
if the head version of the target
object will be tracked, false
otherwise.public Id getSourceObjectId()
Resource
that is the source of this
relation.
Resource
that is the source
of this relation.public void setSourceObjectId(Id sourceObjectId)
Resource
instance that is the source
of the relationship.
sourceObjectId
- The numerical object identifier for the Resource
instance that is the
source of the relationship.public Id getTargetObjectId()
Resource
that is the target of this
relation.
Resource
that is the target
of this relation.public void setTargetObjectId(Id targetObjectId)
Resource
instance that is the target
of the relationship.
targetObjectId
- The numerical object identifier for the Resource
instance that is the
target of the relationship.public java.util.Date getUpdateTime()
public void setUpdateTime(java.util.Date updateTime)
updateTime
- The time at which this relation was last modified.public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- The time at which this relation was first written to the
Repository.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |