com.anaptecs.jeaf.junit.impl.domain.PublicClassBOBase Maven / Gradle / Ivy
The newest version!
package com.anaptecs.jeaf.junit.impl.domain;
import java.util.List;
import com.anaptecs.jeaf.spi.persistence.ClassID;
import com.anaptecs.jeaf.spi.persistence.PersistentObject;
import com.anaptecs.jeaf.xfun.types.EncryptedString;
import com.anaptecs.jeaf.xfun.types.Gender;
import com.anaptecs.jeaf.xfun.types.Period;
@Deprecated
public abstract class PublicClassBOBase extends PersistentObject {
/**
* The class id is a unique id within the domain model of an application for every business object class.
*/
public static final ClassID CLASS_ID = ClassID.createClassID(1006, PublicClassBO.class);
/**
* Name of the database table that is used to store the data of objects of this class.
*/
public static final String TABLE_NAME = "PUBLICCLASSBO";
/**
* Constant for the name of the row that is used to store the values of attribute "period".
*/
public static final String PERIOD_ROW = "PERIOD";
/**
* Constant for the name of attribute "period".
*/
public static final String PERIOD_ATTRIBUTE = "period";
/**
* Constant for the name of the row that is used to store the values of attribute "gender".
*/
public static final String GENDER_ROW = "GENDER";
/**
* Constant for the name of attribute "gender".
*/
public static final String GENDER_ATTRIBUTE = "gender";
/**
* Constant for the name of the row that is used to store the values of attribute "encryptedString".
*/
public static final String ENCRYPTEDSTRING_ROW = "ENCRYPTEDSTRING";
/**
* Constant for the name of attribute "encryptedString".
*/
public static final String ENCRYPTEDSTRING_ATTRIBUTE = "encryptedString";
private Period period;
private Gender gender;
private EncryptedString encryptedString;
/**
* Initialize object. The constructor of the class has visibility protected in order to avoid creating business
* objects not through JEAFs persistence service provider.
*/
protected PublicClassBOBase( ) {
}
/**
* Method returns all instance of this class including potential subclasses.
*
* @return {@link List} List with all objects of this class. The method never returns null.
*/
public static List findAllPublicClassBOs( ) {
return PersistentObject.getPersistenceServiceProvider().findAll(PublicClassBO.class);
}
/**
* Method returns attribute {@link #period}.
*
* @return {@link Period} Value to which {@link #period} is set.
*/
public Period getPeriod( ) {
return period;
}
/**
* Method sets attribute {@link #period}.
*
* @param pPeriod Value to which {@link #period} should be set.
*/
public void setPeriod( Period pPeriod ) {
// Assign value to attribute
period = pPeriod;
}
/**
* Method returns attribute {@link #gender}.
*
* @return {@link Gender} Value to which {@link #gender} is set.
*/
public Gender getGender( ) {
return gender;
}
/**
* Method sets attribute {@link #gender}.
*
* @param pGender Value to which {@link #gender} should be set.
*/
public void setGender( Gender pGender ) {
// Assign value to attribute
gender = pGender;
}
/**
* Method returns attribute {@link #encryptedString}.
*
* @return {@link EncryptedString} Value to which {@link #encryptedString} is set.
*/
public EncryptedString getEncryptedString( ) {
return encryptedString;
}
/**
* Method sets attribute {@link #encryptedString}.
*
* @param pEncryptedString Value to which {@link #encryptedString} should be set.
*/
public void setEncryptedString( EncryptedString pEncryptedString ) {
// Assign value to attribute
encryptedString = pEncryptedString;
}
/**
* Method returns the class id of this business object class.
*
* @return {@link ClassID} Class ID of this business object. The method never returns null.
*/
public ClassID getClassID( ) {
return CLASS_ID;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy