public class PostsByUserEntityTask extends Object implements PersistenceWork
| Constructor and Description |
|---|
PostsByUserEntityTask(int user1_id,
int user2_id,
int post1_id,
int post2_id)
Create PostsByUserEntityTask object
|
| Modifier and Type | Method and Description |
|---|---|
void |
doTask(EntityManagerLite entityManager) |
List<Post> |
getPosts()
Returns result of "posts_by_user" query
|
void |
onPostExecute(boolean success) |
void |
onRollback(Throwable rollbackException) |
public PostsByUserEntityTask(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 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.