Example usage for com.mongodb LazyDBDecoder FACTORY

List of usage examples for com.mongodb LazyDBDecoder FACTORY

Introduction

In this page you can find the example usage for com.mongodb LazyDBDecoder FACTORY.

Prototype

DBDecoderFactory FACTORY

To view the source code for com.mongodb LazyDBDecoder FACTORY.

Click Source Link

Usage

From source file:com.edgytech.umongo.CollectionPanel.java

License:Apache License

@Override
public void actionPerformed(Item enm, XmlComponentUnit unit, Object src) {
    if (enm == Item.lazyDecoding) {
        boolean lazy = getBooleanFieldValue(Item.lazyDecoding);
        DBCollection col = getCollectionNode().getCollection();
        if (lazy) {
            col.setDBDecoderFactory(LazyDBDecoder.FACTORY);
        } else {//from  w  w w . j a  va 2  s.c  o  m
            col.setDBDecoderFactory(null);
        }
    }
}