se.l4.silo.structured.ObjectEntity Maven / Gradle / Ivy
The newest version!
package se.l4.silo.structured;
import java.util.Optional;
import se.l4.silo.Entity;
import se.l4.silo.FetchResult;
import se.l4.silo.query.Query;
import se.l4.silo.query.QueryType;
/**
* Entity for storing and retrieving objects.
*
* @author Andreas Holstenson
*
* @param
*/
public interface ObjectEntity
extends Entity
{
/**
* Get an object.
*
* @param id
* @return
*/
Optional get(Object id);
/**
* Delete the given object.
*
* @param id
*/
void deleteViaId(Object id);
/**
* Delete the given object.
*
* @param object
* the object to delete
*/
void delete(T object);
/**
* Store an object.
*
* @param data
*/
void store(T data);
/**
* Query the the query engine.
*
* @param index
* @return
*/
© 2015 - 2025 Weber Informatics LLC | Privacy Policy