xpages - OpenNTF Domino API (ODA) WrapperFactory.fromLotus Usage -
i have situation need org.openntf.domino.document
object lotus.domino.document
object. found examples using factory.fromlotus()
depreciated.
the javadocs pointed me wrapperfactory.fromlotus()
unsure how use this. doing this:
document doc = wrapperfactory.fromlotus(lotusdoc, org.openntf.domino.document.class, null);
eclipse marking line error:
the method fromlotus(d, factoryschema, p) in type wrapperfactory not applicable arguments (document, class, null)
how use wrapperfactory.fromlotus()
?
that method wants original lotus object (as you're doing), "schema" object, , parent.
for schema, can use org.openntf.domino.document.schema.
for parent, you'll need pass in wrapped version of parent database object. believe can go chain getting database , session - wrap session session s = fac.fromlotus(lotussession, session.schema, null)
, db database db = fac.fromlotus(lotusdatabase, database.schema, s)
, doc document doc = fac.fromlotus(lotusdoc, document.schema, db)
.
Comments
Post a Comment