de.fhkl.zw.mkup.rattrap.entity
Class IpHostname

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.entity.AbstractEntity
      extended by de.fhkl.zw.mkup.rattrap.entity.IpHostname

public class IpHostname
extends AbstractEntity

Author:
rob this class encapsulates persistence of the AccessMethod entity. note: we implemented this class, but somehow there is no use for it within the system.. ;-)

Constructor Summary
IpHostname()
           
 
Method Summary
 void delete()
           
 java.lang.String getHostname()
           
 java.lang.String getIp()
           
 void insert()
           
 void load(java.lang.String ip, java.lang.String hostname)
           
 void setHostname(java.lang.String hostname)
           
 void setIp(java.lang.String ip)
           
 void update()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpHostname

public IpHostname()
Method Detail

load

public void load(java.lang.String ip,
                 java.lang.String hostname)
          throws EntityNotFoundException
Throws:
EntityNotFoundException

insert

public void insert()
            throws java.sql.SQLException
Specified by:
insert in class AbstractEntity
Throws:
java.sql.SQLException

update

public void update()
            throws java.sql.SQLException
Specified by:
update in class AbstractEntity
Throws:
java.sql.SQLException

delete

public void delete()
            throws java.sql.SQLException
Specified by:
delete in class AbstractEntity
Throws:
java.sql.SQLException

getHostname

public java.lang.String getHostname()
Returns:
Returns the hostname.

setHostname

public void setHostname(java.lang.String hostname)
Parameters:
hostname - The hostname to set.

getIp

public java.lang.String getIp()
Returns:
Returns the ip.

setIp

public void setIp(java.lang.String ip)
Parameters:
ip - The ip to set.