Skip to content

Instantly share code, notes, and snippets.

@lonelydimple
Created February 8, 2012 15:31
Show Gist options
  • Save lonelydimple/1770478 to your computer and use it in GitHub Desktop.
Save lonelydimple/1770478 to your computer and use it in GitHub Desktop.
searchKey = state + " " + bondDescription + " " + getAgency().getPaddedAgentCode();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString() + " " + getAgency().getPaddedAgentCode();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + term + " " + getAgency().getPaddedAgentCode();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString() + " " + getAgency().getPaddedAgentCode();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + obligee + " " + getAgency().getPaddedAgentCode();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + obligee + " " + term + " " + new Long(inBondAmount).toString();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
// Most Widely Used Exception
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString();
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
// Minnesota
searchKey = state + " " + bondDescription + " " + obligee;
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription + " " + term;
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
if (pd == null) {
searchKey = state + " " + bondDescription;
pd = GlobalConstants.aDC.getDocumentByViewKeyExactMatch(GlobalConstants.GBONDFORMDB, GlobalConstants.GSTATELU, searchKey);
}
}
}
}
}
}
}
}
}
@ryanhanks
Copy link

searchKey = state + " " + bondDescription + " " + getAgency().getPaddedAgentCode();
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString() + " " + getAgency().getPaddedAgentCode();
searchKey = state + " " + bondDescription + " " + term + " " + getAgency().getPaddedAgentCode();
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString() + " " + getAgency().getPaddedAgentCode();
searchKey = state + " " + bondDescription + " " + obligee + " " + getAgency().getPaddedAgentCode();
searchKey = state + " " + bondDescription + " " + obligee + " " + term + " " + new Long(inBondAmount).toString();
// Most Widely Used Exception
searchKey = state + " " + bondDescription + " " + term + " " + new Long(inBondAmount).toString();
// Minnesota
searchKey = state + " " + bondDescription + " " + obligee;
searchKey = state + " " + bondDescription + " " + term;
searchKey = state + " " + bondDescription;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment