|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.soa.id.DefaultIDGeneratorService
public class DefaultIDGeneratorService
default ID generator. A data modeller can specify parameters for prefix and keys to exclude from generation.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Constructor Summary | |
---|---|
DefaultIDGeneratorService()
|
Method Summary | |
---|---|
void |
excludeKey(java.lang.String keyToExclude)
excludes a key as a possible value to generate. |
java.lang.String |
generateKey(Project35FormContext project35FormContext)
generates an identifier value that Project35 can insert into a field that takes ID values |
Parameter[] |
getInitialisationParameters()
|
Parameter[] |
getParameters()
|
void |
initialiseService(java.net.URL resourceDirectory,
Parameter[] parameters)
|
void |
setIDPrefix(java.lang.String identifierPrefix)
set the prefix of identifier keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIDGeneratorService()
Method Detail |
---|
public void setIDPrefix(java.lang.String identifierPrefix)
identifierPrefix
- the prefix that is used
to create key valuespublic void excludeKey(java.lang.String keyToExclude)
IDGeneratorService
excludeKey
in interface IDGeneratorService
keyToExclude
- an identifier value that can't be generated by the
ID Generator servicepublic Parameter[] getParameters()
public java.lang.String generateKey(Project35FormContext project35FormContext)
IDGeneratorService
generateKey
in interface IDGeneratorService
project35FormContext
- collection of environment variables that
can be used to access different parts of the Project35 application.
Information in these variables may help determine the best identifier
to return.public Parameter[] getInitialisationParameters()
getInitialisationParameters
in interface ServiceClass
public void initialiseService(java.net.URL resourceDirectory, Parameter[] parameters) throws java.lang.Exception
initialiseService
in interface ServiceClass
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |