public class UsersByPostTask extends Object implements PersistenceWork
| Constructor and Description |
|---|
UsersByPostTask(int user1_id,
int user2_id,
int post1_id,
int post2_id)
Create UsersByPostTask object
|
| Modifier and Type | Method and Description |
|---|---|
void |
doTask(EntityManagerLite entityManager) |
List<User> |
getUsersByPost1()
Returns result of "users_by_post" query for post 1
|
List<User> |
getUsersByPost2()
Returns result of "users_by_post" query for post 2
|
void |
onPostExecute(boolean success) |
void |
onRollback(Throwable rollbackException) |
public UsersByPostTask(int user1_id,
int user2_id,
int post1_id,
int post2_id)
user1_id - User 1 primary keyuser2_id - User 2 primary keypost1_id - Post 1 primary keypost2_id - Post 2 primary keypublic List<User> getUsersByPost1()
public List<User> getUsersByPost2()
public void doTask(EntityManagerLite entityManager)
doTask in interface PersistenceTaskPersistenceTask.doTask(au.com.cybersearch2.classyjpa.EntityManagerLite)public void onPostExecute(boolean success)
onPostExecute in interface PersistenceWorkPersistenceWork.onPostExecute(boolean)public void onRollback(Throwable rollbackException)
onRollback in interface PersistenceWorkPersistenceWork.onRollback(java.lang.Throwable)This documentation is licensed by Andrew Bowley under the GPLv3 License.