se.unlogic.eagledns.zoneproviders.db.beans
Class DBZone

java.lang.Object
  extended by se.unlogic.eagledns.zoneproviders.db.beans.DBZone
All Implemented Interfaces:
Elementable, XMLable

@XMLElement
@Table(name="zones")
public class DBZone
extends Object
implements Elementable


Constructor Summary
DBZone()
           
DBZone(org.xbill.DNS.Zone zone, boolean secondary)
           
 
Method Summary
 String getAdminEmail()
           
 String getDclass()
           
 Timestamp getDownloaded()
           
 Long getExpire()
           
 Long getMinimum()
           
 String getName()
           
 String getPrimaryDNS()
           
 List<DBRecord> getRecords()
           
 Long getRefresh()
           
 Long getRetry()
           
 Long getSerial()
           
 Long getTtl()
           
 Integer getZoneID()
           
 boolean isSecondary()
           
 void parse(org.xbill.DNS.Zone zone, boolean secondary)
           
 void setAdminEmail(String adminEmail)
           
 void setDclass(String dclass)
           
 void setDownloaded(Timestamp zoneDownloaded)
           
 void setExpire(Long expire)
           
 void setMinimum(Long minimum)
           
 void setName(String name)
           
 void setPrimaryDNS(String primaryDns)
           
 void setRecords(List<DBRecord> records)
           
 void setRefresh(Long refresh)
           
 void setRetry(Long retry)
           
 void setSecondary(boolean secondary)
           
 void setSerial(Long serial)
           
 void setTtl(Long ttl)
           
 void setZoneID(Integer zoneID)
           
 String toString()
           
 Element toXML(Document doc)
           
 org.xbill.DNS.Zone toZone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBZone

public DBZone()

DBZone

public DBZone(org.xbill.DNS.Zone zone,
              boolean secondary)
Method Detail

parse

public void parse(org.xbill.DNS.Zone zone,
                  boolean secondary)

getName

public String getName()

setName

public void setName(String name)

getDclass

public String getDclass()

setDclass

public void setDclass(String dclass)

getTtl

public Long getTtl()

setTtl

public void setTtl(Long ttl)

getPrimaryDNS

public String getPrimaryDNS()

setPrimaryDNS

public void setPrimaryDNS(String primaryDns)

getAdminEmail

public String getAdminEmail()

setAdminEmail

public void setAdminEmail(String adminEmail)

getSerial

public Long getSerial()

setSerial

public void setSerial(Long serial)

getRefresh

public Long getRefresh()

setRefresh

public void setRefresh(Long refresh)

getRetry

public Long getRetry()

setRetry

public void setRetry(Long retry)

getExpire

public Long getExpire()

setExpire

public void setExpire(Long expire)

getMinimum

public Long getMinimum()

setMinimum

public void setMinimum(Long minimum)

getRecords

public List<DBRecord> getRecords()

setRecords

public void setRecords(List<DBRecord> records)

getZoneID

public Integer getZoneID()

setZoneID

public void setZoneID(Integer zoneID)

toXML

public Element toXML(Document doc)
Specified by:
toXML in interface Elementable
Specified by:
toXML in interface XMLable

toZone

public org.xbill.DNS.Zone toZone()
                          throws IOException
Throws:
IOException

isSecondary

public boolean isSecondary()

setSecondary

public void setSecondary(boolean secondary)

toString

public String toString()
Overrides:
toString in class Object

getDownloaded

public Timestamp getDownloaded()

setDownloaded

public void setDownloaded(Timestamp zoneDownloaded)


Copyright © 2011. All Rights Reserved.