|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.datamodel.DomainOwnerInfo
public class DomainOwnerInfo
This class manages owner information about a domain. Immutable.
Constructor Summary | |
---|---|
DomainOwnerInfo(java.util.Date d,
java.lang.String info)
Create new instance. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
Compares two DomainOwnerInfo objects using dates. |
java.util.Date |
getDate()
Gets the date. |
(package private) long |
getID()
Get the ID of this ownerinfo. |
java.lang.String |
getInfo()
Gets the owner information. |
(package private) boolean |
hasID()
Check if this ownerinfo has an ID set yet (doesn't happen until the DBDAO persists it). |
(package private) void |
setID(long id)
Set the ID of this ownerinfo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainOwnerInfo(java.util.Date d, java.lang.String info)
d
- the date the owner information is registeredinfo
- the owner informationMethod Detail |
---|
public java.lang.String getInfo()
public java.util.Date getDate()
long getID()
void setID(long id)
id
- use this id for this ownerinfoboolean hasID()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- is a non-null DomainOwnerInfo.
java.lang.ClassCastException
- if other
is not an DomainOwnerInfo object.Comparable.compareTo(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |