public interface NativeQueryHandler
extends org.cyclos.impl.CustomBean
| Modifier and Type | Method and Description |
|---|---|
long |
clearEntitiesToIndex(java.lang.String index)
Removes all entities to index for a specific index index
|
int |
closeNextAccounts()
Closes a batch of accounts, returning the affected number of accounts.
|
long |
copyLargeObject(long sourceOid)
Makes a copy of the large object with the specified oid and returns the oid of the copy.
|
void |
deleteLargeObject(long oid)
Deletes the large object with the specified oid.
|
org.cyclos.impl.banking.NativeAccountStatus |
getAccountStatus(Account account,
java.util.Date date)
Returns the native account status at a given date
|
com.querydsl.jpa.JPQLTemplates |
getJpaQueryTemplates()
Returns the templates used for jpa queries
|
java.lang.Long |
getNextTransactionNumber()
Returns the number used to generate the next transaction number
|
java.lang.Long |
getObjectId(long id)
Returns the oid associated to the specified stored file id.
|
SearchHandler |
getSearchHandler()
Returns a handler to search on the database
|
long |
indexAll(java.lang.String index,
java.lang.Class<? extends BaseEntity> entityType)
Indexes all entities in the given index
|
long |
insertAccountsPendingToCharge(AccountFeeLog log)
Inserts the references for the accounts pending to charge the given account fee log
|
void |
insertEntitiesToIndex(java.lang.String index,
java.util.Collection<java.lang.Long> entityIds)
Bulk inserts the given entities to index
|
long |
insertMailings(MailingList mailingList)
Inserts mailings for all users for a given mailing list message
|
void |
insertTransferInitialStatus(TransferType transferType,
TransferStatus status)
Inserts the relation for current status and a log for each transfer of the given type
|
void |
insertUserIncomingMessages(SendMessageDTO sendMessage,
MessageOwner messageOwner,
User sendingUser,
OutgoingMessage outgoing)
Inserts incoming messages for users for a given outgoing message
|
long |
insertUsersForBulkAction(java.lang.Long bulkActionId,
UserQuery query)
Inserts a record of
BulkActionUser for each returned user of the given query |
com.mysema.commons.lang.CloseableIterator<Record> |
iterateRecords(RecordQuery params)
Iterates record entities according to the given query parameters
|
com.mysema.commons.lang.CloseableIterator<java.lang.Long> |
iterateUserIds(UserQuery query)
Iterates user ids according to the given query parameters
|
com.mysema.commons.lang.CloseableIterator<UserWithFieldsVO> |
iterateUsers(UserQuery query)
Iterates user entities according to the given query parameters
|
java.util.List<java.lang.Long> |
nextAccountIdsToClose(int maxCount,
java.util.Date limit)
Returns up to the maximum count of account ids to close balance.
|
java.io.InputStream |
openLargeObject(long oid)
Opens the large object associated to the specified oid.
|
Pair<java.util.Set<java.lang.String>,java.util.Set<java.lang.Long>> |
purgeRemovedBuiltinLanguages()
Removes all languages that were pointing to
BuiltinLanguages that no longer exist, returning both the
language templates that no longer exist and the ids of languages that were removed |
long |
reindexTranslations()
Reindex translation files, allowing searching for keys which are not customized.
|
Page<TranslationKeyVO> |
searchTranslationKeys(TranslationQuery params)
Searches for translation keys according o the given query parameters
|
void |
setEntityToIndex(java.lang.String index,
java.lang.Long entityId)
Inserts the entity to index.
|
void |
setObjectId(long storedFileId,
long oid)
Sets the oid to the specified stored file id.
|
boolean |
supportsBlobsInReadOnlyTransactions()
Returns whether the underlying database supports accessing BLOBs from pure read-only transactions
|
java.util.List<org.cyclos.impl.sql.BalanceUpdateResult> |
updateAccountBalances(java.util.Collection<org.cyclos.impl.sql.BalanceUpdateParams> updates,
boolean fetchDates)
Updates a set of account balances.
|
long |
writeLargeObject(java.io.InputStream in)
Creates a new large object reading the content from the stream and returns its oid.
|
long clearEntitiesToIndex(java.lang.String index)
int closeNextAccounts()
long copyLargeObject(long sourceOid)
throws java.io.IOException
java.io.IOExceptionvoid deleteLargeObject(long oid)
org.cyclos.impl.banking.NativeAccountStatus getAccountStatus(Account account, java.util.Date date)
com.querydsl.jpa.JPQLTemplates getJpaQueryTemplates()
java.lang.Long getNextTransactionNumber()
java.lang.Long getObjectId(long id)
SearchHandler getSearchHandler()
long indexAll(java.lang.String index,
java.lang.Class<? extends BaseEntity> entityType)
long insertAccountsPendingToCharge(AccountFeeLog log)
void insertEntitiesToIndex(java.lang.String index,
java.util.Collection<java.lang.Long> entityIds)
long insertMailings(MailingList mailingList)
void insertTransferInitialStatus(TransferType transferType, TransferStatus status)
void insertUserIncomingMessages(SendMessageDTO sendMessage, MessageOwner messageOwner, User sendingUser, OutgoingMessage outgoing)
long insertUsersForBulkAction(java.lang.Long bulkActionId,
UserQuery query)
BulkActionUser for each returned user of the given querycom.mysema.commons.lang.CloseableIterator<Record> iterateRecords(RecordQuery params)
com.mysema.commons.lang.CloseableIterator<java.lang.Long> iterateUserIds(UserQuery query)
com.mysema.commons.lang.CloseableIterator<UserWithFieldsVO> iterateUsers(UserQuery query)
java.util.List<java.lang.Long> nextAccountIdsToClose(int maxCount,
java.util.Date limit)
java.io.InputStream openLargeObject(long oid)
Pair<java.util.Set<java.lang.String>,java.util.Set<java.lang.Long>> purgeRemovedBuiltinLanguages()
BuiltinLanguages that no longer exist, returning both the
language templates that no longer exist and the ids of languages that were removedlong reindexTranslations()
Page<TranslationKeyVO> searchTranslationKeys(TranslationQuery params)
void setEntityToIndex(java.lang.String index,
java.lang.Long entityId)
void setObjectId(long storedFileId,
long oid)
boolean supportsBlobsInReadOnlyTransactions()
java.util.List<org.cyclos.impl.sql.BalanceUpdateResult> updateAccountBalances(java.util.Collection<org.cyclos.impl.sql.BalanceUpdateParams> updates,
boolean fetchDates)
long writeLargeObject(java.io.InputStream in)
throws java.io.IOException
java.io.IOException