Questions tagged [dao]

A Data Access Object (DAO), is a design pattern in object-oriented software design, creating an object that provides an abstract interface to some type of database or other persistence mechanism.

A data access object (DAO) is an object that provides an abstract interface to some type of database or persistence mechanism, providing some specific operations without exposing details of the database. It provides a mapping from application calls to the persistence layer.

Source: Wikipedia (retrieved version)

More details: - Core J2EE Patterns - Data Access Object

2621 questions
0
votes
1 answer

Room DAO Update how best to handle old unwanted data

I have a Room table of objects and when I get my network call to refresh the list of objects the items could have been changed. So I need to remove any data that is no longer in the new fetched list. Pre-Fetch Ids in…
N1234
  • 468
  • 5
  • 12
0
votes
1 answer

How to delete item from RecyclerView with Live Data?

I'm also brand new in making applications for Android (probably a week or so.) I'm trying to make a cart fragment UI updates live based on data changes in the database (using LiveData), but I'm stuck as of how to remove a row from the Cart using a…
0
votes
2 answers

How do I create dynamic queries using Slick?

I am migrating my application from Cassandra to Postgres. While I used Datastax driver to dynamically generate cql queries, I am having trouble doing the same with slick. When I say dynamic, I mean I am getting my column names and their values as a…
0
votes
0 answers

Looping through a table in MS-Access when a counter hits 0 in the table

I was going to have the table copy a record when it hits 0 and paste the data from that table to another table then delete it, but no one would post on my question. So, I am using a form as a POS for production. Basically they scan the product and…
BigMoose
  • 21
  • 5
0
votes
1 answer

Why does VBA doesn't reach data after Row number 65,000 when using DAO with SQL language?

I have a VBA module that receives a database object, worksheet name, and two column field names as parameters to make a SQL query into another Excel table that has over 1,000,000 rows with information. But when I was debugging I noticed that my VBA…
0
votes
0 answers

Error caused by creating a viewmodel using Dao database

I try to use dao database in my app and I get this error when i try to create a view model: E/libc: Access denied finding property "ro.vendor.df.effect.conflict" E/Perf: Fail to get file list com.example.kiedyssieuda E/Perf: getFolderSize() :…
Paweł M
  • 9
  • 2
0
votes
1 answer

How to change user fields programmatically in Osclass?

I need to change user field "b_company" in Osclass. But can't find any information about how can i do that.
0
votes
1 answer

Clarifications needed on Designing Data Access Object (DAO) Layer - Spring Boot

I am trying to setup a DAO layer for a Spring boot project for which i came across this helpful blog . I need some clarity on the below text , especially the part where it says that dependencies must not be implementation classes and that they …
Nishant_Singh
  • 748
  • 1
  • 6
  • 16
0
votes
1 answer

Entities list not retrieved with Hibernate DetachedCriteria with ResultTransformer and projection

when trying to retrieve a list of Entities using spring REST and hibernate i face a problem with transforming data and Projection strategy, even if my list is retrieved from the DAO layer but not returned from my method service of my rest API. I got…
adicto.verde
  • 37
  • 1
  • 7
0
votes
1 answer

Should I catch exceptions in DAO layer or can I do it on service layer?

I have a DAO with different methods. An example of one of them: @Override public boolean insertUser(Connection connection,User user) { int rowNum = 0; String query = "INSERT INTO…
DozezQuest
  • 179
  • 7
0
votes
0 answers

Should I do DAO as Singleton when Implementing Abstract factory or there is a better appoach?

I have DaoFactory abstract class that return concrete Factory I have done it only to Mysql yet public abstract class DAOFactory { public static final int MYSQL = 1; public abstract CarDao getCarDao(); public abstract UserDao…
0
votes
1 answer

throwing meaningful exceptions from hibernate DAO implementation

In my web application(jsp+hibernate+hsqldb on tomcat) code, I am using couple of Dao implementations.The base class Dao implementation contains all the session open,close logic.A number of domain specific Dao classes extend this base class to…
jimgardener
  • 637
  • 2
  • 10
  • 26
0
votes
1 answer

how will container start ApplicationContext.xml file

I already have an application implemented in Struts. I am trying to move it to Spring so I am doing everything step by step. First plan is to implement IOC (DI). now I got my DAOs fixed, i got my applicationContext.xml fixed now when I try to run…
0
votes
1 answer

Hi, How can i do operation of others dao with one transaction?

I have dao which methods should be within one transaction What is the best way to do it correctly? Car dao has following method public Car findCar(int numOfPas,String carCategory){ String query = "SELECT*FROM car_info WHERE numOfPas = ? AND…
0
votes
1 answer

Kotlin: Room DB using SUM query in non-activity class/calculations

I'm relatively new to Kotlin and I'm working on a project for school. I've gotten stuck on something I can't figure out for a couple days now, either because I'm not just understanding how it works or I just don't know what to search for. I'm…
CMS3110
  • 1
  • 1
1 2 3
99
100