Examples of Serializable


Examples of java.io.Serializable

    Map<String, Serializable> newProperties = newType.getProperties();

    /* Add / Update Properties from New Type */
    for (Map.Entry<String, Serializable> entry : newProperties.entrySet()) {
      String key = entry.getKey();
      Serializable value = entry.getValue();
      Serializable existingValue = existingProperties.get(key);
      if (!value.equals(existingValue)) {
        if (existingValue != null)
          mergeResult.addRemovedObject(existingValue);

        existingType.setProperty(key, value);
View Full Code Here

Examples of java.io.Serializable

  public JREvaluator loadEvaluator(JasperReport jasperReport, JRDataset dataset) throws JRException
  {
    JRReportCompileData reportCompileData = (JRReportCompileData) jasperReport.getCompileData();
    String unitName = reportCompileData.getUnitName(jasperReport, dataset);
    Serializable compileData = reportCompileData.getDatasetCompileData(dataset);
    return loadEvaluator(compileData, unitName);
  }
View Full Code Here

Examples of java.io.Serializable

  public JREvaluator loadEvaluator(JasperReport jasperReport, JRCrosstab crosstab) throws JRException
  {
    JRReportCompileData reportCompileData = (JRReportCompileData) jasperReport.getCompileData();
    String unitName = reportCompileData.getUnitName(jasperReport, crosstab);
    Serializable compileData = reportCompileData.getCrosstabCompileData(crosstab);
    return loadEvaluator(compileData, unitName);
  }
View Full Code Here

Examples of java.io.Serializable

         {
            QueueSession session = queueConnection.createQueueSession(false,
                  Session.AUTO_ACKNOWLEDGE);
            QueueSender sender = session.createSender(queue);
            QueueReceiver receiver = session.createReceiver(queue);
            Serializable payload = new HashMap();
            Message message = session.createObjectMessage(payload);
            queueConnection.start();
            int count = 0;
            int sendCount = 0;
            while (count < target)
View Full Code Here

Examples of java.io.Serializable

*/
public class SerializableTestCase extends AbstractProxyTest
{
   public void testSerializable() throws Exception
   {
      Serializable object = (Serializable) assertCreateProxy(new TestManagedConnectionFactory(), Serializable.class);
      byte[] bytes = serialize(object);
      Object result = deserialize(bytes);
      assertNotNull(result);
      assertTrue(result instanceof TestManagedConnectionFactory);
      TestManagedConnectionFactory mcf = (TestManagedConnectionFactory) result;
View Full Code Here

Examples of java.io.Serializable

      XADSInstanceClassFactory icf = new XADSInstanceClassFactory();
      XADataSourceDeploymentMetaData xads = new XADataSourceDeploymentMetaData();
      ManagedPropertyImpl property = new ManagedPropertyImpl("xa-datasource-properties");
      icf.getValue(null, property, null, xads);
      InstanceClassFactory icfref = icf;
      Serializable x = xads;
      icfref.getValue(null, property, null, x);
   }
View Full Code Here

Examples of java.io.Serializable

   * @return the compile data
   * @throws JRException
   */
  public Serializable getDatasetCompileData(JRDataset dataset) throws JRException
  {
    Serializable compileData;
    if (dataset.isMainDataset())
    {
      compileData = getMainDatasetCompileData();
    }
    else
View Full Code Here

Examples of java.io.Serializable

   * @return the compile data
   * @throws JRException
   */
  public Serializable getCrosstabCompileData(JRCrosstab crosstab) throws JRException
  {
    Serializable compileData = (Serializable) crosstabCompileData.get(Integer.valueOf(crosstab.getId()));
    if (compileData == null)
    {
      throw new JRException("Compile data for crosstab not found in the report.");
    }
   
View Full Code Here

Examples of java.io.Serializable

 
  protected JRReportCompileData createTableReportCompileData(
      JasperReport parentReport, JRDataset reportSubdataset)
      throws JRException
  {
    Serializable reportCompileDataObj = parentReport.getCompileData();
    if (!(reportCompileDataObj instanceof JRReportCompileData))
    {
      throw new JRRuntimeException("Unsupported compiled report data of type "
          + reportCompileDataObj.getClass().getName());
    }
   
    JRReportCompileData reportCompileData = (JRReportCompileData) reportCompileDataObj;
    Serializable datasetCompileData = reportCompileData.getDatasetCompileData(
        reportSubdataset);
   
    JRReportCompileData tableReportCompileData = new TableReportCompileData(
        parentReport);
    tableReportCompileData.setMainDatasetCompileData(datasetCompileData);
   
    JRDataset[] datasets = parentReport.getDatasets();
    if (datasets != null)
    {
      for (JRDataset dataset : datasets)
      {
        Serializable compileData = reportCompileData.getDatasetCompileData(dataset);
        tableReportCompileData.setDatasetCompileData(dataset, compileData);
      }
    }
    return tableReportCompileData;
  }
View Full Code Here

Examples of java.io.Serializable

    }
  }

  public Object newInstance(String id) throws LayerException {
    try {
      Serializable ser = (Serializable) ConvertUtils.convert(id, getEntityMetadata().getIdentifierType()
          .getReturnedClass());
      return getEntityMetadata().instantiate(ser, (SessionImplementor) getSessionFactory().getCurrentSession());
    } catch (Exception e) {
      throw new LayerException(e, ExceptionCode.HIBERNATE_CANNOT_CREATE_POJO, getFeatureInfo()
          .getDataSourceName());
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.