com.impetus.client.rdbms.query.RDBMSQuery Maven / Gradle / Ivy
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License.
******************************************************************************/
package com.impetus.client.rdbms.query;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Query;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.impetus.client.rdbms.HibernateClient;
import com.impetus.kundera.client.Client;
import com.impetus.kundera.client.EnhanceEntity;
import com.impetus.kundera.metadata.MetadataUtils;
import com.impetus.kundera.metadata.model.ApplicationMetadata;
import com.impetus.kundera.metadata.model.EntityMetadata;
import com.impetus.kundera.metadata.model.KunderaMetadata;
import com.impetus.kundera.persistence.EntityReader;
import com.impetus.kundera.persistence.PersistenceDelegator;
import com.impetus.kundera.query.KunderaQuery;
import com.impetus.kundera.query.QueryHandlerException;
import com.impetus.kundera.query.QueryImpl;
/**
* The Class RDBMSQuery.
*
* @author vivek.mishra
*/
public class RDBMSQuery extends QueryImpl implements Query
{
/** the log used by this class. */
private static Log log = LogFactory.getLog(RDBMSQuery.class);
/** The reader. */
private EntityReader reader;
/**
* Instantiates a new rDBMS query.
*
* @param query
* the query
* @param kunderaQuery
* the kundera query
* @param persistenceDelegator
* the persistence delegator
* @param persistenceUnits
* the persistence units
*/
public RDBMSQuery(String query, KunderaQuery kunderaQuery, PersistenceDelegator persistenceDelegator)
{
super(query, persistenceDelegator);
this.kunderaQuery = kunderaQuery;
}
@Override
protected List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy