// $LastChangedRevision: 4733 $ DO NOT EDIT. Make changes to Partial_AuthenticatedPerson.java instead.
/** Partial template to fix relationships */
package er.example.erxpartials.model;
import com.webobjects.eoaccess.*;
import com.webobjects.eocontrol.*;
import com.webobjects.foundation.*;
import java.math.*;
import java.util.*;
import org.apache.log4j.Logger;
import er.extensions.eof.*;
import er.extensions.foundation.*;
@SuppressWarnings("all")
public abstract class _Partial_AuthenticatedPerson extends er.extensions.partials.ERXPartial<er.example.erxpartials.model.Person> {
public static final String ENTITY_NAME = "Person";
// Attribute Keys
public static final ERXKey<NSTimestamp> LAST_LOGIN_DATE = new ERXKey<NSTimestamp>("lastLoginDate");
public static final ERXKey<String> PASSWORD = new ERXKey<String>("password");
public static final ERXKey<String> USERNAME = new ERXKey<String>("username");
// Relationship Keys
// Attributes
public static final String LAST_LOGIN_DATE_KEY = LAST_LOGIN_DATE.key();
public static final String PASSWORD_KEY = PASSWORD.key();
public static final String USERNAME_KEY = USERNAME.key();
// Relationships
public static NSArray<String> _partialAttributes = null;
public static NSArray<String> _partialRelationships = null;
public static NSArray<String> partialAttributes() {
if ( _partialAttributes == null ) {
synchronized(ENTITY_NAME) {
NSMutableArray<String> partialList = new NSMutableArray<String>();
partialList.addObject( LAST_LOGIN_DATE_KEY );
partialList.addObject( PASSWORD_KEY );
partialList.addObject( USERNAME_KEY );
_partialAttributes = partialList.immutableClone();
}
}
return _partialAttributes;
}
public static NSArray<String> partialRelationships() {
if ( _partialRelationships == null ) {
synchronized(ENTITY_NAME) {
NSMutableArray<String> partialList = new NSMutableArray<String>();
_partialRelationships = partialList.immutableClone();
}
}
return _partialRelationships;
}
private static Logger LOG = Logger.getLogger(_Partial_AuthenticatedPerson.class);
public NSTimestamp lastLoginDate() {
return (NSTimestamp) storedValueForKey("lastLoginDate");
}
public void setLastLoginDate(NSTimestamp value) {
if (_Partial_AuthenticatedPerson.LOG.isDebugEnabled()) {
_Partial_AuthenticatedPerson.LOG.debug( "updating lastLoginDate from " + lastLoginDate() + " to " + value);
}
takeStoredValueForKey(value, "lastLoginDate");
}
public String password() {
return (String) storedValueForKey("password");
}
public void setPassword(String value) {
if (_Partial_AuthenticatedPerson.LOG.isDebugEnabled()) {
_Partial_AuthenticatedPerson.LOG.debug( "updating password from " + password() + " to " + value);
}
takeStoredValueForKey(value, "password");
}
public String username() {
return (String) storedValueForKey("username");
}
public void setUsername(String value) {
if (_Partial_AuthenticatedPerson.LOG.isDebugEnabled()) {
_Partial_AuthenticatedPerson.LOG.debug( "updating username from " + username() + " to " + value);
}
takeStoredValueForKey(value, "username");
}
public Partial_AuthenticatedPerson initPartial_AuthenticatedPerson(EOEditingContext editingContext) {
Partial_AuthenticatedPerson eo = (Partial_AuthenticatedPerson)this;
return eo;
}
}