org.deegree.io.datastore.idgenerator
Class ParentIDGenerator
java.lang.Object
  
org.deegree.io.datastore.idgenerator.IdGenerator
      
org.deegree.io.datastore.idgenerator.ParentIDGenerator
public class ParentIDGenerator
- extends IdGenerator
 
IdGenerator that takes the FeatureId of the parent feature.
- Version:
 
  - $Revision: 6588 $, $Date: 2007-04-11 17:31:29 +0200 (Mi, 11 Apr 2007) $
 
- Author:
 
  - Markus Schneider , last edited by: $Author: mschneider $
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ParentIDGenerator
public ParentIDGenerator(Properties params)
- Creates a new 
ParentIDGenerator instance.
- Parameters:
 params - configuration parameters
 
getNewId
public String getNewId(DatastoreTransaction ta)
                throws IdGenerationException
- Returns a new primary key.
- Specified by:
 getNewId in class IdGenerator
 
- Parameters:
 ta - datastore transaction (context)
- Returns:
 - a new primary key.
 - Throws:
 IdGenerationException - if the generation of the id could not be performed
 
 
getNewId
public FeatureId getNewId(MappedFeatureType ft,
                          DatastoreTransaction ta)
                   throws IdGenerationException
- Returns a new id for a feature of the given type.
- Specified by:
 getNewId in class IdGenerator
 
- Parameters:
 ft - (mapped) feature type (irrelevant for this generator)ta - datastore transaction (context)
- Returns:
 - a new feature id.
 - Throws:
 IdGenerationException
 
 
				an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net