@Test public void testSave() { OrientKeyStoreData entity = new OrientKeyStoreData(); storageManager.save(entity); verify(entityAdapter).save(tx, entity); }
@Guarded(by = STARTED) public void save(final OrientKeyStoreData entity) { checkNotNull(entity); inTxRetry(databaseInstance).run(db -> entityAdapter.save(db, entity)); }
OrientKeyStoreStorageManager extends StateGuardLifecycleSupport implements KeyStoreStorageManager { @Guarded(by = STARTED) public void save(final OrientKeyStoreData entity) { checkNotNull(entity); inTxRetry(databaseInstance).run(db -> entityAdapter.save(db, entity)); } }
OrientKeyStoreStorageManager extends StateGuardLifecycleSupport implements KeyStoreStorageManager { @Guarded(by = STARTED) public void save(final OrientKeyStoreData entity) { checkNotNull(entity); inTxRetry(databaseInstance).run(db -> entityAdapter.save(db, entity)); } @Inject  OrientKeyStoreStorageManager(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                    final OrientKeyStoreDataEntityAdapter entityAdapter,
                                    final EventManager eventManager); }
OrientKeyStoreStorageManager extends StateGuardLifecycleSupport implements KeyStoreStorageManager { @Guarded(by = STARTED) public void save(final OrientKeyStoreData entity) { checkNotNull(entity); inTxRetry(databaseInstance).run(db -> entityAdapter.save(db, entity)); } @Inject  OrientKeyStoreStorageManager(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                    final OrientKeyStoreDataEntityAdapter entityAdapter,
                                    final EventManager eventManager); @Override @Guarded(by = STARTED) KeyStoreStorage createStorage(final String keyStoreName); @Guarded(by = STARTED) @Nullable OrientKeyStoreData load(final String keyStoreName); @Guarded(by = STARTED) void save(final OrientKeyStoreData entity); }
OrientKeyStoreStorageManager extends StateGuardLifecycleSupport implements KeyStoreStorageManager { @Guarded(by = STARTED) public void save(final OrientKeyStoreData entity) { checkNotNull(entity); inTxRetry(databaseInstance).run(db -> entityAdapter.save(db, entity)); } @Inject  OrientKeyStoreStorageManager(@Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
                                    final OrientKeyStoreDataEntityAdapter entityAdapter,
                                    final EventManager eventManager); @Override @Guarded(by = STARTED) KeyStoreStorage createStorage(final String keyStoreName); @Guarded(by = STARTED) @Nullable OrientKeyStoreData load(final String keyStoreName); @Guarded(by = STARTED) void save(final OrientKeyStoreData entity);  }