1 21 package oracle.toplink.essentials.sessions; 23 24 import java.util.Properties ; 25 26 import oracle.toplink.essentials.exceptions.DatabaseException; 27 import oracle.toplink.essentials.internal.databaseaccess.Accessor; 28 import oracle.toplink.essentials.internal.databaseaccess.DatabasePlatform; 29 import oracle.toplink.essentials.internal.databaseaccess.Platform; 30 31 41 public interface Login { 42 43 47 String getPassword(); 48 49 53 String getUserName(); 54 55 59 void setPassword(String password); 60 61 65 void setUserName(String userName); 66 67 71 boolean shouldUseExternalConnectionPooling(); 72 73 77 boolean shouldUseExternalTransactionController(); 78 79 87 DatabasePlatform getPlatform(); 88 89 95 Platform getDatasourcePlatform(); 96 97 103 void setPlatform(Platform platform); 104 105 111 void setDatasourcePlatform(Platform platform); 112 113 117 Object connectToDatasource(Accessor accessor) throws DatabaseException; 118 119 123 Accessor buildAccessor(); 124 125 129 Object clone(); 130 131 135 public String getTableQualifier(); 136 137 141 public boolean shouldAllowConcurrentReadWrite(); 142 143 148 public boolean shouldSynchronizeWrites(); 149 150 155 public boolean shouldSynchronizeObjectLevelReadWrite(); 156 157 162 public boolean shouldSynchronizeObjectLevelReadWriteDatabase(); 163 164 168 public boolean shouldSynchronizedReadOnWrite(); 169 170 177 public Object getProperty(String name); 178 179 184 public void setProperties(Properties properties); 185 186 191 public void setProperty(String propertyName, Object propertyValue); 192 } 193 | Popular Tags |