Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job 오브젝트로 DB 엑세스하기 #1

Open
wbqd opened this issue May 19, 2015 · 0 comments
Open

Job 오브젝트로 DB 엑세스하기 #1

wbqd opened this issue May 19, 2015 · 0 comments
Assignees
Milestone

Comments

@wbqd
Copy link
Contributor

wbqd commented May 19, 2015

Job 오브젝트에 DB에 접근하는 메소드들을 만들어서 Job 오브젝트로만 db에 접근하게 하자. query나 update, insert, delete할 때 귀찮게 job 오브젝트를 넘기고, table 이름을 명시하고 조건을 줄 필요 없이 해당 job 오브젝트들이 그러한 일들을 하게끔 위임하면 디비쪽으로 할일이 상당히 줄어들 듯.

EX) taskJob.query(), taskJob.insert(id), taskJob.delete(id), taskJob.update(id) 등

이렇게 하면 각 액티비티들이 디비에 접근하지 않고 오로지 job 오브젝트이랑만 커뮤니케이션하게 되는 장점이 생김

@wbqd wbqd self-assigned this May 19, 2015
@wbqd wbqd added this to the Iteration 3 milestone May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant