
de.tsl2.nano.persistence.replication.ReplicationObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.directaccess Show documentation
Show all versions of tsl2.nano.directaccess Show documentation
TSL2 JEE Direct Access (local JPA through GenericLocalBeanContainer, GenericLocalServiceBean, GenericEntityManager, ScriptTool, Replication)
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: Tom, Thomas Schneider
* created on: 30.10.2015
*
* Copyright: (c) Thomas Schneider 2015, all rights reserved
*/
package de.tsl2.nano.persistence.replication;
import java.util.LinkedList;
import java.util.List;
/**
* The replication object holds the entity instance to persist (only if istransient = false). a have havy weight means,
* a lot of objects depend on this object.
*
* @author Tom, Thomas Schneider
* @version $Revision$
*/
public class ReplicationObject {
Object instance;
long weight;
boolean istransient;
List depends = new LinkedList();
/**
* constructor
* @param instance
* @param weight
* @param istransient
* @param depends
*/
protected ReplicationObject(Object instance, long weight, boolean istransient, List depends) {
super();
this.instance = instance;
this.weight = weight;
this.istransient = istransient;
this.depends = depends;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy