Package fr.ifremer.isisfish.entities
Class RegionImportJson.RegionMergeDatabase
java.lang.Object
fr.ifremer.isisfish.entities.RegionImportJson.RegionMergeDatabase
- All Implemented Interfaces:
RegionImportJson.RegionMerge
- Enclosing class:
- RegionImportJson
public static class RegionImportJson.RegionMergeDatabase
extends Object
implements RegionImportJson.RegionMerge
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Object used to keep recurent answer (abort, import All, reuse All, ...)Nested classes/interfaces inherited from interface fr.ifremer.isisfish.entities.RegionImportJson.RegionMerge
RegionImportJson.RegionMerge.Answer, RegionImportJson.RegionMerge.AnswerType, RegionImportJson.RegionMerge.AutoAnswerType
-
Field Summary
Modifier and TypeFieldDescriptionprotected RegionImportJson.RegionMerge.Answer
protected org.nuiton.topia.TopiaContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected RegionImportJson.RegionMerge.AnswerType
ask
(RegionImportJson.RegionMergeDatabase.RegionMergeContext context, String toString, Map<String, Object> details, Collection<org.nuiton.topia.persistence.TopiaEntity> possible, RegionImportJson.RegionMerge.AnswerType... disallow) choice
(String id, String toString, Map<String, Object> details, RegionImportJson.RegionMerge.AnswerType... disallow) Ask how to merge entityboolean
isAbort()
protected boolean
isAcceptableAnswer
(RegionImportJson.RegionMerge.AnswerType type, RegionImportJson.RegionMerge.AnswerType... disallow) void
setEntities
(Map<String, org.nuiton.topia.persistence.TopiaEntity> entities)
-
Field Details
-
tx
protected org.nuiton.topia.TopiaContext tx -
context
-
lastAnswer
-
entities
-
-
Constructor Details
-
RegionMergeDatabase
public RegionMergeDatabase(org.nuiton.topia.TopiaContext tx)
-
-
Method Details
-
isAcceptableAnswer
protected boolean isAcceptableAnswer(RegionImportJson.RegionMerge.AnswerType type, RegionImportJson.RegionMerge.AnswerType... disallow) -
setEntities
- Specified by:
setEntities
in interfaceRegionImportJson.RegionMerge
-
choice
public RegionImportJson.RegionMerge.Answer choice(String id, String toString, Map<String, Object> details, RegionImportJson.RegionMerge.AnswerType... disallow) Description copied from interface:RegionImportJson.RegionMerge
Ask how to merge entity- Specified by:
choice
in interfaceRegionImportJson.RegionMerge
- Returns:
-
ask
protected RegionImportJson.RegionMerge.AnswerType ask(RegionImportJson.RegionMergeDatabase.RegionMergeContext context, String toString, Map<String, Object> details, Collection<org.nuiton.topia.persistence.TopiaEntity> possible, RegionImportJson.RegionMerge.AnswerType... disallow) -
isAbort
public boolean isAbort()- Specified by:
isAbort
in interfaceRegionImportJson.RegionMerge
-