[Minor] Changed template of ElementMap to StrolchRootElement
Resources and Orders are already StrolchRootElements, so this shouldn't hurt anyone =)
This commit is contained in:
parent
42fe3b4122
commit
999a8d4369
|
@ -19,7 +19,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import li.strolch.exception.StrolchException;
|
||||
import li.strolch.model.StrolchElement;
|
||||
import li.strolch.model.StrolchRootElement;
|
||||
import li.strolch.model.parameter.Parameter;
|
||||
import li.strolch.model.parameter.StringParameter;
|
||||
import li.strolch.persistence.api.StrolchTransaction;
|
||||
|
@ -28,7 +28,7 @@ import li.strolch.runtime.StrolchConstants;
|
|||
/**
|
||||
* @author Robert von Burg <eitch@eitchnet.ch>
|
||||
*/
|
||||
public interface ElementMap<T extends StrolchElement> {
|
||||
public interface ElementMap<T extends StrolchRootElement> {
|
||||
|
||||
public boolean hasType(StrolchTransaction tx, String type);
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
|
||||
import li.strolch.agent.api.ElementMap;
|
||||
import li.strolch.model.StrolchElement;
|
||||
import li.strolch.model.StrolchRootElement;
|
||||
import li.strolch.persistence.api.StrolchDao;
|
||||
import li.strolch.persistence.api.StrolchPersistenceException;
|
||||
import li.strolch.persistence.api.StrolchTransaction;
|
||||
|
@ -39,7 +39,7 @@ import ch.eitchnet.utils.dbc.DBC;
|
|||
/**
|
||||
* @author Robert von Burg <eitch@eitchnet.ch>
|
||||
*/
|
||||
public abstract class CachedElementMap<T extends StrolchElement> implements ElementMap<T> {
|
||||
public abstract class CachedElementMap<T extends StrolchRootElement> implements ElementMap<T> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(CachedElementMap.class);
|
||||
private Set<String> allKeys;
|
||||
|
@ -208,7 +208,7 @@ public abstract class CachedElementMap<T extends StrolchElement> implements Elem
|
|||
|
||||
/**
|
||||
* Special method used when starting the container to cache the values. Not to be used anywhere else but from the
|
||||
* {@link CachedRealm} and of course through the {@link #add(StrolchTransaction, StrolchElement)}-call to not
|
||||
* {@link CachedRealm} and of course through the {@link #add(StrolchTransaction, StrolchRootElement)}-call to not
|
||||
* duplicate code
|
||||
*
|
||||
* @param element
|
||||
|
|
|
@ -4,7 +4,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import li.strolch.agent.api.ElementMap;
|
||||
import li.strolch.model.StrolchElement;
|
||||
import li.strolch.model.StrolchRootElement;
|
||||
import li.strolch.persistence.api.StrolchDao;
|
||||
import li.strolch.persistence.api.StrolchTransaction;
|
||||
import li.strolch.runtime.StrolchConstants;
|
||||
|
@ -14,7 +14,7 @@ import li.strolch.runtime.StrolchConstants;
|
|||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public abstract class TransactionalElementMap<T extends StrolchElement> implements ElementMap<T> {
|
||||
public abstract class TransactionalElementMap<T extends StrolchRootElement> implements ElementMap<T> {
|
||||
|
||||
protected abstract StrolchDao<T> getDao(StrolchTransaction tx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue