All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.db.dquery.DbmSqlFileResource Maven / Gradle / Ivy

The newest version!
package org.onetwo.common.db.dquery;

import java.io.File;
import java.util.List;

import org.onetwo.common.db.DataBase;
import org.onetwo.common.propconf.ResourceAdapter;

/**
 * @author wayshall
 * 
*/ public class DbmSqlFileResource implements ResourceAdapter { final private ResourceAdapter source; final private Class mappedInterface; final private DataBase database; public DbmSqlFileResource(ResourceAdapter source, Class mappedInterface, DataBase database) { super(); this.source = source; this.mappedInterface = mappedInterface; this.database = database; } @Override public boolean exists() { return source.exists(); } public Class getMappedInterface() { return mappedInterface; } public String getName() { return source.getName(); } public T getResource() { return source.getResource(); } public File getFile() { return source.getFile(); } public boolean isSupportedToFile() { return source.isSupportedToFile(); } public List readAsList() { return source.readAsList(); } public String getPostfix() { return source.getPostfix(); } public DataBase getDatabase() { return database; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy