Questions tagged [abstraction-layer]

In computing, an abstraction layer or abstraction level is a way of hiding the implementation details of a particular set of functionality, allowing the separation of concerns to facilitate interoperability and platform independence.

Source: https://en.wikipedia.org/wiki/Abstraction_layer

11 questions
13
votes
1 answer

Should I convert an entity to a DTO inside a Repository object and return it to the service layer?

I am trying to get an answer to the two quite similar questions here: Should I convert an entity to a DTO inside a Repository object and return it to the Service Layer? or Is it okay to return DTO objects from the Repository Layer? Right now I…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
10
votes
2 answers

Please explain the Repository-, Mapping-, and Business-Layer relations and responsibilities

I've been reading a lot about this stuff and I am currently in the middle of the development of a larger web-application and its corresponding back-end. However, I've started with a design where I ask a Repository to fetch data from the database…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
6
votes
2 answers

Repository vs. DAO (again)

In general this back-story does not matter but just to explain the code below: The server handles users and user groups. User groups are able to "discover" places - at this point in time these places are coming exclusively from the Google Places…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
4
votes
1 answer

Abstraction Layer (Java)

I'm currently working on a project that involves creating an abstraction layer. The goal of the project is to support multiple implementations of server software in the event that I might need to switch over to it. The list of features to be…
user3930505
4
votes
2 answers

C++ on embedded targets: Low overhead storage backend

I'm in the process of coding a reusable C++ module for an ARM Cortex-M4 processor. The module uses a lot of storage to accomplish its task and it's time-critical. To allow the users of my module to customize its behavior, I'm using different…
2
votes
0 answers

Using low level datatype from hardware abstraction layer in (high level) application

I have a hardware abstraction layer for a peripheral of a MCU which is written in C. The application code is using the peripheral via a C++ wrapper. Now I have a low level enum ll_enum and a function, that requires a parameter with this datatype. My…
tobawo
  • 83
  • 4
1
vote
1 answer

API abstraction layer - avoid mixing of API interfaces

I've been planning on writing an API abstraction layer for my rendering engine. The two APIs I want to include are D3D11 and D3D12. So I started by writing some interfaces and their respective implementation for each API. The following code snippet…
Philipp Neufeld
  • 1,053
  • 10
  • 23
1
vote
0 answers

Distinguishing a generic man-page and an implementation-specific man-page?

I have written a suite of programs that is supposed to work on both MacOS X and on GNU/Linux. For most components, the code is identical for both MacOS X and for GNU/Linux - however there are a few low-level commands for which (based on…
Sophia_ES
  • 1,193
  • 3
  • 12
  • 22
1
vote
2 answers

Is there any abstraction layer which makes a database look like Oracle?

We use Oracle in production, but in our company it's difficult to install in development environments. Is there a way to let Perl (or any other language) send raw SQL statements via the DBI module (or the equivalent module for any other language to…
Will Sheppard
  • 3,272
  • 2
  • 31
  • 41
0
votes
1 answer

When running PHP's exec() function on a Windows server, will it pass ASCII control characters to the shell?

I want to use the PHP exec() function to run an executable on a Windows server. The command string will use ASCII control characters as separators for the data it passes to the executable. The code I currently have is: for( $i = 0; $i < $size;…
Navi
  • 5
  • 3
0
votes
1 answer

Should I abstract the service layer on the client side and if yes how?

The thing is that I am using Hibernate on the server side and that I am sending basically "raw" database data to the client - which is fine I guess but that also means that my client gets a List when calling the according service…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378