Package org.apache.isis.runtimes.dflt.objectstores.xml.internal.data

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.Data


            LOG.debug("  save object " + onObject());
        }
        final String user = getAuthenticationSession().getUserName();
        onObject().setOptimisticLock(new FileVersion(user));

        final Data data = createObjectData(onObject(), true);
        getDataManager().save(data);
    }
View Full Code Here


        LOG.debug("setting up field " + field + " with " + referenceOid);
        if (referenceOid == null) {
            return;
        }

        final Data fieldData = dataManager.loadData(referenceOid);

        if (fieldData == null) {
            final ObjectAdapter adapter = getPersistenceSession().recreateAdapter(referenceOid, field.getSpecification());
            if (!adapter.getResolveState().isDestroyed()) {
                adapter.changeState(ResolveState.DESTROYED);
View Full Code Here

    // /////////////////////////////////////////////////////////

    @Override
    public ObjectAdapter getObject(final Oid oid, final ObjectSpecification hint) {
        LOG.debug("getObject " + oid);
        final Data data = dataManager.loadData((SerialOid) oid);
        LOG.debug("  data read " + data);

        ObjectAdapter object;

        if (data instanceof ObjectData) {
View Full Code Here

    // remove
    // ////////////////////////////////////////////////////////

    @Override
    public final void remove(final SerialOid oid) throws ObjectNotFoundException, ObjectPersistenceException {
        final Data data = loadData(oid);
        removeReferenceFromInstancesFile(oid, data.getSpecification());
        deleteData(oid);
    }
View Full Code Here

    // remove
    // ////////////////////////////////////////////////////////

    @Override
    public final void remove(final SerialOid oid) throws ObjectNotFoundException, ObjectPersistenceException {
        final Data data = loadData(oid);
        removeReferenceFromInstancesFile(oid, data.getSpecification());
        deleteData(oid);
    }
View Full Code Here

            LOG.debug("  save object " + onObject());
        }
        final String user = getAuthenticationSession().getUserName();
        onObject().setOptimisticLock(new FileVersion(user));

        final Data data = createObjectData(onObject(), true);
        getDataManager().save(data);
    }
View Full Code Here

        LOG.debug("setting up field " + field + " with " + referenceOid);
        if (referenceOid == null) {
            return;
        }

        final Data fieldData = dataManager.loadData(referenceOid);

        if (fieldData == null) {
            final ObjectAdapter adapter =
                getPersistenceSession().recreateAdapter(referenceOid, field.getSpecification());
            if (!adapter.getResolveState().isDestroyed()) {
View Full Code Here

    // /////////////////////////////////////////////////////////

    @Override
    public ObjectAdapter getObject(final Oid oid, final ObjectSpecification hint) {
        LOG.debug("getObject " + oid);
        final Data data = dataManager.loadData((SerialOid) oid);
        LOG.debug("  data read " + data);

        ObjectAdapter object;

        if (data instanceof ObjectData) {
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.Data

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.