Examples of ExportInfo


Examples of noNamespace.EXPORTINFODocument.EXPORTINFO

    public void doExport(String sqlStatement, File fHandle) throws Exception{
        Rep("Will execute <"+sqlStatement+">");
        TABLEDATADocument doc = TABLEDATADocument.Factory.newInstance();
        TABLEDATA tableData = doc.addNewTABLEDATA();
        EXPORTINFO exportInfo = tableData.addNewEXPORTINFO();
        exportInfo.setSTATEMENT(sqlStatement);
        exportInfo.setTIMESTAMP(Calendar.getInstance());
        ResultSet prs = oraConnection.prepareCall(sqlStatement).executeQuery();
        ResultSetMetaData columns = prs.getMetaData();
        int colCount = columns.getColumnCount();
        Rep("Statement returns "+colCount+" columns");
        String wColumns = "";
        for(int i=0;i<colCount;i++){
            COLUMNTYPE colType = exportInfo.addNewCOLUMNTYPE();
            colType.setNAME(columns.getColumnName(i+1));
            colType.setTYPE(columns.getColumnTypeName(i+1));
            if(columns.getColumnTypeName(i+1).equalsIgnoreCase("DATE")){
                colType.setFORMATMASK(DATE_FORMAT);
            }
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

                  XMLGregorianCalendar currentTime = lifetime.getCurrentTime();
                  Duration refreshDuration = lifetime.getRefreshDuration();
                  XMLGregorianCalendar terminationTime = lifetime.getTerminationTime();
               }

               ExportInfo exportInfo = new ExportInfo(System.currentTimeMillis(), errorCodeToHandle, handleToState, exportContextHolder.value);
               getConsumerRegistry().getMigrationService().add(exportInfo);
               return exportInfo;
            }
            catch (OperationNotSupported operationNotSupported)
            {
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

      for (ExportErrorMapping error : errors)
      {
         errorCodesToHandles.put(error.getErrorCode(), error.getPortletHandles());
      }

      return new ExportInfo(getExportTime(), errorCodesToHandles, states, IOTools.safeGetBytes(getExportContext()));
   }
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

      }
   }

   public String deleteExport()
   {
      ExportInfo export = getCurrentExport().getExport();
      final WSRPConsumer consumer = getConsumer();
      if (consumer.getMigrationService().remove(export).equals(export))
      {
         // release the export on the producer
         try
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

                  XMLGregorianCalendar currentTime = lifetime.getCurrentTime();
                  Duration refreshDuration = lifetime.getRefreshDuration();
                  XMLGregorianCalendar terminationTime = lifetime.getTerminationTime();
               }*/

               ExportInfo exportInfo = new ExportInfo(System.currentTimeMillis(), errorCodeToHandle, handleToState, exportContextHolder.value);
               getConsumerRegistry().getMigrationService().add(exportInfo);
               return exportInfo;
            }
            catch (OperationNotSupported operationNotSupported)
            {
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

      }
   }

   public String deleteExport()
   {
      ExportInfo export = currentExport.getExport();
      final WSRPConsumer consumer = getConsumer();
      if (consumer.getMigrationService().remove(export) == export)
      {
         // release the export on the producer
         try
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

               XMLGregorianCalendar currentTime = lifetime.getCurrentTime();
               Duration refreshDuration = lifetime.getRefreshDuration();
               XMLGregorianCalendar terminationTime = lifetime.getTerminationTime();
            }

            ExportInfo exportInfo = new ExportInfo(System.currentTimeMillis(), errorCodeToHandle, handleToState, exportContextHolder.value);
            migrationService.add(exportInfo);
            return exportInfo;
         }
         catch (OperationNotSupported operationNotSupported)
         {
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ExportInfo

                  XMLGregorianCalendar currentTime = lifetime.getCurrentTime();
                  Duration refreshDuration = lifetime.getRefreshDuration();
                  XMLGregorianCalendar terminationTime = lifetime.getTerminationTime();
               }

               ExportInfo exportInfo = new ExportInfo(System.currentTimeMillis(), errorCodeToHandle, handleToState, exportContextHolder.value);
               getConsumerRegistry().getMigrationService().add(exportInfo);
               return exportInfo;
            }
            catch (OperationNotSupported operationNotSupported)
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.