Hello All,
I want to query data from a schema in Tamino.
I wrote the following code to do this.
I dont see anything wrong but it doesnt work :((
Can somebody help me please.
ServletContext context;
context = pageContext.getServletContext();
String url=context.getInitParameter(“TAMINO_URL”);
String userId = context.getInitParameter(“USER_ID”);
String password = context.getInitParameter(“PASSWORD”);
String propertyCollection = “Ortopedi”;
String propertySchema = “son”;
TaminoStore store=new TaminoStore(url, userId, password);
store.registerDoctypeCollection(propertySchema, propertyCollection);
businessDocumentWorkspace = new BusinessDocumentWorkspace(store);
QueryContainer container=new QueryContainer();
container.setDoctype(“son”); //I want to make a query on the schema son
container.add(new QueryElement(“*”,“”)); //I dont give any criteria so that it brings all data
String cursorName = “son”;
int PageSize = 10;
Cursor cursor=businessDocumentWorkspace.query(cursorName,container,PageSize); //I run the query
//here cursor.count() returns 0 although I have data.
BusinessDocument bd = businessDocumentWorkspace.lookup(“son”);
// Here the bd returns NULL although I have data in the schema son
X-Application Version: 3.1.1
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.2
JDK Version : 1.3.1
[This message was edited by Harald Wolf on 27 Feb 2002 at 16:51.]
#webMethods#API-Management#Tamino