Setting QAnywhere manager configuration properties programmatically

In the QAnywhere APIs, you can use the QAManagerBase set property method to set properties programmatically. Setting QAnywhere manager configuration properties programmatically must be done before calling the open method of a QAManager instance.

For more information about QAManager properties, see QAnywhere manager configuration properties.

Example

The following C# example sets properties programmatically. When you create the QAManager, you specify the property settings.

QAManager     mgr;
mgr = QAManagerFactory.Instance.CreateQAManager( null );
mgr.SetProperty( “COMPRESSION_LEVEL”, “9” );
mgr.SetProperty( “CONNECT_PARAMS”, “DBF=mystore.db” );
mgr.SetProperty( “DATABASE_TYPE”, “sqlanywhere” );
mgr.Open( AcknowledgeMode.EXPLICIT_ACKNOWLEDGEMENT );

For the .NET API, see QAManager interface and QAManagerFactory class.

The following C++ example sets properties programmatically. When you create the QAManager, you specify the property settings.

QAManagerFactory *  qa_factory;
QAManager *    mgr;
qa_factory = QAnywhereFactory_init();
mgr = qa_factory->createQAManager( NULL );
mgr->setProperty( “COMPRESSION_LEVEL”, “9” );
mgr->setProperty( “CONNECT_PARAMS”, “DBF=mystore.db” );
mgr->setProperty( “DATABASE_TYPE”, “sqlanywhere” );
mgr->open( AcknowledgementMode::EXPLICIT_ACKNOWLEDGEMENT );

For the C++ API, see QAManager class and QAManagerFactory class.

The following Java example sets properties programmatically. When you create the QAManager, you specify the property settings.

QAManager mgr;
mgr = QAManagerFactory.getInstance().createQAManager(null);
mgr.setProperty("COMPRESSION_LEVEL", 9);
mgr.setStringProperty("CONNECT_PARMS", "DBF=mystore.db");
mgr.setStringProperty("DATABASE_TYPE", "sqlanywhere");
mgr.open(AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT);

For the Java API, see Class QAManagerFactory and Interface QAManager.