public class BatchDAOImpl<E extends Batch> extends BatchDAOAbstract<E>
| Constructor and Description |
|---|
BatchDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Batch> |
findAllBetweenNumbers(int start,
int end)
Return all batches between range of numbers (non elapsed or in error).
|
long |
findAllCount(SearchModel search)
Retourne des lots en incluant dans le modèle, la quantité totale
restante pour l'ensemble du lot.
|
List<BatchModel> |
findAllModel(SearchModel search,
int offset,
int limit)
Retourne des lots en incluant dans le modèle, la quantité totale
restante pour l'ensemble du lot...
|
BatchModel |
findModelByTopiaId(String batchId)
Retourne un batch model (batch + meta info) à partir du topia id.
|
protected String |
getFieldLikeInsensitive(String field1,
String field2)
Construit une requete ou les champs sont comparés sans tenir
compte de la case et de la présence d'accents.
|
protected String |
getFindBatchModelQueryPrefix()
Retourne le prefix de requete sql qui permet d'obtenir les meta
infos en plus du batch pour remplir le model
|
int |
getNextRangeIdBetween(int start,
int end)
Retourne le prochain id non utilisé parmis la liste des numeros
de lots entre start et end.
|
protected Object |
performQueryWithFilter(SearchModel search,
String queryPrefix,
String querySuffix,
int offset,
int limit)
Construit la requete réutilisable avec des bous de requete (avant/après)
suivant ce que doit effectivement retourner la requete.
|
create, createByNaturalId, createByNotNull, delete, existByNaturalId, findAllByComment, findAllByDedicatedClient, findAllByDluo, findAllByDmesd, findAllByDpmes, findAllByElapsedDate, findAllByEntryDate, findAllByImportHash, findAllByInvalid, findAllByNumber, findAllByOrderNumber, findAllByOrigin, findAllByPackageCount, findAllByProduct, findAllByQuantity, findAllBySampleCode, findAllBySupplier, findAllUsages, findByComment, findByDedicatedClient, findByDluo, findByDmesd, findByDpmes, findByElapsedDate, findByEntryDate, findByImportHash, findByInvalid, findByNaturalId, findByNumber, findByOrderNumber, findByOrigin, findByPackageCount, findByProduct, findByQuantity, findBySampleCode, findBySupplier, findUsages, getEntityClass, getTopiaEntityEnumaddTopiaEntityListener, addTopiaEntityVetoable, computeAndAddRecordsToPager, count, countByQuery, countByQuery, create, create, create, createQuery, createQuery, createSimpleQuery, deleteAll, existByProperties, existByQuery, existByTopiaId, existsByQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllByQuery, findAllByQuery, findAllByQueryAndPager, findAllByQueryAndPager, findAllByQueryWithBound, findAllByQueryWithBound, findAllContains, findAllIds, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByQuery, findByQuery, findByTopiaId, findContains, getBatchSize, getContext, getId, getId, getRequestPermission, init, iterator, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, setBatchSize, updatepublic int getNextRangeIdBetween(int start,
int end)
throws org.nuiton.topia.TopiaException
start - range startend - range endorg.nuiton.topia.TopiaExceptionpublic List<Batch> findAllBetweenNumbers(int start, int end) throws org.nuiton.topia.TopiaException
start - start rangeend - end rangeorg.nuiton.topia.TopiaExceptionpublic List<BatchModel> findAllModel(SearchModel search, int offset, int limit) throws org.nuiton.topia.TopiaException
search - search modeloffset - offsetlimit - limit (use -1 for no limit)org.nuiton.topia.TopiaExceptionpublic long findAllCount(SearchModel search) throws org.nuiton.topia.TopiaException
search - search modelorg.nuiton.topia.TopiaExceptionprotected String getFindBatchModelQueryPrefix()
protected String getFieldLikeInsensitive(String field1, String field2)
protected Object performQueryWithFilter(SearchModel search, String queryPrefix, String querySuffix, int offset, int limit) throws org.nuiton.topia.TopiaException
search - le filtre de recherchequeryPrefix - prefixquerySuffix - suffixoffset - offset (use -1 for no limit)limit - offset (use -1 for no limit)org.nuiton.topia.TopiaExceptionpublic BatchModel findModelByTopiaId(String batchId) throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionCopyright © 2012 Herboristerie Cailleau. All Rights Reserved.