Examples of DSGenerator


Examples of org.wso2.carbon.dataservices.core.script.DSGenerator

  /**
   * Return the generated services name list
   */
  public String[] getDSServiceList(String dataSourceId, String dbName, String[] schemas,
      String[] tableNames, boolean singleService,String serviceNamespace) throws AxisFault  {
    DSGenerator generator = new DSGenerator(dataSourceId, dbName, schemas, tableNames, false,serviceNamespace,"");
    List<String> serviceNames = new ArrayList<String>();
    List<DataService> dsList = generator.getGeneratedServiceList();
    for (DataService ds : dsList) {
      OMElement element = DataServiceSerializer.serializeDataService(ds);
      this.saveDataService(ds.getName(), null, element.toString());
      serviceNames.add(ds.getName());
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.script.DSGenerator

  /**
   * Return the generated service name
   */
  public String getDSService(String dataSourceId, String dbName, String[] schemas,
      String[] tableNames, boolean singleService,String serviceName,String serviceNamespace) throws AxisFault {
    DSGenerator generator = new DSGenerator(dataSourceId, dbName, schemas, tableNames, true,serviceNamespace,serviceName);
    DataService dataservice = generator.getGeneratedService();
    OMElement element = DataServiceSerializer.serializeDataService(dataservice);
    this.saveDataService(dataservice.getName(),  null, element.toString());
    return generator.getGeneratedService().getName();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.