|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.db.ebean.Model
@MappedSuperclass public class Model
Base-class for Ebean-mapped models that provides convenience methods.
Nested Class Summary | |
---|---|
static class |
Model.Finder<I,T>
Helper for Ebean queries. |
Constructor Summary | |
---|---|
Model()
|
Method Summary | |
---|---|
void |
delete()
Deletes this entity. |
void |
delete(java.lang.String server)
Deletes this entity, using a specific Ebean server. |
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
void |
refresh()
Refreshes this entity from the database. |
void |
refresh(java.lang.String server)
Refreshes this entity from the database, using a specific Ebean server. |
void |
save()
Saves (inserts) this entity. |
void |
save(java.lang.String server)
Saves (inserts) this entity. |
void |
saveManyToManyAssociations(java.lang.String path)
Persist a many-to-many association. |
void |
saveManyToManyAssociations(java.lang.String server,
java.lang.String path)
Persist a many-to-many association. |
void |
update()
Updates this entity. |
void |
update(java.lang.Object id)
Updates this entity, by specifying the entity ID. |
void |
update(java.lang.Object id,
java.lang.String server)
Updates this entity, by specifying the entity ID, using a specific Ebean server. |
void |
update(java.lang.String server)
Updates this entity, using a specific Ebean server. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Model()
Method Detail |
---|
public void save()
public void save(java.lang.String server)
server
- the Ebean server to usepublic void saveManyToManyAssociations(java.lang.String path)
public void saveManyToManyAssociations(java.lang.String server, java.lang.String path)
server
- the Ebean server to usepublic void update()
public void update(java.lang.String server)
server
- the Ebean server to usepublic void update(java.lang.Object id)
public void update(java.lang.Object id, java.lang.String server)
server
- the Ebean server to usepublic void delete()
public void delete(java.lang.String server)
server
- the Ebean server to usepublic void refresh()
public void refresh(java.lang.String server)
server
- the Ebean server to usepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |