Search in sources :

Example 1 with SsaName3ParameterObject

use of gov.ca.cwds.data.legacy.cms.dao.SsaName3ParameterObject in project api-core by ca-cwds.

the class SubstituteCareProviderCoreService method prepareSubstituteCareProviderPhoneticSearchKeywords.

private void prepareSubstituteCareProviderPhoneticSearchKeywords(SubstituteCareProvider substituteCareProvider) {
    SsaName3ParameterObject parameterObject = new SsaName3ParameterObject();
    parameterObject.setTableName(PhoneticSearchTables.SCP_PHTT);
    parameterObject.setCrudOper("I");
    parameterObject.setIdentifier(substituteCareProvider.getIdentifier());
    parameterObject.setFirstName(substituteCareProvider.getFirstNm());
    parameterObject.setMiddleName(substituteCareProvider.getMidIniNm());
    parameterObject.setLastName(substituteCareProvider.getLastNm());
    parameterObject.setStreetNumber("");
    parameterObject.setStreetName("");
    parameterObject.setGvrEntc((short) 0);
    parameterObject.setUpdateTimeStamp(new Date());
    parameterObject.setUpdateId(substituteCareProvider.getLstUpdId());
    scpSsaName3Dao.callStoredProc(parameterObject);
}
Also used : SsaName3ParameterObject(gov.ca.cwds.data.legacy.cms.dao.SsaName3ParameterObject) Date(java.util.Date) LocalDate(java.time.LocalDate)

Example 2 with SsaName3ParameterObject

use of gov.ca.cwds.data.legacy.cms.dao.SsaName3ParameterObject in project api-core by ca-cwds.

the class OtherClientNameService method createPhoneticSearchKeywords.

/*
  R - 10841 DocTool rule is implemented here
  Maintain Client Phonetic Entity

  <p>Rule text:
  When a Other Names first, middle or last name field is added, make the appropriate update to the corresponding
  Client Phonetic rows.
  */
private void createPhoneticSearchKeywords(OtherClientName otherClientName) {
    SsaName3ParameterObject parameterObject = new SsaName3ParameterObject();
    parameterObject.setTableName(Constants.PhoneticSearchTables.CLT_PHNT);
    parameterObject.setCrudOper(Constants.SsaName3StoredProcedureCrudOperationCode.INSERT_OPERATION_CODE);
    parameterObject.setNameCd(Constants.PhoneticPrimaryNameCode.OTHER_CLIENT_NAME);
    parameterObject.setIdentifier(otherClientName.getThirdId());
    parameterObject.setFirstName(otherClientName.getFirstName());
    parameterObject.setLastName(otherClientName.getLastName());
    parameterObject.setMiddleName(otherClientName.getMiddleName());
    parameterObject.setUpdateTimeStamp(new Date());
    parameterObject.setUpdateId(otherClientName.getLastUpdateId());
    ssaName3Dao.callStoredProc(parameterObject);
}
Also used : SsaName3ParameterObject(gov.ca.cwds.data.legacy.cms.dao.SsaName3ParameterObject) Date(java.util.Date)

Aggregations

SsaName3ParameterObject (gov.ca.cwds.data.legacy.cms.dao.SsaName3ParameterObject)2 Date (java.util.Date)2 LocalDate (java.time.LocalDate)1