Orient DB - Export subclasses of a specified class using JAVA -


im working exporting , importing orient db using java. export whole database. when specify export specified class export class only. sub classes not exported. here code:

odatabasedocumenttx db = new odatabasedocumenttx("remote:localhost/sampledatabase").open("admin", "admin");  odatabaseexport export = new odatabaseexport(db, "datacont/finaltry.gz", listener);  set<string> a= new hashset<string>(); a.add("employee".touppercase());  export.setincludeclasses(a);  export.exportdatabase(); export.close(); 

so suppose or doing wrong?

checking source code odatabaseexport seem takes clusters/records of type specified setincludeclasses(). instance in exportrecords():

 odocument doc = (odocument) rec;  final string classname = doc.getclassname() != null ? doc.getclassname().touppercase() : null;  if (includeclasses != null) {      if (!includeclasses.contains(classname))          continue;  } else if (excludeclasses != null) {      if (excludeclasses.contains(classname))          continue;  } 

they have similar checks in several other places in class. mean need put a set classes want export yourself.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -