public class BatchDAOImpl<E extends Batch> extends BatchDAOAbstract<E>
| Constructor and Description |
|---|
BatchDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
countOperating()
Count non expired and valid batch.
|
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)
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.
|
List<Batch> |
getBatchWithBulletinToAsk()
Retourne les lots sur lequels porte une analyze en attente de reception
et dont le prestataire est un fournisseur.
|
List<Batch> |
getBatchWithInputAndPendingAnalysis()
Retourne les lots en attente d'analyse pour lequel il y a déjà une sortie d'étiquette interne.
|
List<Batch> |
getBatchWithMoreSellThanStock()
Retourne les lots qui ont des expeditions supérieures à la quantité entrée.
|
List<Batch> |
getBatchWithNoStock()
Retourne les lots qui n'ont plus de stock
|
List<Batch> |
getBatchWithOutputAndPendingAnalysis()
Retourne les lots en attente d'analyse pour lequel il y a déjà une sortie externe.
|
List<Batch> |
getDedicatedClientExpiredBatch()
Retourne les lots qui concernent les clients dédiés et qui sont
probablement expiré.
|
protected static 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 |
getLastBatchNumber(int maxBatchRange)
Get max batch number < max batch range.
|
Date |
getMaxEntryDate()
Retoune la date d'entrée produit la plus récente.
|
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 bout de requete (avant/après)
suivant ce que doit effectivement retourner la requete.
|
create, createByNaturalId, createByNotNull, delete, existByNaturalId, findAllByComment, findAllByDedicatedClient, findAllByDluo, findAllByDmes, findAllByDmesd, findAllByDpmes, findAllByEntryDate, findAllByExpiredDate, findAllByImportHash, findAllByInvalid, findAllByNumber, findAllByOrderNumber, findAllByOrigin, findAllByPackageCount, findAllByProduct, findAllByQuantity, findAllBySampleCode, findAllBySupplier, findAllUsages, findByComment, findByDedicatedClient, findByDluo, findByDmes, findByDmesd, findByDpmes, findByEntryDate, findByExpiredDate, 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 long countOperating()
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic int getLastBatchNumber(int maxBatchRange)
throws org.nuiton.topia.TopiaException
maxBatchRange - max batch rangeorg.nuiton.topia.TopiaExceptionpublic 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) throws org.nuiton.topia.TopiaException
search - search modelorg.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 static 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.TopiaExceptionpublic List<Batch> getBatchWithOutputAndPendingAnalysis() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic List<Batch> getBatchWithInputAndPendingAnalysis() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic List<Batch> getBatchWithMoreSellThanStock() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic List<Batch> getDedicatedClientExpiredBatch() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic List<Batch> getBatchWithNoStock() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic List<Batch> getBatchWithBulletinToAsk() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionpublic Date getMaxEntryDate() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaExceptionCopyright © 2012-2013 Herboristerie Cailleau. All Rights Reserved.