Package com.avoka.fc.core.dao
Class TransactionLookupDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.TransactionLookupDao
-
public class TransactionLookupDao extends AbstractDao
Provides a DAO for the TransactionLookup entity.- Since:
- 4.0.0
- See Also:
TransactionLookup
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description TransactionLookupDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getClientId(String clientCode)
Gets the client id.Long
getFormId(String formCode)
Gets the form id.String
getFormName(String formOid)
Gets the form name.List<TransactionLookup>
getLookupsForClient(Object clientId)
The list of transaction lookups for a specific client This query uses a fetch limit of 10000.boolean
updateOrCreateLookup(Long clientOid, Long formOid, String clientCode, String formCode, String formName)
Update or create lookup.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
updateOrCreateLookup
public boolean updateOrCreateLookup(Long clientOid, Long formOid, String clientCode, String formCode, String formName)
Update or create lookup.- Parameters:
clientOid
- the client oidformOid
- the form oidclientCode
- the client codeformCode
- the form codeformName
- 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
-
-