@MappedSuperclass
public class Model
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Model.Finder<I,T>
Helper for Ebean queries.
|
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes this entity.
|
void |
delete(java.lang.String server)
Deletes this entity, using a specific Ebean server.
|
void |
deleteManyToManyAssociations(java.lang.String path)
Deletes a many-to-many association
|
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.
|
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 deleteManyToManyAssociations(java.lang.String path)
public 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