org.nuiton.topia.it.legacy.topiatest.NaturalizedEntityAbstract Maven / Gradle / Ivy
package org.nuiton.topia.it.legacy.topiatest;
import javax.annotation.Generated;
import org.nuiton.i18n.I18n;
import org.nuiton.topia.it.legacy.AbstractTopiaItLegacyEntity;
import org.nuiton.topia.persistence.TopiaEntityVisitor;
import org.nuiton.topia.persistence.TopiaException;
@Generated(value = "org.nuiton.topia.templates.EntityTransformer", date = "Thu Oct 13 17:59:13 CEST 2016")
public abstract class NaturalizedEntityAbstract extends AbstractTopiaItLegacyEntity implements NaturalizedEntity {
/**
* Nom de l'attribut en BD : naturalIdNotNull
*/
protected Integer naturalIdNotNull;
/**
* Nom de l'attribut en BD : naturalIdNull
*/
protected String naturalIdNull;
private static final long serialVersionUID = 7364006844154918197L;
static {
I18n.n("topia.test.common.naturalizedEntity");
I18n.n("topia.test.common.naturalIdNotNull");
I18n.n("topia.test.common.naturalIdNull");
}
@Override
public void accept(TopiaEntityVisitor visitor) throws TopiaException {
visitor.start(this);
accept0(visitor);
visitor.end(this);
}
protected void accept0(TopiaEntityVisitor visitor) throws TopiaException {
visitor.visit(this, PROPERTY_NATURAL_ID_NOT_NULL, Integer.class, naturalIdNotNull);
visitor.visit(this, PROPERTY_NATURAL_ID_NULL, String.class, naturalIdNull);
}
@Override
public void setNaturalIdNotNull(Integer naturalIdNotNull) {
Integer oldValue = this.naturalIdNotNull;
fireOnPreWrite(PROPERTY_NATURAL_ID_NOT_NULL, oldValue, naturalIdNotNull);
this.naturalIdNotNull = naturalIdNotNull;
fireOnPostWrite(PROPERTY_NATURAL_ID_NOT_NULL, oldValue, naturalIdNotNull);
}
@Override
public Integer getNaturalIdNotNull() {
fireOnPreRead(PROPERTY_NATURAL_ID_NOT_NULL, naturalIdNotNull);
Integer result = this.naturalIdNotNull;
fireOnPostRead(PROPERTY_NATURAL_ID_NOT_NULL, naturalIdNotNull);
return result;
}
@Override
public void setNaturalIdNull(String naturalIdNull) {
String oldValue = this.naturalIdNull;
fireOnPreWrite(PROPERTY_NATURAL_ID_NULL, oldValue, naturalIdNull);
this.naturalIdNull = naturalIdNull;
fireOnPostWrite(PROPERTY_NATURAL_ID_NULL, oldValue, naturalIdNull);
}
@Override
public String getNaturalIdNull() {
fireOnPreRead(PROPERTY_NATURAL_ID_NULL, naturalIdNull);
String result = this.naturalIdNull;
fireOnPostRead(PROPERTY_NATURAL_ID_NULL, naturalIdNull);
return result;
}
} //NaturalizedEntityAbstract
© 2015 - 2024 Weber Informatics LLC | Privacy Policy