Examples of NewObjectPersister


Examples of org.persvr.datasource.NewObjectPersister

          for (WritableDataSource source : dataSourcesAffected)
            source.startTransaction();
          for (NewObject newObject : newObjects) {
            WritableDataSource source = ((WritableDataSource) DataSourceManager.getSourceByPrototype((Persistable)newObject.object.getPrototype()));
            addAffectedSource(source);
            NewObjectPersister persister = source.recordNewObject(newObject.object);
            newObject.object.getId().persistIfNeeded(persister);
            if(newObject.object instanceof PersistableObject)
              ((PersistableObject)newObject.object).lastModified = Transaction.currentTransaction().getTransactionTime();
            else
              ((PersistableArray)newObject.object).lastModified = Transaction.currentTransaction().getTransactionTime();
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.