/*
- * Copyright (C) 2001, 2002 The Mir-coders group
+ * Copyright (C) 2001-2006 The Mir-coders group
*
* This file is part of Mir.
*
*
* In addition, as a special exception, The Mir-coders gives permission to link
* the code of this program with any library licensed under the Apache Software License,
- * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library
- * (or with modified versions of the above that use the same license as the above),
* and distribute linked combinations including the two. You must obey the
* GNU General Public License in all respects for all of the code used other than
* the above mentioned libraries. If you modify this file, you may extend this
* @author rk
* @version 1.0
*/
-import java.util.Iterator;
-import java.util.Set;
-
import mir.entity.EntityList;
import mir.log.LoggerWrapper;
-public class StoreIdentifier {
+import java.util.Iterator;
+import java.util.Set;
- /** @todo check if invalidating already to avoid deadlocks
- * what about concurrency? */
+public class StoreIdentifier {
+ /** todo check if invalidating already to avoid deadlocks what about concurrency? */
private static ObjectStore o_store = ObjectStore.getInstance();
private long timesUsed;
private boolean invalidating = false;
- protected LoggerWrapper logger = new LoggerWrapper("Database.ObjectStore");
-
- /** @todo initialize logfile */
-
- private StoreIdentifier() {}
+ protected static LoggerWrapper logger = new LoggerWrapper("Database.ObjectStore");
public StoreIdentifier(StorableObject reference, int storeType,
String uniqueIdentifier) {
this.stocType = StoreContainerType.valueOf(theClass, storeType);
}
- /**
- * Method: ivalidate
- * Description:
- *
- * @return
- */
public void invalidate() {
logger.info("Invalidating: " + toString());
// avoid deadlock due to propagation.
id.append(" (" + timesUsed).append(") times used.");
return id.toString();
}
-
-
}
\ No newline at end of file