com.sleepycat.persist.impl
Class ComparatorCatalog

java.lang.Object
  extended by com.sleepycat.persist.impl.SimpleCatalog
      extended by com.sleepycat.persist.impl.ComparatorCatalog
All Implemented Interfaces:
Catalog

 class ComparatorCatalog
extends SimpleCatalog

Read-only catalog used by a PersistComparator to return simple formats plus reconstituted enum formats.

Author:
Mark Hayes

Field Summary
 
Fields inherited from interface com.sleepycat.persist.impl.Catalog
BETA_VERSION, CURRENT_VERSION
 
Constructor Summary
ComparatorCatalog(ClassLoader classLoader, Map<String,Format> formatMap)
           
 
Method Summary
 Format getFormat(String className)
          Returns a format by class name.
 
Methods inherited from class com.sleepycat.persist.impl.SimpleCatalog
addMissingSimpleFormats, allowRegisterProxy, convertRawObject, createFormat, createFormat, getAllSimpleFormats, getFormat, getFormat, getInitVersion, isRawAccess, isSimpleType, keyClassName, primitiveToWrapper, resolveClass, resolveClass, resolveKeyClass, resolveKeyClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparatorCatalog

ComparatorCatalog(ClassLoader classLoader,
                  Map<String,Format> formatMap)
Method Detail

getFormat

public Format getFormat(String className)
Description copied from interface: Catalog
Returns a format by class name. Unlike #getFormat(Class), the format will not be created if it is not already known.

Specified by:
getFormat in interface Catalog
Overrides:
getFormat in class SimpleCatalog


Copyright (c) 2004-2012 Oracle. All rights reserved.