- Timestamp:
- 03/12/10 10:57:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/ClientAdapter.cs
r2082 r3011 38 38 DataAdapterBase< 39 39 dsHiveServerTableAdapters.ClientTableAdapter, 40 Client Info,40 ClientDto, 41 41 dsHiveServer.ClientRow>, 42 42 IClientAdapter { … … 48 48 if (resAdapter == null) 49 49 resAdapter = 50 this.Session.GetDataAdapter<Resource , IResourceAdapter>();50 this.Session.GetDataAdapter<ResourceDto, IResourceAdapter>(); 51 51 52 52 return resAdapter; … … 60 60 if (clientGroupAdapter == null) { 61 61 clientGroupAdapter = 62 this.Session.GetDataAdapter<ClientGroup , IClientGroupAdapter>();62 this.Session.GetDataAdapter<ClientGroupDto, IClientGroupAdapter>(); 63 63 } 64 64 … … 72 72 get { 73 73 if (jobAdapter == null) { 74 this.Session.GetDataAdapter<Job , IJobAdapter>();74 this.Session.GetDataAdapter<JobDto, IJobAdapter>(); 75 75 } 76 76 … … 85 85 if (clientConfigAdapter == null) { 86 86 clientConfigAdapter = 87 this.Session.GetDataAdapter<ClientConfig , IClientConfigAdapter>();87 this.Session.GetDataAdapter<ClientConfigDto, IClientConfigAdapter>(); 88 88 } 89 89 … … 98 98 99 99 #region Overrides 100 protected override Client Info ConvertRow(dsHiveServer.ClientRow row,101 Client Info client) {100 protected override ClientDto ConvertRow(dsHiveServer.ClientRow row, 101 ClientDto client) { 102 102 if(row != null && client != null) { 103 103 /*Parent - resource*/ … … 152 152 } 153 153 154 protected override dsHiveServer.ClientRow ConvertObj(Client Info client,154 protected override dsHiveServer.ClientRow ConvertObj(ClientDto client, 155 155 dsHiveServer.ClientRow row) { 156 156 if (client != null && row != null) { … … 179 179 180 180 #region IClientAdapter Members 181 protected override void doUpdate(Client Info client) {181 protected override void doUpdate(ClientDto client) { 182 182 if (client != null) { 183 183 ResAdapter.Update(client); … … 188 188 } 189 189 190 public Client Info GetByName(string name) {191 return (Client Info)190 public ClientDto GetByName(string name) { 191 return (ClientDto) 192 192 base.doInTransaction( 193 193 delegate() { 194 Client Info client = new ClientInfo();195 Resource res =194 ClientDto client = new ClientDto(); 195 ResourceDto res = 196 196 ResAdapter.GetByName(name); 197 197 … … 200 200 } 201 201 202 protected override bool doDelete(Client Info client) {202 protected override bool doDelete(ClientDto client) { 203 203 return (bool)base.doInTransaction( 204 204 delegate() { … … 219 219 } 220 220 221 public ICollection<Client Info> GetGrouplessClients() {221 public ICollection<ClientDto> GetGrouplessClients() { 222 222 return 223 223 base.FindMultiple(
Note: See TracChangeset
for help on using the changeset viewer.