Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Dec 8, 2017

Deleting entities

When using Active Objects, deleting an entity requires that you have a reference to that entity. Of course we will be using the EntityManager. The actual method is net.java.ao.EntityManager#delete(RawEntity<?>...):

1
2
private void deleteBlog(Blog blog) throws SQLException
{
    entityManager.delete(blog);
}

Note that the delete method take a vararg argument so it is possible to delete several entities at once.

Rate this page: