
org.nuiton.topia.it.mapping.test11.A11EAbstract Maven / Gradle / Ivy
The newest version!
package org.nuiton.topia.it.mapping.test11;
/*-
* #%L
* ToPIA :: IT
* %%
* Copyright (C) 2004 - 2024 Code Lutin
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import java.util.Date;
import org.nuiton.topia.persistence.TopiaEntityVisitor;
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.internal.AbstractTopiaEntity;
public abstract class A11EAbstract extends AbstractTopiaEntity implements A11E {
/**
* Nom de l'attribut en BD : integerField
*/
protected Integer integerField;
/**
* Nom de l'attribut en BD : stringField
*/
protected String stringField;
/**
* Nom de l'attribut en BD : dateField
*/
protected Date dateField;
private static final long serialVersionUID = 7233962089213485619L;
@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_INTEGER_FIELD, Integer.class, integerField);
visitor.visit(this, PROPERTY_STRING_FIELD, String.class, stringField);
visitor.visit(this, PROPERTY_DATE_FIELD, Date.class, dateField);
}
@Override
public void setIntegerField(Integer integerField) {
this.integerField = integerField;
}
@Override
public Integer getIntegerField() {
Integer result = this.integerField;
return result;
}
@Override
public void setStringField(String stringField) {
this.stringField = stringField;
}
@Override
public String getStringField() {
String result = this.stringField;
return result;
}
@Override
public void setDateField(Date dateField) {
this.dateField = dateField;
}
@Override
public Date getDateField() {
Date result = this.dateField;
return result;
}
} //A11EAbstract
© 2015 - 2025 Weber Informatics LLC | Privacy Policy