001    package coldfusion.server;
002    
003    import java.sql.SQLException;
004    
005    import railo.runtime.exp.SecurityException;
006    import railo.runtime.type.Array;
007    import railo.runtime.type.Struct;
008    import coldfusion.sql.DataSource;
009    
010    
011    public interface DataSourceService extends Service {
012            
013            /*
014            TODO impl
015            public abstract Query executeQuery(Connection arg0, String arg1,
016                            ParameterList arg2, Integer arg3, Integer arg4, Integer arg5,
017                            int[] arg6, int arg7, int arg8, boolean arg9, boolean arg10)
018                            throws SQLException;
019    
020            public abstract Query executeQuery(Connection arg0, String arg1,
021                            ParameterList arg2, Integer arg3, Integer arg4, Integer arg5,
022                            int[] arg6, String arg7) throws SQLException;
023    
024            public abstract Query executeQuery(Connection arg0, String arg1,
025                            ParameterList arg2, Integer arg3, Integer arg4, Integer arg5,
026                            int[] arg6, DataSourceDef arg7) throws SQLException;
027    
028            public abstract Query executeQuery(Connection arg0, String arg1,
029                            ParameterList arg2, Integer arg3, Integer arg4, Integer arg5,
030                            int[] arg6, Object arg7) throws SQLException;
031    
032            public abstract Query executeCall(Connection arg0, String arg1,
033                            ParameterList arg2, int[] arg3, Integer arg4, Integer arg5,
034                            int[] arg6, int arg7, int arg8, boolean arg9, boolean arg10)
035                            throws SQLException;
036    
037            public abstract Query executeCall(Connection arg0, String arg1,
038                            ParameterList arg2, int[] arg3, Integer arg4, Integer arg5,
039                            int[] arg6, String arg7) throws SQLException;
040    
041            public abstract Query executeCall(Connection arg0, String arg1,
042                            ParameterList arg2, int[] arg3, Integer arg4, Integer arg5,
043                            int[] arg6, DataSourceDef arg7) throws SQLException;
044    
045            public abstract Query executeCall(Connection arg0, String arg1,
046                            ParameterList arg2, int[] arg3, Integer arg4, Integer arg5,
047                            int[] arg6, Object arg7) throws SQLException;
048    */
049            public abstract Struct getDatasources() throws SecurityException;
050    
051            public abstract Struct getDrivers() throws ServiceException, SecurityException;
052    
053            public abstract Array getNames() throws SecurityException;
054    
055            public abstract Struct getDefaults();
056    
057            public abstract Number getMaxQueryCount();
058    
059            public abstract void setMaxQueryCount(Number arg0);
060    
061            public abstract String encryptPassword(String arg0);
062    
063            public abstract boolean verifyDatasource(String arg0) throws SQLException, SecurityException;
064    
065            public abstract DataSource getDatasource(String arg0) throws SQLException, SecurityException;
066    
067            public abstract String getDbdir();
068    
069            public abstract Object getCachedQuery(String arg0);
070    
071            public abstract void setCachedQuery(String arg0, Object arg1);
072    
073            public abstract void purgeQueryCache();
074    
075            public abstract boolean disableConnection(String arg0);
076    
077            public abstract boolean isJadoZoomLoaded();
078    
079            public abstract void removeDatasource(String arg0) throws SQLException, SecurityException;
080    
081    }