Examples of SqlQuery


Examples of org.hibernate.SQLQuery

    }
  }

  public Query createNativeQuery(String sqlString) {
    try {
      SQLQuery q = getSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
View Full Code Here

Examples of org.hibernate.SQLQuery

    }
  }

  public Query createNativeQuery(String sqlString, Class resultClass) {
    try {
      SQLQuery q = getSession().createSQLQuery( sqlString );
      q.addEntity( "alias1", resultClass.getName(), LockMode.READ );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
View Full Code Here

Examples of org.hibernate.SQLQuery

    }
  }

  public Query createNativeQuery(String sqlString, String resultSetMapping) {
    try {
      SQLQuery q = getSession().createSQLQuery( sqlString );
      q.setResultSetMapping( resultSetMapping );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
View Full Code Here

Examples of org.hibernate.SQLQuery

          );
  }

  public Query createNativeQuery(String sqlString) {
    try {
      SQLQuery q = getSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
View Full Code Here

Examples of org.jhighfun.util.sql.SQLQuery

import org.jhighfun.util.sql.SQLQuery;

public class SQLUtil {

    public static SQLQuery SQLQuery(String query) {
        return new SQLQuery(query, SqlDataStore.getDataSource());
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.description.query.SQLQuery

      axisOperation = axisOperations.next();
      operationName = axisOperation.getName().getLocalPart();
      queryId = operationName + DBConstants.CONTRACT_FIRST_QUERY_SUFFIX;
      queryParams = getQueryParamsFromAxisOperation(modelMap, elementMap, axisOperation);
      /* query */
      dataService.addQuery(new SQLQuery(dataService, queryId, dummyConfigId, false, null,
          DBConstants.CONTRACT_FIRST_DUMMY_SQL, queryParams,
          getResultFromAxisOperation(dataService, axisOperation), null, null,
          new HashMap<String, String>(),
          dataService.getServiceNamespace()));
      /* operation */
 
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.activities.sql.SQLQuery

        executeWorkflow(drer, workflow);
        ResourceID cacheID = createCache.nextResult();
       
        System.out.println("Created data cache with ID: " + cacheID);
       
        SQLQuery query = new SQLQuery();
        query.addExpression("SELECT name, address FROM littleblackbook WHERE id<10");
        query.setResourceID("MySQLResource");
        WriteToDataCache write = new WriteToDataCache();
        write.setResourceID(cacheID);
        write.connectDataInput(query.getDataOutput());
       
        workflow = new PipelineWorkflow();
        workflow.add(query);
        workflow.add(write);
        executeWorkflow(drer, workflow);
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.