51525354555657
return centers; } public CenterMongo(MongoDatastore db) { coll = db.getDB().getCollection(Constants.CENTERS_COLLECTION); factory = new CenterFactoryDefaultImpl(); }
5657585960616263
factory = new CenterFactoryDefaultImpl(); } public CenterMongo(MongoDatastore db, int centersOnPage) { coll = db.getDB().getCollection(Constants.CENTERS_COLLECTION); factory = new CenterFactoryDefaultImpl(); offset = centersOnPage; }
34353637383940
public static CenterFactoryBuilder getInstance() { return instance; } public CenterAbstractFactory getFactory() { return factory != null ? factory : new CenterFactoryDefaultImpl(); }