001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package coldfusion.sql; 020 021 022import java.util.Map; 023 024import lucee.runtime.type.Struct; 025 026public interface DataSourceDef { 027 public Object get(Object arg1); 028 029 public int getType(); 030 031 public String getClassName(); 032 033 public String getHost(); 034 035 public int getPort(); 036 037 public boolean isDynamic(); 038 039 public boolean isConnectionEnabled(); 040 041 public boolean isBlobEnabled(); 042 043 public boolean isClobEnabled(); 044 045 public String getDriver(); 046 047 public void setDriver(String arg1); 048 049 public Struct getAllowedSQL(); 050 051 public void setAllowedSQL(Struct arg1); 052 053 public boolean isSQLRestricted(); 054 055 public void setMap(Map arg1); 056 057 public boolean isRemoveOnPageEnd(); 058 059 public void setRemoveOnPageEnd(boolean arg1); 060 061 public void setDynamic(boolean arg1); 062 063 public String getIfxSrv(); 064 065 public void setIfxSrv(String arg1); 066 067 public boolean getStrPrmUni(); 068 069 public void setStrPrmUni(boolean arg1); 070 071 public void setStrPrmUni(String arg1); 072 073 public String getSelectMethod(); 074 075 public void setSelectMethod(String arg1); 076 077 public String getSid(); 078 079 public void setSid(String arg1); 080 081 public String getJndiName(); 082 083 public void setJndiName(String arg1); 084 085 public int getMaxClobSize(); 086 087 public void setMaxClobSize(int arg1); 088 089 public int getMaxBlobSize(); 090 091 public void setMaxBlobSize(int arg1); 092 093 public void setClobEnabled(boolean arg1); 094 095 public void setBlobEnabled(boolean arg1); 096 097 public void setConnectionEnabled(boolean arg1); 098 099 public int getLogintimeout(); 100 101 public void setLogintimeout(int arg1); 102 103 public int getMaxconnections(); 104 105 public void setMaxConnections(int arg1); 106 107 public void setMaxConnections(Object arg1); 108 109 public void setDatabase(String arg1); 110 111 public String getDatabase(); 112 113 public void setHost(String arg1); 114 115 public void setVendor(String arg1); 116 117 public String getVendor(); 118 119 public Struct getJndienv(); 120 121 public void setLoginTimeout(Object arg1); 122 123 public int getLoginTimeout(); 124 125 public void setPort(int arg1); 126 127 public void setPort(Object arg1); 128 129 public int getMaxConnections(); 130 131 public void setJndienv(Struct arg1); 132 133 public void setJNDIName(String arg1); 134 135 public String getJNDIName(); 136 137 public void setType(String arg1); 138 139 public void setType(int arg1); 140 141 public String getDsn(); 142 143 public void setDsn(String arg1); 144 145 // TODO impl public TwoFishCryptor getCryptor(); 146 147// TODO impl public void setCryptor(TwoFishCryptor arg1); 148 149 public void setClassName(String arg1); 150 151 public String getDesc(); 152 153 public void setDesc(String arg1); 154 155 public String getUsername(); 156 157 public void setUsername(String arg1); 158 159 public void setPassword(String arg1); 160 161 public String getUrl(); 162 163 public void setUrl(String arg1); 164 165 public boolean isPooling(); 166 167 public void setPooling(boolean arg1); 168 169 public int getTimeout(); 170 171 public void setTimeout(int arg1); 172 173 public int getInterval(); 174 175 public void setInterval(int arg1); 176 177 public Struct getExtraData(); 178 179 public void setExtraData(Struct arg1); 180 181 public void setMaxPooledStatements(int arg1); 182 183 public int getMaxPooledStatements(); 184 185 186 187}