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

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

@XMLElement
@Table(name="records")
public class DBRecord
extends Object
implements Elementable


Constructor Summary
DBRecord()
           
DBRecord(org.xbill.DNS.Record record, org.xbill.DNS.Name origin, long zoneTTL)
           
 
Method Summary
 String getContent()
           
 String getDclass()
           
 String getName()
           
 org.xbill.DNS.Record getRecord(long zoneTTL, org.xbill.DNS.Name origin)
           
 Integer getRecordID()
           
 Long getTtl()
           
 String getType()
           
 DBZone getZone()
           
 void setContent(String content)
           
 void setDclass(String dclass)
           
 void setName(String name)
           
 void setRecordID(Integer recordID)
           
 void setTtl(Long ttl)
           
 void setType(String type)
           
 void setZone(DBZone zone)
           
 String toString()
           
 Element toXML(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBRecord

public DBRecord()

DBRecord

public DBRecord(org.xbill.DNS.Record record,
                org.xbill.DNS.Name origin,
                long zoneTTL)
Method Detail

getRecordID

public Integer getRecordID()

setRecordID

public void setRecordID(Integer recordID)

getName

public String getName()

setName

public void setName(String name)

getType

public String getType()

setType

public void setType(String type)

getContent

public String getContent()

setContent

public void setContent(String content)

getTtl

public Long getTtl()

setTtl

public void setTtl(Long ttl)

toXML

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

getZone

public DBZone getZone()

setZone

public void setZone(DBZone zone)

getRecord

public org.xbill.DNS.Record getRecord(long zoneTTL,
                                      org.xbill.DNS.Name origin)
                               throws org.xbill.DNS.TextParseException,
                                      IOException
Throws:
org.xbill.DNS.TextParseException
IOException

getDclass

public String getDclass()

setDclass

public void setDclass(String dclass)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.