@Service public class IdGenerator extends Object implements IIdGenerator
| Modifier and Type | Field and Description |
|---|---|
static long |
FEATUREID_INCREMENT_NO_CONFLICT
shift value to allow the addition of geonames features after import
|
static long |
OPENSTREETMAP_GID_NO_CONFLICT
shift value to allow the addition of openstreetmap features after import
|
| Constructor and Description |
|---|
IdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
long |
getFeatureId() |
long |
getGid() |
long |
getNextFeatureId() |
long |
getNextGId() |
void |
setGisFeatureDao(IGisFeatureDao gisFeatureDao) |
void |
setOpenStreetMapDao(IOpenStreetMapDao openStreetMapDao) |
void |
sync()
synchronise the generator with the database
|
public static final long FEATUREID_INCREMENT_NO_CONFLICT
public static final long OPENSTREETMAP_GID_NO_CONFLICT
public long getNextFeatureId()
getNextFeatureId in interface IIdGeneratorpublic long getNextGId()
getNextGId in interface IIdGeneratorpublic long getFeatureId()
getFeatureId in interface IIdGeneratorpublic long getGid()
getGid in interface IIdGenerator@PostConstruct public void sync()
IIdGeneratorsync in interface IIdGeneratorpublic void setGisFeatureDao(IGisFeatureDao gisFeatureDao)
gisFeatureDao - the gisFeatureDao to setpublic void setOpenStreetMapDao(IOpenStreetMapDao openStreetMapDao)
openStreetMapDao - the openStreetMapDao to setCopyright © 2015. All rights reserved.