org.nuiton.topia.it.legacy.topiatest.QueriedEntityAbstract 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 QueriedEntityAbstract extends AbstractTopiaItLegacyEntity implements QueriedEntity {
/**
* Nom de l'attribut en BD : testAdd
*/
protected String testAdd;
private static final long serialVersionUID = 7089563437560574821L;
static {
I18n.n("topia.test.common.queriedEntity");
I18n.n("topia.test.common.testAdd");
}
@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_TEST_ADD, String.class, testAdd);
}
@Override
public void setTestAdd(String testAdd) {
String oldValue = this.testAdd;
fireOnPreWrite(PROPERTY_TEST_ADD, oldValue, testAdd);
this.testAdd = testAdd;
fireOnPostWrite(PROPERTY_TEST_ADD, oldValue, testAdd);
}
@Override
public String getTestAdd() {
fireOnPreRead(PROPERTY_TEST_ADD, testAdd);
String result = this.testAdd;
fireOnPostRead(PROPERTY_TEST_ADD, testAdd);
return result;
}
} //QueriedEntityAbstract
© 2015 - 2024 Weber Informatics LLC | Privacy Policy