Custom storage
Create your custom storage
StorageManager manager = this.getProvider(StorageManager.class);
manager.setCustomStorage(new IStorage() {
@Override
public void updateTransaction(List<Transaction> transactions) {
// TODO Auto-generated method stub
}
@Override
public void updateItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
// TODO Auto-generated method stub
}
@Override
public void update(AuctionPlugin plugin, StorageType type) {
// TODO Auto-generated method stub
}
@Override
public void storeTransaction(Transaction transaction) {
// TODO Auto-generated method stub
}
@Override
public void saveTransactions(List<Transaction> transactions) {
// TODO Auto-generated method stub
}
@Override
public void saveItems(AuctionPlugin plugin, List<AuctionItem> auctionItems, StorageType type) {
// TODO Auto-generated method stub
}
@Override
public void saveItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
// TODO Auto-generated method stub
}
@Override
public void save(AuctionPlugin plugin) {
// TODO Auto-generated method stub
}
@Override
public void removeItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
// TODO Auto-generated method stub
}
@Override
public void load(StorageManager storageManager, AuctionPlugin plugin) {
// TODO Auto-generated method stub
}
@Override
public List<Transaction> getTransactions() {
// TODO Auto-generated method stub
return null;
}
@Override
public List<AuctionItem> getItems(AuctionPlugin plugin, StorageType type) {
// TODO Auto-generated method stub
return null;
}
});
​
Copy link