@Test public void testDelete() { DeleteBuilder<Etl1t> builder = taskService.delete(Etl1t.class); assertNotNull(builder); }
@Override public <T extends DataObject> DeleteBuilder<T> delete(Class<T> type) { ObjEntity entity = targetCayenneService.entityResolver().getObjEntity(type); if (entity == null) { throw new LmRuntimeException("Java class " + type.getName() + " is not mapped in Cayenne"); } TargetEntity targetEntity = targetEntityMap.get(entity); MapperBuilder mapperBuilder = new MapperBuilder(entity, targetEntity, keyAdapterFactory); return new DefaultDeleteBuilder<>( type, targetCayenneService, tokenManager, this, mapperBuilder); }
TaskService implements ITaskService { @Override public <T extends DataObject> DeleteBuilder<T> delete(Class<T> type) { ObjEntity entity = targetCayenneService.entityResolver().getObjEntity(type); if (entity == null) { throw new LmRuntimeException("Java class " + type.getName() + " is not mapped in Cayenne"); } TargetEntity targetEntity = targetEntityMap.get(entity); MapperBuilder mapperBuilder = new MapperBuilder(entity, targetEntity, keyAdapterFactory); return new DefaultDeleteBuilder<>( type, targetCayenneService, tokenManager, this, mapperBuilder); } }
TaskService implements ITaskService { @Override public <T extends DataObject> DeleteBuilder<T> delete(Class<T> type) { ObjEntity entity = targetCayenneService.entityResolver().getObjEntity(type); if (entity == null) { throw new LmRuntimeException("Java class " + type.getName() + " is not mapped in Cayenne"); } TargetEntity targetEntity = targetEntityMap.get(entity); MapperBuilder mapperBuilder = new MapperBuilder(entity, targetEntity, keyAdapterFactory); return new DefaultDeleteBuilder<>( type, targetCayenneService, tokenManager, this, mapperBuilder); } TaskService(
            @Inject IExtractorService extractorService,
            @Inject ITargetCayenneService targetCayenneService,
            @Inject ITokenManager tokenManager,
            @Inject IKeyAdapterFactory keyAdapterFactory,
            @Inject TargetEntityMap targetEntityMap,
            @Inject ITargetPropertyWriterService writerService,
            @Inject ValueConverterFactory valueConverterFactory); }
TaskService implements ITaskService { @Override public <T extends DataObject> DeleteBuilder<T> delete(Class<T> type) { ObjEntity entity = targetCayenneService.entityResolver().getObjEntity(type); if (entity == null) { throw new LmRuntimeException("Java class " + type.getName() + " is not mapped in Cayenne"); } TargetEntity targetEntity = targetEntityMap.get(entity); MapperBuilder mapperBuilder = new MapperBuilder(entity, targetEntity, keyAdapterFactory); return new DefaultDeleteBuilder<>( type, targetCayenneService, tokenManager, this, mapperBuilder); } TaskService(
            @Inject IExtractorService extractorService,
            @Inject ITargetCayenneService targetCayenneService,
            @Inject ITokenManager tokenManager,
            @Inject IKeyAdapterFactory keyAdapterFactory,
            @Inject TargetEntityMap targetEntityMap,
            @Inject ITargetPropertyWriterService writerService,
            @Inject ValueConverterFactory valueConverterFactory); @Override CreateBuilder<T> create(Class<T> type); @Override CreateOrUpdateBuilder<T> createOrUpdate(Class<T> type); @Override SourceKeysBuilder extractSourceKeys(Class<T> type); @Override SourceKeysBuilder extractSourceKeys(String targetEntityName); @Override DeleteBuilder<T> delete(Class<T> type); }
TaskService implements ITaskService { @Override public <T extends DataObject> DeleteBuilder<T> delete(Class<T> type) { ObjEntity entity = targetCayenneService.entityResolver().getObjEntity(type); if (entity == null) { throw new LmRuntimeException("Java class " + type.getName() + " is not mapped in Cayenne"); } TargetEntity targetEntity = targetEntityMap.get(entity); MapperBuilder mapperBuilder = new MapperBuilder(entity, targetEntity, keyAdapterFactory); return new DefaultDeleteBuilder<>( type, targetCayenneService, tokenManager, this, mapperBuilder); } TaskService(
            @Inject IExtractorService extractorService,
            @Inject ITargetCayenneService targetCayenneService,
            @Inject ITokenManager tokenManager,
            @Inject IKeyAdapterFactory keyAdapterFactory,
            @Inject TargetEntityMap targetEntityMap,
            @Inject ITargetPropertyWriterService writerService,
            @Inject ValueConverterFactory valueConverterFactory); @Override CreateBuilder<T> create(Class<T> type); @Override CreateOrUpdateBuilder<T> createOrUpdate(Class<T> type); @Override SourceKeysBuilder extractSourceKeys(Class<T> type); @Override SourceKeysBuilder extractSourceKeys(String targetEntityName); @Override DeleteBuilder<T> delete(Class<T> type);  }