Class SetIPLocation

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetIPLocation

public class SetIPLocation extends DAO
A Data Access Object to write IP netblock data.
Since:
5.2
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetIPLocation

      public SetIPLocation(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • write

      public void write(IPLocation loc) throws DAOException
      Writes an IP location entry to the database.
      Parameters:
      loc - an IPLocation bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(Collection<IPBlock> blocks) throws DAOException
      Writes an IP network block to the database.
      Parameters:
      blocks - a Collection of IPBlocks
      Throws:
      DAOException - if a JDBC error occurs