001 package railo.runtime.db; 002 003 import java.sql.Connection; 004 005 /** 006 * a datasource and connection pair 007 */ 008 public interface DatasourceConnection { 009 010 /** 011 * @return Returns the connection. 012 */ 013 public abstract Connection getConnection(); 014 015 /** 016 * @return Returns the datasource. 017 */ 018 public abstract DataSource getDatasource(); 019 020 /** 021 * @return is timeout or not 022 */ 023 public abstract boolean isTimeout(); 024 025 026 027 /** 028 * @return the password 029 */ 030 public String getPassword(); 031 032 /** 033 * @return the username 034 */ 035 public String getUsername() ; 036 037 }