/** * PUBLIC: * Returns the adapter property associated the given name. * If the interaction is associated with a query that has a descriptor, * The descriptor's properties are automatically inherited. */ public Object getProperty(String name) { Object value = getProperties().get(name); // Check descriptor property if available. if ((value == null) && (getQuery() != null) && (getQuery().getDescriptor() != null)) { value = getQuery().getDescriptor().getProperty(name); } return value; }
/** * PUBLIC: * Returns the adapter property associated the given name. * If the interaction is associated with a query that has a descriptor, * The descriptor's properties are automatically inherited. */ public Object getProperty(String name) { Object value = getProperties().get(name); // Check descriptor property if available. if ((value == null) && (getQuery() != null) && (getQuery().getDescriptor() != null)) { value = getQuery().getDescriptor().getProperty(name); } return value; }
/** * PUBLIC: * Returns the adapter property associated the given name. * If the interaction is associated with a query that has a descriptor, * The descriptor's properties are automatically inherited. */ public Object getProperty(String name) { Object value = getProperties().get(name); // Check descriptor property if available. if ((value == null) && (getQuery() != null) && (getQuery().getDescriptor() != null)) { value = getQuery().getDescriptor().getProperty(name); } return value; }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
NamespaceResolver namespaceResolver = null; try { namespaceResolver = ((EISDescriptor)interaction.getQuery().getDescriptor()).getNamespaceResolver(); } catch (Exception e) { fileSpec.setXQuery((String)interaction.getProperty(XQUERY)); fileSpec.setDOM((Element)interaction.getProperty(DOM)); if (interaction.getQuery().isDeleteObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.DELETE); } else if (interaction.getQuery().isInsertObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.INSERT); } else if (interaction.getQuery().isModifyQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.UPDATE); } else if (interaction.getQuery().isReadQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.READ);
NamespaceResolver namespaceResolver = null; try { namespaceResolver = ((EISDescriptor)interaction.getQuery().getDescriptor()).getNamespaceResolver(); } catch (Exception e) { fileSpec.setXQuery((String)interaction.getProperty(XQUERY)); fileSpec.setDOM((Element)interaction.getProperty(DOM)); if (interaction.getQuery().isDeleteObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.DELETE); } else if (interaction.getQuery().isInsertObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.INSERT); } else if (interaction.getQuery().isModifyQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.UPDATE); } else if (interaction.getQuery().isReadQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.READ);
session.startOperationProfile(SessionProfiler.SqlPrepare, eisCall.getQuery(), SessionProfiler.ALL); Record input = null; Record output = null; output = getEISPlatform().createOutputRecord(eisCall, translationRow, this); } finally { session.endOperationProfile(SessionProfiler.SqlPrepare, eisCall.getQuery(), SessionProfiler.ALL); session.startOperationProfile(SessionProfiler.StatementExecute, eisCall.getQuery(), SessionProfiler.ALL); try { boolean success = true; AbstractRecord outputRow = getEISPlatform().buildRow(output, eisCall, this); if (outputRow != null) { eisCall.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, eisCall); session.endOperationProfile(SessionProfiler.StatementExecute, eisCall.getQuery(), SessionProfiler.ALL);
session.startOperationProfile(SessionProfiler.SqlPrepare, eisCall.getQuery(), SessionProfiler.ALL); Record input = null; Record output = null; output = getEISPlatform().createOutputRecord(eisCall, translationRow, this); } finally { session.endOperationProfile(SessionProfiler.SqlPrepare, eisCall.getQuery(), SessionProfiler.ALL); session.startOperationProfile(SessionProfiler.StatementExecute, eisCall.getQuery(), SessionProfiler.ALL); try { boolean success = true; AbstractRecord outputRow = getEISPlatform().buildRow(output, eisCall, this); if (outputRow != null) { eisCall.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, eisCall); session.endOperationProfile(SessionProfiler.StatementExecute, eisCall.getQuery(), SessionProfiler.ALL);
session.startOperationProfile(SessionProfiler.SQL_PREPARE, eisCall.getQuery(), SessionProfiler.ALL); Record input = null; Record output = null; output = getEISPlatform().createOutputRecord(eisCall, this); } finally { session.endOperationProfile(SessionProfiler.SQL_PREPARE, eisCall.getQuery(), SessionProfiler.ALL); session.startOperationProfile(SessionProfiler.STATEMENT_EXECUTE, eisCall.getQuery(), SessionProfiler.ALL); try { InteractionSpec interactionSpec = getEISPlatform().buildInteractionSpec(eisCall); AbstractRecord outputRow = getEISPlatform().buildRow(output, eisCall, this); if (outputRow != null) { eisCall.getQuery().setProperty("output", outputRow); if (session.hasEventManager()) { session.getEventManager().outputParametersDetected(outputRow, eisCall); session.endOperationProfile(SessionProfiler.STATEMENT_EXECUTE, eisCall.getQuery(), SessionProfiler.ALL);