@Override public PersistenceUri persist(boolean doOverwrite) throws DDFException { return this.getPersistenceHandler().persist(doOverwrite); }
/** * Instantiates a new DDF of the type specified in ddf.ini as "DDF", passing in this DDFManager as the sole argument * * @return the newly instantiated DDF * @throws DDFException */ public DDF newDDF() throws DDFException { DDF ddf = this.newDDF(new Class<?>[] { DDFManager.class }, new Object[] { this }); ddf.getPersistenceHandler().setPersistable(false); return ddf; }
/** * Instantiates a new DDF of the type specified in ddf.ini as "DDF", using the constructor that requires only * {@link DDFManager} as an argument. * * @param manager the {@link DDFManager} to assign * @return the newly instantiated DDF * @throws DDFException */ public DDF newDDF(DDFManager manager) throws DDFException { DDF ddf = this.newDDF(new Class<?>[] { DDFManager.class }, new Object[] { manager }); ddf.getPersistenceHandler().setPersistable(false); return ddf; }
public IPersistible load(PersistenceUri uri) throws DDFException { return this.getDummyDDF().getPersistenceHandler().load(uri); }
public IPersistible load(String namespace, String name) throws DDFException { return this.getDummyDDF().getPersistenceHandler().load(namespace, name); }
public void unpersist(String namespace, String name) throws DDFException { this.getDummyDDF().getPersistenceHandler().unpersist(namespace, name); }
@Test public void testPersistenceDir() throws IOException, DDFException { DDFManager manager = DDFManager.get(DDFManager.EngineType.BASIC); DDF ddf = manager.newDDF(); List<String> namespaces = ddf.getPersistenceHandler().listNamespaces(); Assert.assertNotNull(namespaces); for (String namespace : namespaces) { List<String> ddfs = ddf.getPersistenceHandler().listItems(namespace); Assert.assertNotNull(ddfs); } }
@Override public DDF copy() throws DDFException { DDF newDDF = this.sql2ddf("select * from @this"); newDDF.getMetaDataHandler().copy(this.getMetaDataHandler()); newDDF.getPersistenceHandler().setPersistable(this.getPersistenceHandler().isPersistable()); return newDDF; }