public class DefaultJpaRepository extends CrudRepositorySupport
| Constructor and Description |
|---|
DefaultJpaRepository() |
| Modifier and Type | Method and Description |
|---|---|
Iterable |
deleteAllInBatch()
Deletes everything in the data store that's of the bound entity type
|
Iterable |
deleteInBatch(Iterable entities)
Deletes the given entities by enclosing the actual delete in batch requests.
|
void |
flush()
If the underlying data store supports
queueing and needs the queue to be
flushed, this method will flush the queue. |
Object |
getOne(Serializable key)
Returns the entity that has the given key
|
Object |
saveAndFlush(Object entity)
Saves the entity to the database and flushes the queue
|
getDataStore, getKeyGenerator, getRepositoryMetadata, save, setDataStore, setKeyGenerator, setRepositoryMetadatapublic void flush()
queueing and needs the queue to be
flushed, this method will flush the queue. Otherwise, it will not do anythingpublic Iterable deleteInBatch(Iterable entities)
queueing, this will be no different than simply sequentially
deleting all the entities.entities - entities to deletepublic Iterable deleteAllInBatch()
public Object getOne(Serializable key)
key - the keyCopyright © 2014–2016. All rights reserved.