Package com.avoka.fc.core.dao
Class TPacDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.TPacDao
Provides a DAO for the TPac entity.
- Since:
- 5.1.0
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActiveTPacs
(String selectedClientId, UserAccount userAccount, String keyword) Return the list of TPac objects for the currently selected organization and user.getTPacForPK
(Object tpacId) Return the TPac with the specified IDgetTPacForProjectCode
(Client client, String projectCode) Return the TPac with the specified client and project codegetTPacsForClient
(Client client) Return the list of TPac for the given client.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
-
Constructor Details
-
TPacDao
public TPacDao()
-
-
Method Details
-
getTPacForPK
Return the TPac with the specified ID- Parameters:
tpacId
- the OID of the TPac (required)- Returns:
- the matching TPac, or null if not found
-
getTPacForProjectCode
Return the TPac with the specified client and project code- Parameters:
client
- the client (required)projectCode
- the project code of the TPac- Returns:
- the matching TPac, or null if not found
- Since:
- 17.10.0
-
getTPacsForClient
Return the list of TPac for the given client.- Parameters:
client
- the client (required)- Returns:
- the list of TPac for the client
-
getActiveTPacs
Return the list of TPac objects for the currently selected organization and user. If an organization is selected and the user can access the organization, only TPac objects belonging to that organization are returned. Otherwise, all TPac objects associated with clients accessible to the user are returned.- Parameters:
selectedClientId
- the ID of the currently selected client (optional)userAccount
- the user (required)keyword
- the search keyword (optional)- Returns:
- the list of active TPac objects for the applicable client(s), sorted by name
-