Class TransactionLookupDao


  • public class TransactionLookupDao
    extends AbstractDao
    Provides a DAO for the TransactionLookup entity.
    Since:
    4.0.0
    See Also:
    TransactionLookup
    • Constructor Detail

      • TransactionLookupDao

        public TransactionLookupDao()
    • Method Detail

      • updateOrCreateLookup

        public boolean updateOrCreateLookup​(Long clientOid,
                                            Long formOid,
                                            String clientCode,
                                            String formCode,
                                            String formName)
        Update or create lookup.
        Parameters:
        clientOid - the client oid
        formOid - the form oid
        clientCode - the client code
        formCode - the form code
        formName - the form name
        Returns:
        true, if successful
      • getFormName

        public String getFormName​(String formOid)
        Gets the form name.
        Parameters:
        formOid - the form oid
        Returns:
        the form name
      • getFormId

        public Long getFormId​(String formCode)
        Gets the form id.
        Parameters:
        formCode - the form code
        Returns:
        the form id
      • getClientId

        public Long getClientId​(String clientCode)
        Gets the client id.
        Parameters:
        clientCode - the client code
        Returns:
        the client id
      • getLookupsForClient

        public List<TransactionLookup> getLookupsForClient​(Object clientId)
        The list of transaction lookups for a specific client This query uses a fetch limit of 10000.
        Parameters:
        clientId - the OID of the client (optional)
        Returns:
        the list of transaction lookups for the client
        Since:
        4.1.0