Package net.sf.joafip.store.entity.objectio

Examples of net.sf.joafip.store.entity.objectio.StorageInfo


  public void test() throws ClassInfoException, ProxyException {
    final Class<Bob1> objectClass = Bob1.class;
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        new ClassLoaderProvider(), classInfoFactory);
    // change persistence id to have a new proxy class name
    proxyManager2.setPersistenceId(proxyManager2.getPersistenceId() + 1);
    final Object object = proxyManager2.newInstanceNoConstruction(
View Full Code Here


    classInfoFactory.setConversionManager(new ConversionManager(
        classInfoFactory));

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);
    final Bob1 bob1 = (Bob1) proxyManager2.newInstanceNoConstruction(
        classInfo, storageInfo, this, DataRecordIdentifier.LAST, true)
View Full Code Here

      final Class<?>[] parameterTypes, final Object[] initargs) {
    try {
      final ClassInfo objectClassInfo = classInfoFactory
          .getNoProxyClassInfo(objectClass);
      return proxyManager2.newInstanceConstruct(objectClassInfo,
          parameterTypes, initargs, new StorageInfo(), this, null,
          true);
    } catch (ClassInfoException exception) {
      throw new ObjectIORuntimeException(exception);
    } catch (ProxyException exception) {
      throw new ObjectIORuntimeException(exception);
View Full Code Here

  public Object newInstance(final Class<?> objectClass) {
    try {
      final ClassInfo objectClassInfo = classInfoFactory
          .getNoProxyClassInfo(objectClass);
      return proxyManager2.newInstanceConstruct(objectClassInfo,
          new StorageInfo(), this, null, true);
    } catch (ClassInfoException exception) {
      throw new ObjectIORuntimeException(exception);
    } catch (ProxyException exception) {
      throw new ObjectIORuntimeException(exception);
    }
View Full Code Here

  @Override
  public Object newInstanceNoConstruction(final ClassInfo objectClassInfo) {
    try {
      return proxyManager2.newInstanceNoConstruction(objectClassInfo,
          new StorageInfo(), this, null, true);
    } catch (ProxyException exception) {
      throw new ObjectIORuntimeException(exception);
    }
  }
View Full Code Here

    classInfoFactory.setConversionManager(new ConversionManager(
        classInfoFactory));

    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(objectClass);
    final StorageInfo storageInfo = new StorageInfo();
    final ClassLoaderProvider classLoaderProvider = new ClassLoaderProvider();
    final ProxyManager2 proxyManager2 = new ProxyManager2(
        classLoaderProvider, classInfoFactory);
    final Bob1 bob1 = (Bob1) proxyManager2.newInstanceNoConstruction(
        classInfo, storageInfo, this, DataRecordIdentifier.LAST, true)
View Full Code Here

      final Class<?>[] parameterTypes, final Object[] initargs) {
    try {
      final ClassInfo objectClassInfo = classInfoFactory
          .getNoProxyClassInfo(objectClass);
      return proxyManager2.newInstanceConstruct(objectClassInfo,
          parameterTypes, initargs, new StorageInfo(), this,
          null/* dataRecordIdentifier */, true/* persisted */);
    } catch (ClassInfoException exception) {
      throw new StoreRuntimeException(exception);
    } catch (ProxyException exception) {
      throw new StoreRuntimeException(exception);
View Full Code Here

  public Object newInstance(final Class<?> objectClass) {
    try {
      final ClassInfo objectClassInfo = classInfoFactory
          .getNoProxyClassInfo(objectClass);
      return proxyManager2.newInstanceConstruct(objectClassInfo,
          new StorageInfo(), this, null/* dataRecordIdentifier */,
          true/* persisted */);
    } catch (ClassInfoException exception) {
      throw new StoreRuntimeException(exception);
    } catch (ProxyException exception) {
      throw new StoreRuntimeException(exception);
View Full Code Here

  @Override
  public Object newInstanceNoConstruction(final ClassInfo objectClassInfo) {
    try {
      return proxyManager2.newInstanceNoConstruction(objectClassInfo,
          new StorageInfo(), this, null/* dataRecordIdentifier */,
          true/* persisted */).getObject();
    } catch (ProxyException exception) {
      throw new StoreRuntimeException(exception);
    }
  }
View Full Code Here

  }

  private Object newProxyInstance(final ClassInfo objectClassInfo,
      final Class<?>[] parameterTypes, final Object[] initargs)
      throws ProxyException {
    final StorageInfo storageInfo = new StorageInfo();
    return proxyManager2.newInstanceConstruct(objectClassInfo,
        parameterTypes, initargs, storageInfo, objectIOManager,
        null/*
           * no data record identifier
           */, true/* persisted */);
 
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.StorageInfo

Copyright © 2018 www.massapicom. 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.