psman.data
Class DataField

java.lang.Object
  |
  +--psman.data.DataField

public final class DataField
extends java.lang.Object

The personal data field.

Version:
$Id: DataField.java,v 1.4 2003/11/04 18:00:48 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
DataField(int id, psman.data.TPartner owner, java.lang.String name, byte[] value, java.util.Date validFrom, java.util.Date validUntil)
          Constructor, only for existing data fields.
DataField(psman.data.TPartner owner, java.lang.String name, byte[] value, java.util.Date validFrom, java.util.Date validUntil)
          Constructor, only for new data fields.
 
Method Summary
 boolean equals(psman.data.DataField data)
           
 boolean equals(java.lang.Object o)
           
 int getID()
          Return the database ID of this data field
 java.lang.String getName()
          Return the name of this data field.
 psman.data.TPartner getOwner()
          Return the owner of this data field
 java.util.Date getValidFrom()
          Return the date, this data field is valid from.
 java.util.Date getValidUntil()
          Return the date this data field is valid until.
 byte[] getValue()
          Return the value of this data field.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this data field
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataField

public DataField(int id,
                 psman.data.TPartner owner,
                 java.lang.String name,
                 byte[] value,
                 java.util.Date validFrom,
                 java.util.Date validUntil)
Constructor, only for existing data fields.

Parameters:
id - the database ID of this data field
owner - the owner of this data field
name - the name of this data field
value - the value of this data field
validFrom - the date this data field is valid from
validUntil - the date this data field is valid until

DataField

public DataField(psman.data.TPartner owner,
                 java.lang.String name,
                 byte[] value,
                 java.util.Date validFrom,
                 java.util.Date validUntil)
Constructor, only for new data fields.

Parameters:
owner - the owner of this data field
name - the name of this data field
value - the value of this data field
validFrom - the date this data field is valid from
validUntil - the date this data field is valid until
Method Detail

getID

public int getID()
Return the database ID of this data field

Returns:
the database ID of this data field

getOwner

public psman.data.TPartner getOwner()
Return the owner of this data field

Returns:
the owner of this data field, null if it is ourself

getName

public java.lang.String getName()
Return the name of this data field.

Returns:
the name of this data field

getValue

public byte[] getValue()
Return the value of this data field.

Returns:
the value of this data field

getValidFrom

public java.util.Date getValidFrom()
Return the date, this data field is valid from.

Returns:
the date, this data field is valid from

getValidUntil

public java.util.Date getValidUntil()
Return the date this data field is valid until.

Returns:
the date, this data field is valid until

setID

public void setID(int id)
Set the database ID of this data field

Parameters:
id - the database ID of this data field

equals

public boolean equals(psman.data.DataField data)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.