Lines Matching defs:entity
27 * Implementations of this class knows how to insert a particular entity.
31 * @param <T> The type parameter of the entity to be inserted
38 * Creates an InsertionAdapter that can insert the entity type T into the given database.
47 * Binds the entity into the given statement.
51 * @param entity The entity of type T.
53 protected abstract void bind(SupportSQLiteStatement statement, T entity);
56 * Inserts the entity into the database.
58 * @param entity The entity to insert
60 public final void insert(T entity) {
63 bind(stmt, entity);
78 for (T entity : entities) {
79 bind(stmt, entity);
95 for (T entity : entities) {
96 bind(stmt, entity);
105 * Inserts the given entity into the database and returns the row id.
107 * @param entity The entity to insert
110 public final long insertAndReturnId(T entity) {
113 bind(stmt, entity);
131 for (T entity : entities) {
132 bind(stmt, entity);
153 for (T entity : entities) {
154 bind(stmt, entity);
175 for (T entity : entities) {
176 bind(stmt, entity);
197 for (T entity : entities) {
198 bind(stmt, entity);
219 for (T entity : entities) {
220 bind(stmt, entity);
241 for (T entity : entities) {
242 bind(stmt, entity);