sparqlGraphLibrary/src/main/java/com/ge/research/semtk/sparqlX/dispatch/DispatchServiceManager.java
private void calcConstraintType() throws Exception {
		
		// return if this was already calculated
		if (this.constraintType == null || !this.constraintType.equals(UNSET)) { return; }
		
		// initialize constraintType
		this.constraintType = null;
		
		// nothing to do
		if (this.serviceMnemonic == null) {
			return;
		}
		// check for programmer error
		if (this.serviceMnemonic.equals(UNSET)) {
			throw new Exception("Error: called calcConstraintType with UNSET mnemonic");
		}
		
		Table tab = DispatchServiceManager.edcQueryConstraintsCache.getSubsetWhereMatches("mnemonic", this.serviceMnemonic);
		if (tab.getNumRows() == 0) {
			this.constraintType = null;
		} else if (tab.getNumRows() > 1) {
			throw new Exception("Not implemented: multiple constraint types found for: " + this.serviceMnemonic);
		} else {
			this.constraintType = tab.getCell(0, "edcConstraintName");
			this.constraintVarClassname = tab.getCell(0, "edcConstraintVarClassname");
			this.constraintVarKeyname = tab.getCell(0, "edcConstraintVarKeyname");
		}
	}
/**
	 * pull constraint type info out of the static cache
	 * @return 
	 * @param mnemonic
	 * @throws Exception
	 */
pull constraint type info out of the static cache
@return
@param mnemonic
@throws Exception
pull constraint type info out of the static cache @return @param mnemonic @throws Exception
private void calcConstraintType() throws Exception {
		if (this.constraintType == null || !this.constraintType.equals(UNSET)) { return; }
		this.constraintType = null;
		if (this.serviceMnemonic == null) {
			return;
		}
		if (this.serviceMnemonic.equals(UNSET)) {
			throw new Exception("Error: called calcConstraintType with UNSET mnemonic");
		}
		Table tab = DispatchServiceManager.edcQueryConstraintsCache.getSubsetWhereMatches("mnemonic", this.serviceMnemonic);
		if (tab.getNumRows() == 0) {
			this.constraintType = null;
		} else if (tab.getNumRows() > 1) {
			throw new Exception("Not implemented: multiple constraint types found for: " + this.serviceMnemonic);
		} else {
			this.constraintType = tab.getCell(0, "edcConstraintName");
			this.constraintVarClassname = tab.getCell(0, "edcConstraintVarClassname");
			this.constraintVarKeyname = tab.getCell(0, "edcConstraintVarKeyname");
		}
	}
private void calcConstraintType ( ) throws Exception { if ( this . constraintType == null || ! this . constraintType . equals ( UNSET ) ) { return ; } this . constraintType = null ; if ( this . serviceMnemonic == null ) { return ; } if ( this . serviceMnemonic . equals ( UNSET ) ) { throw new Exception ( "Error: called calcConstraintType with UNSET mnemonic" ) ; } Table tab = DispatchServiceManager . edcQueryConstraintsCache . getSubsetWhereMatches ( "mnemonic" , this . serviceMnemonic ) ; if ( tab . getNumRows ( ) == 0 ) { this . constraintType = null ; } else if ( tab . getNumRows ( ) > 1 ) { throw new Exception ( "Not implemented: multiple constraint types found for: " + this . serviceMnemonic ) ; } else { this . constraintType = tab . getCell ( 0 , "edcConstraintName" ) ; this . constraintVarClassname = tab . getCell ( 0 , "edcConstraintVarClassname" ) ; this . constraintVarKeyname = tab . getCell ( 0 , "edcConstraintVarKeyname" ) ; } }
pull constraint type info out of the static cache
 @return
 @param mnemonic
 @throws Exception
pull constraint type info out of the static cache @return @param mnemonic @throws Exception
// return if this was already calculated // initialize constraintType // nothing to do // check for programmer error