Commit 78020efe authored by Andre Freyssinet's avatar Andre Freyssinet

Ghost implementation of loadAll method (Joram-362).

parent db89332b
......@@ -37,7 +37,7 @@ import java.io.RandomAccessFile;
import java.io.Serializable;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import org.objectweb.util.monolog.api.BasicLevel;
......@@ -304,12 +304,23 @@ public final class JTransaction extends BaseTransaction implements JTransactionM
}
/**
* Fills the list with all objects of the component whose name begins with the prefix.
* Returns false, this Transaction implementation does not implement an optimized loadAll method.
*
* @return false.
*/
@Override
public boolean useLoadAll() {
return false;
}
/**
* Fills the map with all objects of the component whose name begins with the prefix.
*
* @param prefix The prefix of searched objects.
* @param list The list of corresponding objects.
* @param map The map of corresponding objects.
*/
public void loadAll(String prefix, List list) {
@Override
public void loadAll(String prefix, Map map) {
if (logmon.isLoggable(BasicLevel.DEBUG))
logmon.log(BasicLevel.DEBUG, "JTransaction, loadAll(" + prefix + ")");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment