public class Person extends Record<Person>
| Modifier and Type | Class and Description |
|---|---|
static class |
Person.COMPARE_TYPE |
NetDB.FORMATAttribute.COMPARISON_TYPE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_ACTIVE |
static java.lang.String |
JSON_DIR_ACTIVE |
static java.lang.String |
JSON_DIRID |
static java.lang.String |
JSON_EMAIL |
static java.lang.String |
JSON_LAST_NAME |
static java.lang.String |
JSON_NAME |
static java.lang.String |
JSON_NETID |
static java.lang.String |
JSON_PHONE |
static java.lang.String |
JSON_REGID |
static java.lang.String |
json_template_name
The template toJSON uses.
|
static java.util.Comparator<Person> |
name_comparator
Person records are compared in ascending order of last name,
full name - first last, and netid.
|
static java.util.Comparator<Person> |
regid_comparator
Person records are compared in ascending order of their registry ID.
|
static java.lang.String |
template_name
The template toString uses.
|
extra_data, UNPROCESSED_JSON| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
Person |
_insert_or_update(java.lang.String transaction_name,
NetDB_Datastore datastore)
This method makes the DB call(s).
|
static java.util.Hashtable |
_load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
This method makes the DB call(s).
|
static java.lang.Long |
_verify_or_die(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle) |
java.lang.Boolean |
active()
Fetch the active state.
|
Person |
commit(NetDB_Datastore datastore)
This class cannot currently be committed.
|
int |
compare(Person person_1,
Person person_2) |
int |
compare(Person person_1,
Person person_2,
Person.COMPARE_TYPE type) |
int |
compareTo(Person that)
Compare two objects based on their handles (case blind).
|
void |
delete(NetDB_Datastore datastore)
This class cannot currently be deleted.
|
static void |
delete(NetDB_Datastore datastore,
java.lang.String handle)
This class cannot currently be deleted.
|
static void |
delete(java.lang.String handle)
This class cannot currently be deleted.
|
java.lang.String |
dir_id()
Fetch the directory ID.
|
java.lang.String |
dirID()
Alias for dir_id ().
|
java.lang.String |
email()
Fetch the email address.
|
java.lang.String |
handle()
This is the unique identifier used in the database to identify a record.
|
java.lang.Long |
id()
Fetch the ID.
|
java.lang.String |
last_name()
Fetch the last name.
|
java.lang.String |
lastname()
Alias for last_name (...).
|
static Person |
load(java.lang.Long id)
Load id from the default datastore.
|
static Person |
load(NetDB_Datastore datastore,
java.lang.Long id)
Load handle from the specified datastore.
|
static Person |
load(NetDB_Datastore datastore,
java.lang.String handle)
Load handle from the specified datastore.
|
static Person |
load(java.lang.String handle)
Load handle from the default datastore.
|
java.lang.String |
name()
Fetch the name.
|
java.lang.String |
netid()
Fetch the netid.
|
java.lang.String |
netID()
Alias for netid ().
|
Person |
new_instance()
Create a new instance of this class's type.
|
java.lang.String |
phone()
Fetch the phone number.
|
java.lang.String |
reg_id()
Fetch the registry ID.
|
java.lang.String |
regID()
Alias for reg_id ().
|
java.lang.String |
single_value_attributes()
This method builds a String of all the single value attributes.
|
java.util.Comparator<Person> |
sort_comparator()
Attributes may define their own comparator to be used when sorting.
|
java.lang.String |
toJSON(java.lang.Boolean pretty,
java.lang.Boolean ignore_exceptions)
Convert this to a JSON object using the template defined in json_template_name.
|
java.lang.String |
toString(NetDB.FORMAT format,
java.lang.Boolean ignore_exceptions)
Convert this to a String using the template defined in template_name.
|
Person |
unlink()
Treat this object as user created, and clear any datastore specific information.
|
autocomplete, autocomplete, bind, clear_extra_data, compare, compare, complete, created_by_user, datastore, default_datastore, default_datastore, defined_or_die_handle, defined_or_die, equals, extra_data, extra_data, extra_data, fromJSON, is_bound, is_complete, is_partial, json_recovery_log, reset_timing, rmi_exception, timing, toJSON, toJSON, toJSON, toJSON, toString, toString, toString, toString, unbind, unique_identifier, versionbackup_logger, backup_logger, default_logger, default_logger, entered, entered, entered, exited, exited, exited, get_method_name, log_enter_exit, log_message, logger, loggerpublic static java.lang.String template_name
public static java.lang.String json_template_name
public static final java.lang.String JSON_NETID
public static final java.lang.String JSON_NAME
public static final java.lang.String JSON_LAST_NAME
public static final java.lang.String JSON_DIRID
public static final java.lang.String JSON_REGID
public static final java.lang.String JSON_PHONE
public static final java.lang.String JSON_EMAIL
public static final java.lang.String JSON_DIR_ACTIVE
public static final java.lang.String JSON_ACTIVE
public static java.util.Comparator<Person> name_comparator
public static java.util.Comparator<Person> regid_comparator
public java.lang.Long id()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String regID()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String reg_id()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String name()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String netID()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String netid()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String email()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String phone()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.Boolean active()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String lastname()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String last_name()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String dirID()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Informationpublic java.lang.String dir_id()
throws java.lang.Exception,
No_Datastore_Defined,
Insufficient_Information
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationNetDB.internal_complete(java.lang.Object, java.lang.Object, java.lang.String)public java.lang.String handle()
NetDBpublic Person new_instance() throws java.lang.Exception
NetDBnew_instance in class NetDB<Person>java.lang.Exceptionpublic Person unlink()
NetDBpublic java.lang.String single_value_attributes()
Attributesingle_value_attributes in class Attribute<Person>Attribute.compare(Attribute),
Attribute.compare(Attribute,COMPARISON_TYPE)public java.lang.String toString(NetDB.FORMAT format, java.lang.Boolean ignore_exceptions) throws java.lang.Exception
public java.lang.String toJSON(java.lang.Boolean pretty,
java.lang.Boolean ignore_exceptions)
throws java.lang.Exception
public java.util.Comparator<Person> sort_comparator()
Attributesort_comparator in class Attribute<Person>public int compareTo(Person that)
NetDBpublic int compare(Person person_1, Person person_2, Person.COMPARE_TYPE type)
public static java.lang.Long _verify_or_die(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
throws java.lang.Exception
java.lang.Exceptionpublic static Person load(java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Person load(java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Person load(NetDB_Datastore datastore, java.lang.String handle) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static Person load(NetDB_Datastore datastore, java.lang.Long id) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information, Record_Not_Found
java.lang.ExceptionNo_Datastore_DefinedInsufficient_InformationRecord_Not_Foundpublic static java.util.Hashtable _load_object(java.lang.String transaction_name,
NetDB_Datastore datastore,
java.lang.Long id,
java.lang.String handle)
throws java.lang.Exception
java.lang.Exceptionpublic void delete(NetDB_Datastore datastore) throws Not_Implemented
delete in class Record<Person>Not_Implementedpublic static void delete(java.lang.String handle)
throws Not_Implemented
Not_Implementedpublic static void delete(NetDB_Datastore datastore, java.lang.String handle) throws Not_Implemented
Not_Implementedpublic Person commit(NetDB_Datastore datastore) throws Not_Implemented
commit in class Record<Person>Not_Implementedpublic Person _insert_or_update(java.lang.String transaction_name, NetDB_Datastore datastore) throws java.lang.Exception
java.lang.Exception