Package com.easydesk.util
Class ItemIDBroker
java.lang.Object
com.easydesk.util.ItemIDBroker
ItemIDBroker : 각 Module 별 id count 를 달리 한다.
- Author:
- Youngho Cho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNextItemId(Connection con) Module 별 id table key 로 다음 item id 를 구한다. key 가 id table 에 없으면 새로 등록하고 1 을 반환한다.
-
Constructor Details
-
ItemIDBroker
item 에 대한 IDBroker 를 생성한다.- Parameters:
item- id 를 발급할 item- Throws:
IllegalArgumentException- item 의 database 이름을 구할 수 없는 경우
-
-
Method Details
-
getNextItemId
Module 별 id table key 로 다음 item id 를 구한다. key 가 id table 에 없으면 새로 등록하고 1 을 반환한다.- Parameters:
con- 사용할 database connection- Returns:
- 다음 item id
- Throws:
Exception- id 를 구하는 중 오류가 발생한 경우
-