org.molgenis.omx.auth
Class Institute

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.Characteristic
          extended by org.molgenis.omx.auth.Institute
All Implemented Interfaces:
Serializable, Contact, Autoid, Identifiable, Entity

@Entity
public class Institute
extends Characteristic
implements Contact

Institute: A contact is either a person or an organization. Copied from FuGE::Contact..

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ADDRESS
           
static String CITY
           
static String COUNTRY
           
static String EMAIL
           
static String FAX
           
static String ID
           
static String NAME
           
static String PHONE
           
static String TOLLFREEPHONE
           
 
Fields inherited from class org.molgenis.omx.observ.Characteristic
__TYPE, DESCRIPTION, IDENTIFIER
 
Constructor Summary
Institute()
           
Institute(Institute copyMe)
          copy constructor
 
Method Summary
 Institute create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Institute> find(Database db, QueryRule... rules)
          Shorthand for db.find(Institute.class, org.molgenis.framework.db.QueryRule ...
static Institute findById(Database db, Integer id)
           
static Institute findByIdentifier(Database db, String identifier)
           
static Institute findByName(Database db, String name)
           
 Object get(String name)
          Generic getter.
 String getAddress()
          Get the The address of the Contact..
 String getAddress(Database db)
          Deprecated. 
 String getCity()
          Get the Added from the old definition of MolgenisUser.
 String getCity(Database db)
          Deprecated. 
 String getCountry()
          Get the Added from the old definition of MolgenisUser.
 String getCountry(Database db)
          Deprecated. 
 String getEmail()
          Get the The email address of the Contact..
 String getEmail(Database db)
          Deprecated. 
 String getFax()
          Get the The fax number of the Contact..
 String getFax(Database db)
          Deprecated. 
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Institute.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 String getName()
          Get the Name.
 String getName(Database db)
          Deprecated. 
 String getPhone()
          Get the The telephone number of the Contact including the suitable area codes..
 String getPhone(Database db)
          Deprecated. 
 String getTollFreePhone()
          Get the A toll free phone number for the Contact, including suitable area codes..
 String getTollFreePhone(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Institute> query(Database db)
          Shorthand for db.query(Institute.class).
 void set(Tuple tuple, boolean strict)
           
 void setAddress(String address)
          Set the The address of the Contact..
 void setCity(String city)
          Set the Added from the old definition of MolgenisUser.
 void setCountry(String country)
          Set the Added from the old definition of MolgenisUser.
 void setEmail(String email)
          Set the The email address of the Contact..
 void setFax(String fax)
          Set the The fax number of the Contact..
 void setName(String name)
          Set the Name.
 void setPhone(String phone)
          Set the The telephone number of the Contact including the suitable area codes..
 void setTollFreePhone(String tollFreePhone)
          Set the A toll free phone number for the Contact, including suitable area codes..
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.omx.observ.Characteristic
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getDescription, getDescription, getId, getIdentifier, getIdentifier, getValueMrefValueCollection, getValueMrefValueCollection, set__Type, setDescription, setId, setIdentifier, setValueMrefValueCollection
 
Methods inherited from class org.molgenis.util.AbstractEntity
getLabelValue, getValues, isObjectRepresentation, isReadonly, set, set, setReadonly, setValuesFromString, string2date
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.molgenis.util.Entity
getLabelValue, getValues, isReadonly, set, set, setReadonly
 

Field Detail

ADDRESS

public static final String ADDRESS
See Also:
Constant Field Values

PHONE

public static final String PHONE
See Also:
Constant Field Values

EMAIL

public static final String EMAIL
See Also:
Constant Field Values

FAX

public static final String FAX
See Also:
Constant Field Values

TOLLFREEPHONE

public static final String TOLLFREEPHONE
See Also:
Constant Field Values

CITY

public static final String CITY
See Also:
Constant Field Values

COUNTRY

public static final String COUNTRY
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

Institute

public Institute()

Institute

public Institute(Institute copyMe)
          throws Exception
copy constructor

Throws:
Exception
Method Detail

query

public static Query<? extends Institute> query(Database db)
Shorthand for db.query(Institute.class).


find

public static List<? extends Institute> find(Database db,
                                             QueryRule... rules)
                                      throws DatabaseException
Shorthand for db.find(Institute.class, org.molgenis.framework.db.QueryRule ... rules).

Throws:
DatabaseException

findById

public static Institute findById(Database db,
                                 Integer id)
                          throws DatabaseException
Throws:
DatabaseException

findByIdentifier

public static Institute findByIdentifier(Database db,
                                         String identifier)
                                  throws DatabaseException
Throws:
DatabaseException

findByName

public static Institute findByName(Database db,
                                   String name)
                            throws DatabaseException
Throws:
DatabaseException

getAddress

public String getAddress()
Get the The address of the Contact..

Specified by:
getAddress in interface Contact
Returns:
address.

getAddress

@Deprecated
public String getAddress(Database db)
Deprecated. 


setAddress

public void setAddress(String address)
Set the The address of the Contact..

Specified by:
setAddress in interface Contact
Parameters:
address -

getPhone

public String getPhone()
Get the The telephone number of the Contact including the suitable area codes..

Specified by:
getPhone in interface Contact
Returns:
phone.

getPhone

@Deprecated
public String getPhone(Database db)
Deprecated. 


setPhone

public void setPhone(String phone)
Set the The telephone number of the Contact including the suitable area codes..

Specified by:
setPhone in interface Contact
Parameters:
phone -

getEmail

public String getEmail()
Get the The email address of the Contact..

Specified by:
getEmail in interface Contact
Returns:
email.

getEmail

@Deprecated
public String getEmail(Database db)
Deprecated. 


setEmail

public void setEmail(String email)
Set the The email address of the Contact..

Specified by:
setEmail in interface Contact
Parameters:
email -

getFax

public String getFax()
Get the The fax number of the Contact..

Specified by:
getFax in interface Contact
Returns:
fax.

getFax

@Deprecated
public String getFax(Database db)
Deprecated. 


setFax

public void setFax(String fax)
Set the The fax number of the Contact..

Specified by:
setFax in interface Contact
Parameters:
fax -

getTollFreePhone

public String getTollFreePhone()
Get the A toll free phone number for the Contact, including suitable area codes..

Specified by:
getTollFreePhone in interface Contact
Returns:
tollFreePhone.

getTollFreePhone

@Deprecated
public String getTollFreePhone(Database db)
Deprecated. 


setTollFreePhone

public void setTollFreePhone(String tollFreePhone)
Set the A toll free phone number for the Contact, including suitable area codes..

Specified by:
setTollFreePhone in interface Contact
Parameters:
tollFreePhone -

getCity

public String getCity()
Get the Added from the old definition of MolgenisUser. City of this contact..

Specified by:
getCity in interface Contact
Returns:
city.

getCity

@Deprecated
public String getCity(Database db)
Deprecated. 


setCity

public void setCity(String city)
Set the Added from the old definition of MolgenisUser. City of this contact..

Specified by:
setCity in interface Contact
Parameters:
city -

getCountry

public String getCountry()
Get the Added from the old definition of MolgenisUser. Country of this contact..

Specified by:
getCountry in interface Contact
Returns:
country.

getCountry

@Deprecated
public String getCountry(Database db)
Deprecated. 


setCountry

public void setCountry(String country)
Set the Added from the old definition of MolgenisUser. Country of this contact..

Specified by:
setCountry in interface Contact
Parameters:
country -

getName

public String getName()
Get the Name.

Specified by:
getName in interface Identifiable
Overrides:
getName in class Characteristic
Returns:
name.

getName

@Deprecated
public String getName(Database db)
Deprecated. 

Overrides:
getName in class Characteristic

setName

public void setName(String name)
Set the Name.

Specified by:
setName in interface Identifiable
Overrides:
setName in class Characteristic
Parameters:
name -

get

public Object get(String name)
Generic getter. Get the property by using the name.

Specified by:
get in interface Entity
Overrides:
get in class Characteristic

validate

public void validate()
              throws DatabaseException
Specified by:
validate in interface Entity
Overrides:
validate in class Characteristic
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
Specified by:
set in interface Entity
Overrides:
set in class Characteristic
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Characteristic

toString

public String toString(boolean verbose)
Overrides:
toString in class Characteristic

getFields

public Vector<String> getFields(boolean skipAutoIds)
Get the names of all public properties of Institute.

Specified by:
getFields in interface Entity
Overrides:
getFields in class Characteristic

getFields

public Vector<String> getFields()
Specified by:
getFields in interface Entity
Overrides:
getFields in class Characteristic

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity
Overrides:
getIdField in class Characteristic

getLabelFields

public List<String> getLabelFields()
Specified by:
getLabelFields in interface Entity
Overrides:
getLabelFields in class Characteristic

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity
Overrides:
getFields in class Characteristic

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity
Overrides:
getIdValue in class Characteristic

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)
Specified by:
getXrefIdFieldName in interface Entity
Overrides:
getXrefIdFieldName in class Characteristic

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

Specified by:
getValues in interface Entity
Overrides:
getValues in class Characteristic

create

public Institute create(Tuple tuple)
                 throws Exception
Specified by:
create in interface Entity
Overrides:
create in class Characteristic
Throws:
Exception

equals

public boolean equals(Object obj)
Overrides:
equals in class Characteristic

hashCode

public int hashCode()
Overrides:
hashCode in class Characteristic


Copyright © 2013. All Rights Reserved.