Created
February 8, 2012 15:31
-
-
Save lonelydimple/1770478 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
commented
Feb 8, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment