public class GeographicCodeManager
extends java.lang.Object
Constructor and Description |
---|
GeographicCodeManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
int |
delete(java.lang.String code) |
GeographicCode |
getTree() |
GeographicCode |
getTree(boolean destinationTitle) |
void |
importFromFile(java.lang.String data,
java.lang.String prfx,
boolean addNew,
boolean updateExist) |
void |
importFromFile(java.lang.String data,
java.lang.String prfx,
boolean addNew,
boolean updateExist,
boolean compact) |
java.util.List<GeographicCode> |
list() |
static java.util.List<java.lang.String> |
parsePrefixes(java.lang.String string,
boolean withRanges) |
void |
update(GeographicCode code) |
public GeographicCodeManager(java.sql.Connection con, int mid)
public java.util.List<GeographicCode> list() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public GeographicCode getTree(boolean destinationTitle) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public GeographicCode getTree() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void update(GeographicCode code) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public int delete(java.lang.String code) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void importFromFile(java.lang.String data, java.lang.String prfx, boolean addNew, boolean updateExist) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void importFromFile(java.lang.String data, java.lang.String prfx, boolean addNew, boolean updateExist, boolean compact) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public static java.util.List<java.lang.String> parsePrefixes(java.lang.String string, boolean withRanges) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException