
quickstart.pojo.model.impl.PersonImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plasma-test-model Show documentation
Show all versions of plasma-test-model Show documentation
The Plasma Test Model Module
The newest version!
package quickstart.pojo.model.impl;
import java.io.Serializable;
import org.plasma.sdo.core.CoreDataObject;
import java.util.List;
import java.util.ArrayList;
import java.lang.String;
import java.util.Date;
import quickstart.pojo.model.Organization;
import quickstart.pojo.model.Party;
import quickstart.pojo.model.Person;
/**
* Derived from enum plasma.test.model.humanresources.Person
*
* Generated implementation class representing the domain model entity Person.
*
*
* Data Store Mapping:
* Corresponds to the physical data store entity PERSON.
*
*
*/
public class PersonImpl extends CoreDataObject implements Serializable, Person
{
private static final long serialVersionUID = 1L;
/** The SDO namespace URI associated with the SDO Type for this class */
public static final String NAMESPACE_URI = "http://plasma-test/humanresources";
/**
* Default No-arg constructor required for serialization operations. This method
* is NOT intended to be used within application source code.
*/
public PersonImpl() {
super();
}
public PersonImpl(commonj.sdo.Type type) {
super(type);
}
/**
* Returns true if the age property is set.
*
* Property Definition:
* See {@link #getAge() getAge} or {@link #setAge(int value) setAge(...)} for a definition of property age
* @return true if the age property is set.
*/
public boolean isSetAge(){
return super.isSet(plasma.test.model.humanresources.Person.age.name());
}
/**
* Unsets the age property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getAge() getAge} or {@link #setAge(int value) setAge(...)} for a definition of property age
*/
public void unsetAge(){
super.unset(plasma.test.model.humanresources.Person.age.name());
}
/**
* Returns the value of the age property.
*
* Property Definition:
* Derived from field age
* @return the value of the age property.
*/
public int getAge(){
Integer result = (Integer)super.get(plasma.test.model.humanresources.Person.age.name());
if (result != null)
return result.intValue();
else return 0;
}
/**
* Sets the value of the age property to the given value.
*
* Property Definition:
* Derived from field age
*
* Value Constraints:
*/
public void setAge(int value){
super.set(plasma.test.model.humanresources.Person.age.name(), value);
}
/**
* Returns true if the createdDate property is set.
*
* Property Definition:
* See {@link #getCreatedDate() getCreatedDate} or {@link #setCreatedDate(Date value) setCreatedDate(...)} for a definition of property createdDate
* @return true if the createdDate property is set.
*/
public boolean isSetCreatedDate(){
return super.isSet(plasma.test.model.humanresources.Party.createdDate.name());
}
/**
* Unsets the createdDate property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getCreatedDate() getCreatedDate} or {@link #setCreatedDate(Date value) setCreatedDate(...)} for a definition of property createdDate
*/
public void unsetCreatedDate(){
super.unset(plasma.test.model.humanresources.Party.createdDate.name());
}
/**
* Returns the value of the createdDate property.
*
* Property Definition:
* Derived from field createdDate
* @return the value of the createdDate property.
*/
public Date getCreatedDate(){
return (Date)super.get(plasma.test.model.humanresources.Party.createdDate.name());
}
/**
* Sets the value of the createdDate property to the given value.
*
* Property Definition:
* Derived from field createdDate
*/
public void setCreatedDate(Date value){
super.set(plasma.test.model.humanresources.Party.createdDate.name(), value);
}
/**
* Returns true if the dateOfBirth property is set.
*
* Property Definition:
* See {@link #getDateOfBirth() getDateOfBirth} or {@link #setDateOfBirth(Date value) setDateOfBirth(...)} for a definition of property dateOfBirth
* @return true if the dateOfBirth property is set.
*/
public boolean isSetDateOfBirth(){
return super.isSet(plasma.test.model.humanresources.Person.dateOfBirth.name());
}
/**
* Unsets the dateOfBirth property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getDateOfBirth() getDateOfBirth} or {@link #setDateOfBirth(Date value) setDateOfBirth(...)} for a definition of property dateOfBirth
*/
public void unsetDateOfBirth(){
super.unset(plasma.test.model.humanresources.Person.dateOfBirth.name());
}
/**
* Returns the value of the dateOfBirth property.
*
* Property Definition:
* Derived from field dateOfBirth
* @return the value of the dateOfBirth property.
*/
public Date getDateOfBirth(){
return (Date)super.get(plasma.test.model.humanresources.Person.dateOfBirth.name());
}
/**
* Sets the value of the dateOfBirth property to the given value.
*
* Property Definition:
* Derived from field dateOfBirth
*/
public void setDateOfBirth(Date value){
super.set(plasma.test.model.humanresources.Person.dateOfBirth.name(), value);
}
/**
* Returns true if the employer property is set.
*
* Property Definition:
* See {@link #getEmployer() getEmployer} or {@link #setEmployer(Organization value) setEmployer(...)} for a definition of property employer
* @return true if the employer property is set.
*/
public boolean isSetEmployer(){
return super.isSet(plasma.test.model.humanresources.Person.employer.name());
}
/**
* Unsets the employer property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getEmployer() getEmployer} or {@link #setEmployer(Organization value) setEmployer(...)} for a definition of property employer
*/
public void unsetEmployer(){
super.unset(plasma.test.model.humanresources.Person.employer.name());
}
/**
* Creates and returns a new instance of Type {@link Organization} automatically establishing a containment relationship through the object's reference property, employer.
*
* Property Definition:
* See {@link #getEmployer() getEmployer} or {@link #setEmployer(Organization value) setEmployer(...)} for a definition of property employer
* @return a new instance of Type {@link Organization} automatically establishing a containment relationship through the object's reference property employer.
*/
public Organization createEmployer(){
return (Organization)super.createDataObject(plasma.test.model.humanresources.Person.employer.name());
}
/**
* Returns the value of the employer property.
*
* Property Definition:
* Derived from field employer
* @return the value of the employer property.
*/
public Organization getEmployer(){
return (Organization)super.get(plasma.test.model.humanresources.Person.employer.name());
}
/**
* Sets the value of the employer property to the given value.
*
* Property Definition:
* Derived from field employer
*/
public void setEmployer(Organization value){
super.set(plasma.test.model.humanresources.Person.employer.name(), value);
}
/**
* Returns true if the firstName property is set.
*
* Property Definition:
* See {@link #getFirstName() getFirstName} or {@link #setFirstName(String value) setFirstName(...)} for a definition of property firstName
* @return true if the firstName property is set.
*/
public boolean isSetFirstName(){
return super.isSet(plasma.test.model.humanresources.Person.firstName.name());
}
/**
* Unsets the firstName property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getFirstName() getFirstName} or {@link #setFirstName(String value) setFirstName(...)} for a definition of property firstName
*/
public void unsetFirstName(){
super.unset(plasma.test.model.humanresources.Person.firstName.name());
}
/**
* Returns the value of the firstName property.
*
* Property Definition:
* Derived from field firstName
* @return the value of the firstName property.
*/
public String getFirstName(){
return (String)super.get(plasma.test.model.humanresources.Person.firstName.name());
}
/**
* Sets the value of the firstName property to the given value.
*
* Property Definition:
* Derived from field firstName
*
* Value Constraints:
* maxLength: 36
*/
public void setFirstName(String value){
super.set(plasma.test.model.humanresources.Person.firstName.name(), value);
}
/**
* Returns true if the lastName property is set.
*
* Property Definition:
* See {@link #getLastName() getLastName} or {@link #setLastName(String value) setLastName(...)} for a definition of property lastName
* @return true if the lastName property is set.
*/
public boolean isSetLastName(){
return super.isSet(plasma.test.model.humanresources.Person.lastName.name());
}
/**
* Unsets the lastName property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getLastName() getLastName} or {@link #setLastName(String value) setLastName(...)} for a definition of property lastName
*/
public void unsetLastName(){
super.unset(plasma.test.model.humanresources.Person.lastName.name());
}
/**
* Returns the value of the lastName property.
*
* Property Definition:
* Derived from field lastName
* @return the value of the lastName property.
*/
public String getLastName(){
return (String)super.get(plasma.test.model.humanresources.Person.lastName.name());
}
/**
* Sets the value of the lastName property to the given value.
*
* Property Definition:
* Derived from field lastName
*
* Value Constraints:
* maxLength: 36
*/
public void setLastName(String value){
super.set(plasma.test.model.humanresources.Person.lastName.name(), value);
}
/**
* Returns true if the profileImageEmbed property is set.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
* @return true if the profileImageEmbed property is set.
*/
public boolean isSetProfileImageEmbed(){
return super.isSet(plasma.test.model.humanresources.Person.profileImageEmbed.name());
}
/**
* Unsets the profileImageEmbed property, clearing the underlying collection. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
*/
public void unsetProfileImageEmbed(){
super.unset(plasma.test.model.humanresources.Person.profileImageEmbed.name());
}
@SuppressWarnings("unchecked")
/**
* Returns an array of double set for the object's multi-valued property profileImageEmbed.
*
* Property Definition:
* Derived from field profileImageEmbed
* @return an array of double set for the object's multi-valued property profileImageEmbed.
*/
public double[] getProfileImageEmbed(){
List list = (List)super.get(plasma.test.model.humanresources.Person.profileImageEmbed.name());
if (list != null) {
double[] array = new double[list.size()];
for (int i = 0; i < list.size(); i++)
array[i] = list.get(i);
return array;
}
else
return new double[0];
}
@SuppressWarnings("unchecked")
/**
* Returns the double set for the object's multi-valued property profileImageEmbed based on the given index.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
* @param idx the index
* @return the double set for the object's multi-valued property profileImageEmbed based on the given index.
*/
public double getProfileImageEmbed(int idx){
List list = (List)super.get(plasma.test.model.humanresources.Person.profileImageEmbed.name());
if (list != null) {
return (double)list.get(idx);
}
else
throw new ArrayIndexOutOfBoundsException(idx);
}
@SuppressWarnings("unchecked")
/**
* Returns a count for multi-valued property profileImageEmbed.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
* @return a count for multi-valued property profileImageEmbed.
*/
public int getProfileImageEmbedCount(){
List list = (List)super.get(plasma.test.model.humanresources.Person.profileImageEmbed.name());
if (list != null) {
return list.size();
}
else
return 0;
}
@SuppressWarnings("unchecked")
/**
* Sets the given array of Type double for the object's multi-valued property profileImageEmbed.
*
* Property Definition:
* Derived from field profileImageEmbed
* @param value the array value
*/
public void setProfileImageEmbed(double[] value){
if (value != null && value.length > 0) {
List list = new ArrayList<>(value.length);
for (int i = 0; i < value.length; i++)
list.add(value[i]);
super.set(plasma.test.model.humanresources.Person.profileImageEmbed.name(), list);
}
else
throw new IllegalArgumentException("expected non-null and non-zero length array argument 'value' - use unsetProfileImageEmbed() method to remove this property");
}
@SuppressWarnings("unchecked")
/**
* Adds the given value of Type double for the object's multi-valued property profileImageEmbed.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
* @param value the value to add
*/
public void addProfileImageEmbed(double value){
List list = (List)super.get(plasma.test.model.humanresources.Person.profileImageEmbed.name());
if (list == null)
list = new ArrayList();
list.add(value);
// NOTE: SDO 2.1 spec specifies replacing the whole list on a multi-valued 'set' operation
super.setList(plasma.test.model.humanresources.Person.profileImageEmbed.name(), list);
}
@SuppressWarnings("unchecked")
/**
* Removes the given value of Type double for the object's multi-valued property profileImageEmbed.
*
* Property Definition:
* See {@link #getProfileImageEmbed() getProfileImageEmbed} or {@link #setProfileImageEmbed(double[] value) setProfileImageEmbed(...)} for a definition of property profileImageEmbed
* @param value the value to remove
*/
public void removeProfileImageEmbed(double value){
List list = (List)super.get(plasma.test.model.humanresources.Person.profileImageEmbed.name());
if (list != null)
list.remove(value);
// NOTE: SDO 2.1 spec specifies replacing the whole list on a multi-valued 'set' operation
super.setList(plasma.test.model.humanresources.Person.profileImageEmbed.name(), list);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy