PrepAway - Latest Free Exam Questions & Answers

Which method properly executes a query and returns the appropriate results?

Given the following: where queryString = “select object_name from dm_document” Which method
properly executes a query and returns the appropriate results?

PrepAway - Latest Free Exam Questions & Answers

A.
public static IDfCollectionexecQuery(String queryString, IDfSession session) throws
DfException{

q.setDQL(queryString);
col = q.execute(session);

return col;
}

B.
public static IDfCollectionexecQuery(String queryString, IDfSession session) throws
DfException{

q.setDQL(queryString);
col = q.execute(session,0);

return col;
}

C.
public static IDfDocumentexecQuery(String queryString, IDfSession session) throws
DfException{

q.setDQL(queryString);
objectName = q.execute(session);

return objectName;
}

D.
public static IDfDocumentexecQuery(String queryString, IDfSession session) throws
DfException{

q.setDQL(queryString);
objectName = q.execute(session,0);

return objectName;
}


Leave a Reply