Package com.avoka.fc.core.dao
Class ClientReconciliationFileDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.ClientReconciliationFileDao
-
public class ClientReconciliationFileDao extends BaseDao
Provides a DAO for the Client Reconciliation File entity.- Since:
- 4.0.0
- See Also:
ClientReconciliationFile
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description ClientReconciliationFileDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
deleteFilesBeforeDate(Client client, Date reconciliationTime)
Deletes any ClientReconciliationFile entities before the specified reconciliation timeClientReconciliationFile
getFileByTimestamp(Client client, Date reconciliationTime)
Return the client reconciliation file entity for a client and reconciliation time.ClientReconciliationFile
getUserPropertyForPK(Object id)
Return the client reconciliation file entity with the specified OID.void
insertNewFile(Client client, String fileName, Date reconciliationTime, byte[] contents)
Insert a new ClientReconciliationFile object to represent the specified reconciliation file-
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
-
getUserPropertyForPK
public ClientReconciliationFile getUserPropertyForPK(Object id)
Return the client reconciliation file entity with the specified OID.- Parameters:
id
- the OID- Returns:
- the matching client reconciliation file entity, or null if not found
-
getFileByTimestamp
public ClientReconciliationFile getFileByTimestamp(Client client, Date reconciliationTime)
Return the client reconciliation file entity for a client and reconciliation time.- Parameters:
client
- the client organization (required)reconciliationTime
- the reconciliation time (required)- Returns:
- the matching client reconciliation file entity, or null if not found
-
insertNewFile
public void insertNewFile(Client client, String fileName, Date reconciliationTime, byte[] contents)
Insert a new ClientReconciliationFile object to represent the specified reconciliation file- Parameters:
client
- the client organization (required)fileName
- the fileName (required)reconciliationTime
- The reconciliation time (required)contents
- The file contents (required)
-
deleteFilesBeforeDate
public int deleteFilesBeforeDate(Client client, Date reconciliationTime)
Deletes any ClientReconciliationFile entities before the specified reconciliation time- Parameters:
client
- the client organization (required)reconciliationTime
- The reconciliation time (required)- Returns:
- the number of records deleted
-
-