• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Mutations类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sleepycat.persist.evolve.Mutations的典型用法代码示例。如果您正苦于以下问题:Java Mutations类的具体用法?Java Mutations怎么用?Java Mutations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Mutations类属于com.sleepycat.persist.evolve包,在下文中一共展示了Mutations类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: Evolver

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
        String storePrefix,
        Mutations mutations,
        Map<String,Format> newFormats,
        boolean forceEvolution,
        boolean disallowClassChanges) {
    this.catalog = catalog;
    this.storePrefix = storePrefix;
    this.mutations = mutations;
    this.newFormats = newFormats;
    this.forceEvolution = forceEvolution;
    this.disallowClassChanges = disallowClassChanges;
    changedFormats = new IdentityHashMap<Format,Format>();
    errors = new StringBuilder();
    deleteDbs = new HashSet<String>();
    renameDbs = new HashMap<String,String>();
    renameFormats = new IdentityHashMap<Format,Format>();
    evolvedFormats = new HashMap<Integer,Boolean>();
    unprocessedFormats = new ArrayList<Format>();
    subclassMap = catalog.getSubclassMap();
}
 
开发者ID:nologic,项目名称:nabs,代码行数:22,代码来源:Evolver.java


示例2: open

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
private EntityStore open(boolean addConverter)
    throws DatabaseException {

    EnvironmentConfig envConfig = new EnvironmentConfig();
    envConfig.setAllowCreate(true);
    env = new Environment(envHome, envConfig);

    Mutations mutations = new Mutations();
    mutations.addConverter(new Converter
        (MyEntity.class.getName(), 0, "b", new MyConversion()));

    StoreConfig storeConfig = new StoreConfig();
    storeConfig.setAllowCreate(true);
    storeConfig.setMutations(mutations);
    return new EntityStore(env, "foo", storeConfig);
}
 
开发者ID:nologic,项目名称:nabs,代码行数:17,代码来源:ConvertAndAddTest.java


示例3: getMutations

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
@Override
Mutations getMutations() {
    Mutations m = new Mutations();
    m.addRenamer(new Renamer(NAME, 0, "pkeyint", "pkeyInteger"));
    m.addRenamer(new Renamer(NAME, 0, "kboolean", "kBoolean"));
    m.addRenamer(new Renamer(NAME, 0, "kbyte", "kByte"));
    m.addRenamer(new Renamer(NAME, 0, "kshort", "kShort"));
    m.addRenamer(new Renamer(NAME, 0, "kint", "kInteger"));
    m.addRenamer(new Renamer(NAME, 0, "klong", "kLong"));
    m.addRenamer(new Renamer(NAME, 0, "kfloat", "kFloat"));
    m.addRenamer(new Renamer(NAME, 0, "kdouble", "kDouble"));
    m.addRenamer(new Renamer(NAME, 0, "kchar", "kCharacter"));
    m.addRenamer(new Renamer(NAME2, 0, "kcomposite", "kComposite"));

    Conversion conv1 = new MyConversion1();
    Conversion conv2 = new MyConversion2();

    m.addConverter(new Converter(NAME, 0, "f_long2int", conv1));
    m.addConverter(new Converter(NAME, 0, "f_String2long", conv2));
    m.addConverter(new Converter(NAME2, 0, "f_long2Integer", conv1));
    m.addConverter(new Converter(NAME2, 0, "f_String2Long", conv2));
    return m;
}
 
开发者ID:nologic,项目名称:nabs,代码行数:24,代码来源:EvolveClasses.java


示例4: Evolver

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
        String storePrefix,
        Mutations mutations,
        Map<String, Format> newFormats,
        boolean forceEvolution,
        boolean disallowClassChanges) {
    this.catalog = catalog;
    this.storePrefix = storePrefix;
    this.mutations = mutations;
    this.newFormats = newFormats;
    this.forceEvolution = forceEvolution;
    this.disallowClassChanges = disallowClassChanges;
    changedFormats = new IdentityHashMap<Format, Format>();
    errors = new StringBuilder();
    deleteDbs = new HashSet<String>();
    renameDbs = new HashMap<String, String>();
    renameFormats = new IdentityHashMap<Format, Format>();
    evolvedFormats = new HashMap<Integer, Boolean>();
    unprocessedFormats = new ArrayList<Format>();
    subclassMap = catalog.getSubclassMap();
}
 
开发者ID:prat0318,项目名称:dbms,代码行数:22,代码来源:Evolver.java


示例5: Evolver

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
Evolver(PersistCatalog catalog,
        String storePrefix,
        Mutations mutations,
        Map<String,Format> newFormats,
        boolean forceEvolution,
        boolean disallowClassChanges) {
    this.catalog = catalog;
    this.storePrefix = storePrefix;
    this.mutations = mutations;
    this.newFormats = newFormats;
    this.forceEvolution = forceEvolution;
    this.disallowClassChanges = disallowClassChanges;
    errors = new StringBuilder();
    deleteDbs = new HashSet<String>();
    renameDbs = new HashMap<String,String>();
    renameFormats = new IdentityHashMap<Format,Format>();
    evolvedFormats = new HashMap<Integer,Boolean>();
    unprocessedFormats = new ArrayList<Format>();
    subclassMap = catalog.getSubclassMap();
}
 
开发者ID:nologic,项目名称:nabs,代码行数:21,代码来源:Evolver.java


示例6: BerkeleyDbTileStore

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
public BerkeleyDbTileStore() throws TileStoreException {
	super();
	acquireTileStoreLock();
	tileDbMap = new TreeMap<String, TileDatabase>();

	envConfig = new EnvironmentConfig();
	envConfig.setTransactional(false);
	envConfig.setLocking(true);
	envConfig.setExceptionListener(GUIExceptionHandler.getInstance());
	envConfig.setAllowCreate(true);
	envConfig.setSharedCache(true);
	envConfig.setCachePercent(50);

	mutations = new Mutations();

	String oldPackage1 = "tac.tilestore.berkeleydb";
	String oldPackage2 = "tac.program.tilestore.berkeleydb";
	String entry = ".TileDbEntry";
	String key = ".TileDbEntry$TileDbKey";
	mutations.addRenamer(new Renamer(oldPackage1 + entry, 0, TileDbEntry.class.getName()));
	mutations.addRenamer(new Renamer(oldPackage1 + key, 0, TileDbKey.class.getName()));
	mutations.addRenamer(new Renamer(oldPackage1 + entry, 1, TileDbEntry.class.getName()));
	mutations.addRenamer(new Renamer(oldPackage1 + key, 1, TileDbKey.class.getName()));
	mutations.addRenamer(new Renamer(oldPackage2 + entry, 2, TileDbEntry.class.getName()));
	mutations.addRenamer(new Renamer(oldPackage2 + key, 2, TileDbKey.class.getName()));

	// for (Renamer r : mutations.getRenamers())
	// log.debug(r.toString());
	Runtime.getRuntime().addShutdownHook(new ShutdownThread(true));
}
 
开发者ID:bh4017,项目名称:mobac,代码行数:31,代码来源:BerkeleyDbTileStore.java


示例7: getMutations

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
@Override
Mutations getMutations() {
    Mutations m = new Mutations();
    m.addDeleter(new Deleter(NAME, 0));
    m.addDeleter(new Deleter(NAME2, 0));
    return m;
}
 
开发者ID:nologic,项目名称:nabs,代码行数:8,代码来源:EvolveClasses.java


示例8: getMutations

import com.sleepycat.persist.evolve.Mutations; //导入依赖的package包/类
/**
 * @see EntityStore#getMutations()
 */
public Mutations getMutations() {
    return delegate().getMutations();
}
 
开发者ID:jronrun,项目名称:benayn,代码行数:7,代码来源:Berkeley.java



注:本文中的com.sleepycat.persist.evolve.Mutations类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HttpRedirect类代码示例发布时间:2022-05-22
下一篇:
Java PersistentEntityParameterValueProvider类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap