public final class Consultant extends Person
Person.COMPARE_TYPENetDB.FORMATAttribute.COMPARISON_TYPE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_PRIMARY |
static java.lang.String |
json_template_name
The template toJSON uses.
|
static java.lang.String |
template_name
The template toString uses.
|
JSON_ACTIVE, JSON_DIR_ACTIVE, JSON_DIRID, JSON_EMAIL, JSON_LAST_NAME, JSON_NAME, JSON_NETID, JSON_PHONE, JSON_REGID, name_comparator, regid_comparatorextra_data, UNPROCESSED_JSON| Constructor and Description |
|---|
Consultant() |
Consultant(NetDB_Datastore datastore) |
Consultant(NetDB_Datastore datastore,
Person person,
java.lang.Boolean primary) |
Consultant(Person person,
java.lang.Boolean primary) |
| Modifier and Type | Method and Description |
|---|---|
Consultant |
clear_primary()
Set the primary state to false.
|
Person |
commit(NetDB_Datastore datastore)
This class cannot currently be committed.
|
java.lang.String |
handle()
This is the unique identifier used in the database to identify a record.
|
java.lang.Boolean |
is_primary()
Fetch the primary state.
|
java.lang.String |
name_and_primary_string()
Return the name and denote whether or not the consultant is the primary (if it is primary, a
star (*) will appear after their name).
|
Consultant |
primary(java.lang.Boolean primary)
Set the primary state.
|
Consultant |
set_primary()
Set the primary state to true.
|
java.lang.String |
single_value_attributes()
This method builds a String of all the single value attributes.
|
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.
|
_insert_or_update, _load_object, _verify_or_die, active, compare, compare, compareTo, delete, delete, delete, dir_id, dirID, email, id, last_name, lastname, load, load, load, load, name, netid, netID, new_instance, phone, reg_id, regID, sort_comparator, unlinkautocomplete, 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_PRIMARY
public Consultant()
public Consultant(Person person, java.lang.Boolean primary)
public Consultant(NetDB_Datastore datastore)
public Consultant(NetDB_Datastore datastore, Person person, java.lang.Boolean primary)
public java.lang.Boolean is_primary()
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 Consultant primary(java.lang.Boolean primary)
public Consultant set_primary()
public Consultant clear_primary()
public java.lang.String single_value_attributes()
Attributesingle_value_attributes in class PersonAttribute.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.lang.String name_and_primary_string()
throws java.lang.Exception
java.lang.Exceptionpublic Person commit(NetDB_Datastore datastore) throws Not_Implemented
commit in class PersonNot_Implemented