@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 IIdGenerator
public long getNextGId()
getNextGId
in interface IIdGenerator
public long getFeatureId()
getFeatureId
in interface IIdGenerator
public long getGid()
getGid
in interface IIdGenerator
@PostConstruct public void sync()
IIdGenerator
sync
in interface IIdGenerator
public void setGisFeatureDao(IGisFeatureDao gisFeatureDao)
gisFeatureDao
- the gisFeatureDao to setpublic void setOpenStreetMapDao(IOpenStreetMapDao openStreetMapDao)
openStreetMapDao
- the openStreetMapDao to setCopyright © 2015. All rights reserved.