com.jpattern.orm.classtool.OrmClassTool Maven / Gradle / Ivy
package com.jpattern.orm.classtool;
import com.jpattern.orm.classmapper.IClassMapper;
import com.jpattern.orm.crud.IOrmCRUDQuery;
import com.jpattern.orm.generator.IOrmPersistor;
/**
*
* @author Francesco Cina
*
* 22/mag/2011
*/
public class OrmClassTool implements IOrmClassTool {
private final IOrmCRUDQuery ormCRUDQuery;
private final IClassMapper classMapper;
private final IOrmPersistor ormPersistor;
public OrmClassTool(IClassMapper classMapper, IOrmPersistor ormPersistor, IOrmCRUDQuery ormCRUDQuery) {
this.classMapper = classMapper;
this.ormPersistor = ormPersistor;
this.ormCRUDQuery = ormCRUDQuery;
}
@Override
public IClassMapper getClassMapper() {
return classMapper;
}
@Override
public IOrmPersistor getOrmPersistor() {
return ormPersistor;
}
@Override
public IOrmCRUDQuery getOrmCRUDQuery() {
return ormCRUDQuery;
}
}