I’m confused about DOM JDOM and SAX.
I know that sax works by events and dom and jdom by tree of document.
I’m creating a more level class named DATABASE
with method Query (for the moment)i have to insert also INSERT;DELETE;UPDATE etc…
The constructor of my class is:
public Database(String databaseURI,
String collection) throws TConnectionException {
// Obtain the connection factory
TConnectionFactory connectionFactory =
TConnectionFactory.getInstance();
// Obtain the connection to the database
connection = connectionFactory.newConnection( databaseURI );
// Obtain the concrete TXMLObjectAccessor using the JDOM object model
accessor = connection.newXMLObjectAccessor(
TAccessLocation.newInstance( collection ) ,
TJDOMObjectModel.getInstance() );
}
the method query is:
private TResponse Query(String s) throws Exception {
TQuery query = TQuery.newInstance( s );
try {
// Invoke the query operation
return accessor.query( query );
}
catch (TQueryException queryException) {
// Inform about the reason for the failure
showAccessFailure(queryException);
return null;
}
}
how can i do insert,delete etc?
Have i to use TaminoClient?
If someone can post same code example is welcome.
Ciao
@nto
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs