Module inet.ipaddr

Class SQLStringMatcher<T extends IPAddressStringDivisionSeries,P extends IPAddressStringWriter<T>,S extends IPAddressPartConfiguredString<T,P>>

java.lang.Object
inet.ipaddr.format.util.sql.SQLStringMatcher<T,P,S>

public class SQLStringMatcher<T extends IPAddressStringDivisionSeries,P extends IPAddressStringWriter<T>,S extends IPAddressPartConfiguredString<T,P>> extends Object
This class is intended to match part of an address when it is written with a given string. Note that a given address part can be written many ways. Also note that some of these representations can represent more than one address section.
Author:
sfoley
  • Constructor Details

    • SQLStringMatcher

      public SQLStringMatcher(S networkString, boolean isEntireAddress, IPAddressSQLTranslator translator)
  • Method Details

    • getSQLCondition

      public StringBuilder getSQLCondition(StringBuilder builder, String columnName)
      Get an SQL condition to match this address section representation
      Parameters:
      builder -
      columnName -
      Returns:
      the condition
    • toString

      public String toString()
      Overrides:
      toString in class Object