Author: tchemit Date: 2013-05-01 15:16:06 +0200 (Wed, 01 May 2013) New Revision: 902 Url: http://forge.codelutin.com/projects/tutti/repository/revisions/902 Log: improve NoDbImpl implementation Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java =================================================================== --- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java 2013-04-30 20:56:38 UTC (rev 901) +++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java 2013-05-01 13:16:06 UTC (rev 902) @@ -68,498 +68,498 @@ @Override public void clearAllCaches() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllProgramZone() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllCountry() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllHarbour() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllFishingOperationStrata(String zoneId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllFishingOperationSubStrata(String zoneId, String strataId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiLocation> getAllFishingOperationLocation(String zoneId, String strataId, String subStrataId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Vessel> getAllScientificVessel() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Vessel> getAllFishingVessel() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Species> getAllSpecies() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Species> getAllReferentSpecies() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Species> getAllSpecies(TuttiProtocol protocol) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Species> getAllReferentSpecies(TuttiProtocol protocol) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Species getSpeciesByReferenceTaxonIdWithVernacularCode(Integer referenceTaxonId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Caracteristic> getAllCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Caracteristic> getAllNumericCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getSizeCategoryCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getSexCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getSortedUnsortedCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getMaturityCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getAgeCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getMarineLitterCategoryCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getMarineLitterSizeCategoryCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getVerticalOpeningCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getHorizontalOpeningWingCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getHorizontalOpeningDoorCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getDeadOrAliveCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getSampleIdCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getOtolitheIdCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getPmfmIdCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Caracteristic getWeightMeasuredCaracteristic() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public boolean isTemporary(TuttiReferentialEntity entity) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Gear> getAllScientificGear() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Gear> getAllFishingGear() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Person> getAllPerson() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Person getPerson(Integer personId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Gear getGear(Integer gearCode) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Vessel getVessel(String vesselCode) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Species> importTemporarySpecies(List<Species> species) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Vessel> importTemporaryVessel(List<Vessel> vessels) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Person> importTemporaryPerson(List<Person> persons) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Gear> importTemporaryGear(List<Gear> gears) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<ObjectType> getAllObjectType() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public ObjectType getObjectType(String objectTypeCode) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Program> getAllProgram() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Program getProgram(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Program createProgram(Program bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Program saveProgram(Program bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Cruise> getAllCruise(String programId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Cruise getCruise(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Cruise createCruise(Cruise bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Cruise saveCruise(Cruise bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<String> getAllProtocolNames() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<TuttiProtocol> getAllProtocol() { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public boolean isProtocolExist(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public TuttiProtocol getProtocol(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public TuttiProtocol createProtocol(TuttiProtocol bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public TuttiProtocol saveProtocol(TuttiProtocol bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteProtocol(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<FishingOperation> getAllFishingOperation(String cruiseId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public FishingOperation getFishingOperation(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public FishingOperation createFishingOperation(FishingOperation bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public FishingOperation saveFishingOperation(FishingOperation bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public CatchBatch getCatchBatchFromFishingOperation(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public CatchBatch createCatchBatch(CatchBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public CatchBatch saveCatchBatch(CatchBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public BatchContainer<SpeciesBatch> getRootSpeciesBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public SpeciesBatch createSpeciesBatch(SpeciesBatch bean, String parentBatchId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public SpeciesBatch saveSpeciesBatch(SpeciesBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteSpeciesBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteSpeciesSubBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void changeSpeciesBatchSpecies(String batchId, Species species) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<SpeciesBatchFrequency> getAllSpeciesBatchFrequency(String speciesBatchId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<SpeciesBatchFrequency> saveSpeciesBatchFrequency(String speciesBatchId, List<SpeciesBatchFrequency> frequencies) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public BatchContainer<BenthosBatch> getRootBenthosBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public BenthosBatch createBenthosBatch(BenthosBatch bean, String parentBatchId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public BenthosBatch saveBenthosBatch(BenthosBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteBenthosBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteBenthosSubBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void changeBenthosBatchSpecies(String batchId, Species species) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<BenthosBatchFrequency> getAllBenthosBatchFrequency(String benthosBatchId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<BenthosBatchFrequency> saveBenthosBatchFrequency(String benthosBatchId, List<BenthosBatchFrequency> frequencies) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<PlanktonBatch> getAllPlanktonBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public PlanktonBatch createPlanktonBatch(PlanktonBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public PlanktonBatch savePlanktonBatch(PlanktonBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deletePlanktonBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public BatchContainer<MarineLitterBatch> getRootMarineLitterBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public MarineLitterBatch createMarineLitterBatch(MarineLitterBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public MarineLitterBatch saveMarineLitterBatch(MarineLitterBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteMarineLitterBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<AccidentalBatch> getAllAccidentalBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public AccidentalBatch createAccidentalBatch(AccidentalBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public AccidentalBatch saveAccidentalBatch(AccidentalBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteAccidentalBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public List<Attachment> getAllAttachments(AttachementObjectTypeEnum objectType, Integer objectId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public File getAttachmentFile(String attachmentId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Attachment createAttachment(Attachment attachment, File file) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public Attachment saveAttachment(Attachment attachment) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteAttachment(String attachmentId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } //------------------------------------------------------------------------// @@ -568,22 +568,22 @@ @Override public List<IndividualObservationBatch> getAllIndividualObservationBatch(String fishingOperationId) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public IndividualObservationBatch createIndividualObservationBatch(IndividualObservationBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public IndividualObservationBatch saveIndividualObservationBatch(IndividualObservationBatch bean) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override public void deleteIndividualObservationBatch(String id) { - throw new RuntimeException("method not implemented"); + throw notImplemented(); } @Override @@ -593,4 +593,8 @@ @Override public void close() throws IOException { } + + protected RuntimeException notImplemented() { + return new RuntimeException("method not implemented"); + } }
participants (1)
-
tchemit@users.forge.codelutin.com