org.nhindirect.config.model
Class DNSRecord

java.lang.Object
  extended by org.nhindirect.config.model.DNSRecord

public class DNSRecord
extends Object

DNS Records

Since:
1.0
Author:
Greg Meyer

Constructor Summary
DNSRecord()
          Empty constructor
 
Method Summary
 Calendar getCreateTime()
          Gets the date/time that the DNS record was created in the system.
 byte[] getData()
          Sets the raw data of the DNS record.
 int getDclass()
          Gets the DNS record Dclass.
 long getId()
          Gets the internal id of the record.
 String getName()
          Gets the DNS name associated with the record.
 long getTtl()
          Gets the DNS record's time to live.
 int getType()
          Gets the DNS record type.
 void setCreateTime(Calendar createTime)
          Sets the date/time that the DNS record was created in the system.
 void setData(byte[] data)
          Sets the raw data of the DNS record.
 void setDclass(int dclass)
          Sets the DNS record Dclass.
 void setId(long id)
          Sets the internal id of the record.
 void setName(String name)
          Sets the DNS name associated with the record.
 void setTtl(long ttl)
          Sets the DNS record's time to live.
 void setType(int type)
          Sets the DNS record type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSRecord

public DNSRecord()
Empty constructor

Method Detail

getId

public long getId()
Gets the internal id of the record.

Returns:
The internal id of the record.

setId

public void setId(long id)
Sets the internal id of the record.

Parameters:
id - The internal id of the record.

getName

public String getName()
Gets the DNS name associated with the record.

Returns:
The DNS name associated with the record.

setName

public void setName(String name)
Sets the DNS name associated with the record.

Parameters:
name - The DNS name associated with the record.

getType

public int getType()
Gets the DNS record type.

Returns:
The DNS record type.

setType

public void setType(int type)
Sets the DNS record type.

Parameters:
type - The DNS record type.

getDclass

public int getDclass()
Gets the DNS record Dclass.

Returns:
The DNS record Dclass.

setDclass

public void setDclass(int dclass)
Sets the DNS record Dclass.

Parameters:
dclass - The DNS record Dclass.

getTtl

public long getTtl()
Gets the DNS record's time to live.

Returns:
The DNS record's time to live.

setTtl

public void setTtl(long ttl)
Sets the DNS record's time to live.

Parameters:
ttl - The DNS record's time to live.

getData

public byte[] getData()
Sets the raw data of the DNS record.

Returns:
The raw data of the DNS record.

setData

public void setData(byte[] data)
Sets the raw data of the DNS record.

Parameters:
data - The raw data of the DNS record.

getCreateTime

public Calendar getCreateTime()
Gets the date/time that the DNS record was created in the system.

Returns:
The date/time that the DNS record was created in the system.

setCreateTime

public void setCreateTime(Calendar createTime)
Sets the date/time that the DNS record was created in the system.

Parameters:
createTime - The date/time that the DNS record was created in the system.


Copyright © 2014. All Rights Reserved.