protected void storeTimeout(Timeout t, XMLStreamWriter writer) throws Exception
   {
      writer.writeStartElement(XML.ELEMENT_TIMEOUT);

      if (t.getBlockingTimeoutMillis() != null)
      {
         writer.writeStartElement(XML.ELEMENT_BLOCKING_TIMEOUT_MILLIS);
         writer.writeCharacters(t.getValue(XML.ELEMENT_BLOCKING_TIMEOUT_MILLIS,
                                           t.getBlockingTimeoutMillis().toString()));
         writer.writeEndElement();
      }

      if (t.getIdleTimeoutMinutes() != null)
      {
         writer.writeStartElement(XML.ELEMENT_IDLE_TIMEOUT_MINUTES);
         writer.writeCharacters(t.getValue(XML.ELEMENT_IDLE_TIMEOUT_MINUTES, t.getIdleTimeoutMinutes().toString()));
         writer.writeEndElement();
      }

      if (t.isSetTxQueryTimeout() != null && Boolean.TRUE.equals(t.isSetTxQueryTimeout()))
      {
         writer.writeEmptyElement(XML.ELEMENT_SET_TX_QUERY_TIMEOUT);
      }

      if (t.getQueryTimeout() != null)
      {
         writer.writeStartElement(XML.ELEMENT_QUERY_TIMEOUT);
         writer.writeCharacters(t.getValue(XML.ELEMENT_QUERY_TIMEOUT, t.getQueryTimeout().toString()));
         writer.writeEndElement();
      }

      if (t.getUseTryLock() != null)
      {
         writer.writeStartElement(XML.ELEMENT_USE_TRY_LOCK);
         writer.writeCharacters(t.getValue(XML.ELEMENT_USE_TRY_LOCK, t.getUseTryLock().toString()));
         writer.writeEndElement();
      }

      if (t.getAllocationRetry() != null)
      {
         writer.writeStartElement(XML.ELEMENT_ALLOCATION_RETRY);
         writer.writeCharacters(t.getValue(XML.ELEMENT_ALLOCATION_RETRY, t.getAllocationRetry().toString()));
         writer.writeEndElement();
      }

      if (t.getAllocationRetryWaitMillis() != null)
      {
         writer.writeStartElement(XML.ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS);
         writer.writeCharacters(t.getValue(XML.ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS,
                                           t.getAllocationRetryWaitMillis().toString()));
         writer.writeEndElement();
      }

      if (t.getXaResourceTimeout() != null)
      {
         writer.writeStartElement(XML.ELEMENT_XA_RESOURCE_TIMEOUT);
         writer.writeCharacters(t.getValue(XML.ELEMENT_XA_RESOURCE_TIMEOUT, t.getXaResourceTimeout().toString()));
         writer.writeEndElement();
      }

      writer.writeEndElement();
   }
protected void storeTimeout ( Timeout t , XMLStreamWriter writer ) throws Exception { writer . writeStartElement ( XML . ELEMENT_TIMEOUT ) ; if ( t . getBlockingTimeoutMillis ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_BLOCKING_TIMEOUT_MILLIS ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_BLOCKING_TIMEOUT_MILLIS , t . getBlockingTimeoutMillis ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . getIdleTimeoutMinutes ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_IDLE_TIMEOUT_MINUTES ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_IDLE_TIMEOUT_MINUTES , t . getIdleTimeoutMinutes ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . isSetTxQueryTimeout ( ) != null && Boolean . TRUE . equals ( t . isSetTxQueryTimeout ( ) ) ) { writer . writeEmptyElement ( XML . ELEMENT_SET_TX_QUERY_TIMEOUT ) ; } if ( t . getQueryTimeout ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_QUERY_TIMEOUT ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_QUERY_TIMEOUT , t . getQueryTimeout ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . getUseTryLock ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_USE_TRY_LOCK ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_USE_TRY_LOCK , t . getUseTryLock ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . getAllocationRetry ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_ALLOCATION_RETRY ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_ALLOCATION_RETRY , t . getAllocationRetry ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . getAllocationRetryWaitMillis ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_ALLOCATION_RETRY_WAIT_MILLIS , t . getAllocationRetryWaitMillis ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } if ( t . getXaResourceTimeout ( ) != null ) { writer . writeStartElement ( XML . ELEMENT_XA_RESOURCE_TIMEOUT ) ; writer . writeCharacters ( t . getValue ( XML . ELEMENT_XA_RESOURCE_TIMEOUT , t . getXaResourceTimeout ( ) . toString ( ) ) ) ; writer . writeEndElement ( ) ; } writer . writeEndElement ( ) ; }
Store timeout
@param t The timeout
@param writer The writer
@exception Exception Thrown if an error occurs