// Path: src/main/java/org/bygle/db/dao/DBManagerInterface.java
// public interface DBManagerInterface {
// 	
// 	public List<?> getList(final Class<?> genericClass) throws HibernateException;
// 	
// 	public List<?> getPagedList(final Class<?> genericClass,final int start,final int lenght) throws HibernateException;
// 	
// 	public List<?> getList(final DetachedCriteria criteria) throws HibernateException;
// 	
// 	public Session getSession() throws HibernateException;
// 	
// 	public List<?> getPagedList(final DetachedCriteria criteria,final int start,final int lenght) throws HibernateException;
// 	
// 	public Object getObject(final Class<?> genericClass,final Object id) throws HibernateException ;
// 	
// 	public void update(final Object genericObj)throws HibernateException ;
// 	
// 	public void add(final Object genericObj)throws HibernateException ;
// 	
// 	public void remove(final Object genericObj)throws HibernateException ;
// 	
// 	public void addAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public void removeAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public void removeAll(final List<?> genericObjects)throws HibernateException ;
// 	
// 	public void updateAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public List<?> getListFromSQL(final Class<?> genericClass,final String query) throws HibernateException;
// 	
// 	public int executeUpdate(final String query) throws HibernateException;
// 	
// 	public int getCountFromSQL(final String query) throws HibernateException;
// 	
// 	public List<?> getPagedListFromSQL(final Class<?> genericClass,final String query,final int start,final int lenght) throws HibernateException;
// 	
// 
// }


import java.util.List;
import java.util.Set;
import org.bygle.db.dao.DBManagerInterface;
import org.hibernate.HibernateException;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
package org.bygle.db.services;



@Service("bygleService")
public class BygleService implements DBService{

	private static final long serialVersionUID = 1L;
	
// Path: src/main/java/org/bygle/db/dao/DBManagerInterface.java
// public interface DBManagerInterface {
// 	
// 	public List<?> getList(final Class<?> genericClass) throws HibernateException;
// 	
// 	public List<?> getPagedList(final Class<?> genericClass,final int start,final int lenght) throws HibernateException;
// 	
// 	public List<?> getList(final DetachedCriteria criteria) throws HibernateException;
// 	
// 	public Session getSession() throws HibernateException;
// 	
// 	public List<?> getPagedList(final DetachedCriteria criteria,final int start,final int lenght) throws HibernateException;
// 	
// 	public Object getObject(final Class<?> genericClass,final Object id) throws HibernateException ;
// 	
// 	public void update(final Object genericObj)throws HibernateException ;
// 	
// 	public void add(final Object genericObj)throws HibernateException ;
// 	
// 	public void remove(final Object genericObj)throws HibernateException ;
// 	
// 	public void addAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public void removeAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public void removeAll(final List<?> genericObjects)throws HibernateException ;
// 	
// 	public void updateAll(final Set<?> genericObjects)throws HibernateException ;
// 	
// 	public List<?> getListFromSQL(final Class<?> genericClass,final String query) throws HibernateException;
// 	
// 	public int executeUpdate(final String query) throws HibernateException;
// 	
// 	public int getCountFromSQL(final String query) throws HibernateException;
// 	
// 	public List<?> getPagedListFromSQL(final Class<?> genericClass,final String query,final int start,final int lenght) throws HibernateException;
// 	
// 
// }


// Path: src/main/java/org/bygle/db/services/BygleService.java
import java.util.List;
import java.util.Set;
import org.bygle.db.dao.DBManagerInterface;
import org.hibernate.HibernateException;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

package org.bygle.db.services;



@Service("bygleService")
public class BygleService implements DBService{

	private static final long serialVersionUID = 1L;
	
	private DBManagerInterface dbManager;