mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
Delete obsolete corrupted source files
This commit is contained in:
parent
e8ed11b0c5
commit
53e843be58
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
|
||||
* Haulmont Technology proprietary and confidential.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
package com.haulmont.cuba.core.app.cache;
|
||||
|
||||
/**
|
||||
* <p>$Id$</p>
|
||||
*
|
||||
* @author artamonov
|
||||
*/
|
||||
public class CacheException extends Exception {
|
||||
private static final long serialVersionUID = 5306831032981161592L;
|
||||
|
||||
public CacheException() {
|
||||
}
|
||||
|
||||
public CacheException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public CacheException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public CacheException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
|
||||
* Haulmont Technology proprietary and confidential.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
package com.haulmont.cuba.core.app.cache;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Select items from CacheSet
|
||||
* <p>$Id$</p>
|
||||
*
|
||||
* @author artamonov
|
||||
*/
|
||||
public interface CacheSelector {
|
||||
Collection select(CacheSet cacheSet);
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
|
||||
* Haulmont Technology proprietary and confidential.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
package com.haulmont.cuba.core.app.cache;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.collections.Predicate;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Items set for ObjectsCache
|
||||
* <p>$Id$</p>
|
||||
*
|
||||
* @author artamonov
|
||||
*/
|
||||
public class CacheSet {
|
||||
private Collection items;
|
||||
|
||||
public CacheSet(Collection items) {
|
||||
this.items = items;
|
||||
}
|
||||
|
||||
public Collection getItems() {
|
||||
return items;
|
||||
}
|
||||
|
||||
public CacheSet query(Predicate selector) {
|
||||
CacheSet resultSet;
|
||||
if (selector != null) {
|
||||
Collection setItems = CollectionUtils.select(items, selector);
|
||||
resultSet = new CacheSet(setItems);
|
||||
} else
|
||||
resultSet = new CacheSet(items);
|
||||
return resultSet;
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Haulmont Technology Ltd. All Rights Reserved.
|
||||
* Haulmont Technology proprietary and confidential.
|
||||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
package com.haulmont.cuba.core.app.cache;
|
||||
|
||||
/**
|
||||
* <p>$Id$</p>
|
||||
*
|
||||
* @author artamonov
|
||||
*/
|
||||
public class CacheStatistics {
|
||||
}
|
Loading…
Reference in New Issue
Block a user