|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataRelation<T,V>
T - The owning type.V - The dependent type.public abstract class AbstractDataRelation<T extends DirectoryObject,V extends DirectoryObject>
Abstract base class of all concrete DataRelation instances.
| Field Summary | |
|---|---|
protected String |
createdBy
Relation creator name/identifier |
protected Calendar |
creationDate
Relation creation date |
protected V |
dependent
Dependent side of relationship |
protected Calendar |
expirationDate
Relation expiration date |
protected T |
owner
Owning side of relationship |
protected RoleType |
roleType
Relation role type |
private static long |
serialVersionUID
Serialization version marker |
protected Long |
uid
Unique identifier |
| Constructor Summary | |
|---|---|
AbstractDataRelation()
|
|
| Method Summary | |
|---|---|
int |
compareTo(DataRelation other)
Sorts relations by the underlying role type codes. |
String |
getCreatedBy()
This returns the created by. |
Calendar |
getCreationDate()
This returns the creation date. |
Calendar |
getExpirationDate()
Gets the expiration date on the relationship. |
V |
getRelation()
Gets the relation object. |
T |
getRelationship()
Gets the relationship object. |
RoleType |
getRoleType()
Gets the role on the relationship. |
void |
setCreatedBy(String s)
This sets the created by. |
void |
setCreationDate(Calendar created)
This sets the creation date. |
void |
setExpirationDate(Calendar expires)
Sets the expiration date on the relationship. |
void |
setRelation(V o)
Sets the relation object. |
void |
setRelationship(T o)
Sets the relationship object. |
void |
setRoleType(RoleType role)
Sets the role on the relationship. |
void |
setUid(Long l)
Sets the unique identifier for this class. |
String |
toString()
Returns a String representation of this data relation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.ed.DataObject |
|---|
getUid |
| Field Detail |
|---|
private static final long serialVersionUID
protected Long uid
protected T extends DirectoryObject owner
protected V extends DirectoryObject dependent
protected Calendar creationDate
protected String createdBy
protected Calendar expirationDate
protected RoleType roleType
| Constructor Detail |
|---|
public AbstractDataRelation()
| Method Detail |
|---|
public void setUid(Long l)
setUid in interface DataObjectl - Unique identifier.public V getRelation()
getRelation in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>public void setRelation(V o)
setRelation in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>o - Relation.public T getRelationship()
getRelationship in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>public void setRelationship(T o)
setRelationship in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>o - Relationship.public Calendar getCreationDate()
getCreationDate in interface DataObjectCalendarpublic void setCreationDate(Calendar created)
setCreationDate in interface DataObjectcreated - Calendarpublic String getCreatedBy()
getCreatedBy in interface DataObjectStringpublic void setCreatedBy(String s)
setCreatedBy in interface DataObjects - Stringpublic Calendar getExpirationDate()
getExpirationDate in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>public void setExpirationDate(Calendar expires)
setExpirationDate in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>expires - Relationship expiration date.public RoleType getRoleType()
getRoleType in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>public void setRoleType(RoleType role)
setRoleType in interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>role - Relationship role.public int compareTo(DataRelation other)
other - Relation to compare with this one.
public String toString()
toString in class ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||