org.molgenis.omx.auth
Class MolgenisRoleGroupLink

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

@Entity
public class MolgenisRoleGroupLink
extends AbstractEntity
implements Identifiable

MolgenisRoleGroupLink: .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String GROUP_
           
static String GROUP__NAME
           
static String ID
           
static String IDENTIFIER
           
static String NAME
           
static String ROLE_
           
static String ROLE__NAME
           
 
Constructor Summary
MolgenisRoleGroupLink()
           
MolgenisRoleGroupLink(MolgenisRoleGroupLink copyMe)
          copy constructor
 
Method Summary
 MolgenisRoleGroupLink create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends MolgenisRoleGroupLink> find(Database db, QueryRule... rules)
          Shorthand for db.find(MolgenisRoleGroupLink.class, org.molgenis.framework.db.QueryRule ...
static MolgenisRoleGroupLink findByGroupRole(Database db, Integer group_, Integer role_)
           
static MolgenisRoleGroupLink findById(Database db, Integer id)
           
static MolgenisRoleGroupLink findByIdentifier(Database db, String identifier)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of MolgenisRoleGroupLink.
 String getFields(String sep)
          Deprecated. 
 Integer getGroup_Id()
           
 String getGroup_Name()
          Get a pretty label Name for cross reference Group to MolgenisGroup.Id.
 MolgenisGroup getGroup()
          Get the group_.
 MolgenisGroup getGroup(Database db)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdentifier()
          Get the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
 String getIdentifier(Database db)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 String getName()
          Get the human readible name, not necessary unique..
 String getName(Database db)
          Deprecated. 
 Integer getRole_Id()
           
 String getRole_Name()
          Get a pretty label Name for cross reference Role to MolgenisRole.Id.
 MolgenisRole getRole()
          Get the role_.
 MolgenisRole getRole(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends MolgenisRoleGroupLink> query(Database db)
          Shorthand for db.query(MolgenisRoleGroupLink.class).
 void set(Tuple tuple, boolean strict)
           
 void setGroup_Id(Integer group__id)
          Set foreign key for field group_.
 void setGroup_Name(String group__Name)
          Set a pretty label for cross reference Group to MolgenisGroup.Id.
 void setGroup(Integer group__id)
           
 void setGroup(MolgenisGroup group_)
          Set the group_.
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 void setIdentifier(String identifier)
          Set the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g.
 void setName(String name)
          Set the human readible name, not necessary unique..
 void setRole_Id(Integer role__id)
          Set foreign key for field role_.
 void setRole_Name(String role__Name)
          Set a pretty label for cross reference Role to MolgenisRole.Id.
 void setRole(Integer role__id)
           
 void setRole(MolgenisRole role_)
          Set the role_.
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.util.AbstractEntity
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, 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

ID

public static final String ID
See Also:
Constant Field Values

IDENTIFIER

public static final String IDENTIFIER
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

GROUP_

public static final String GROUP_
See Also:
Constant Field Values

GROUP__NAME

public static final String GROUP__NAME
See Also:
Constant Field Values

ROLE_

public static final String ROLE_
See Also:
Constant Field Values

ROLE__NAME

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

MolgenisRoleGroupLink

public MolgenisRoleGroupLink()

MolgenisRoleGroupLink

public MolgenisRoleGroupLink(MolgenisRoleGroupLink copyMe)
                      throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

findByIdentifier

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

findByGroupRole

public static MolgenisRoleGroupLink findByGroupRole(Database db,
                                                    Integer group_,
                                                    Integer role_)
                                             throws DatabaseException
Throws:
DatabaseException

getId

public Integer getId()
Get the automatically generated internal id, only for internal use..

Specified by:
getId in interface Autoid
Returns:
id.

setId

public void setId(Integer id)
Set the automatically generated internal id, only for internal use..

Specified by:
setId in interface Autoid
Parameters:
id -

getIdentifier

public String getIdentifier()
Get the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g. MA1234.

Specified by:
getIdentifier in interface Identifiable
Returns:
identifier.

getIdentifier

@Deprecated
public String getIdentifier(Database db)
Deprecated. 


setIdentifier

public void setIdentifier(String identifier)
Set the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g. MA1234.

Specified by:
setIdentifier in interface Identifiable
Parameters:
identifier -

getName

public String getName()
Get the human readible name, not necessary unique..

Specified by:
getName in interface Identifiable
Returns:
name.

getName

@Deprecated
public String getName(Database db)
Deprecated. 


setName

public void setName(String name)
Set the human readible name, not necessary unique..

Specified by:
setName in interface Identifiable
Parameters:
name -

getGroup

public MolgenisGroup getGroup()
Get the group_.

Returns:
group_.

getGroup

@Deprecated
public MolgenisGroup getGroup(Database db)
Deprecated. 


setGroup

public void setGroup(MolgenisGroup group_)
Set the group_.

Parameters:
group_ -

setGroup_Id

public void setGroup_Id(Integer group__id)
Set foreign key for field group_. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setGroup

public void setGroup(Integer group__id)

getGroup_Id

public Integer getGroup_Id()

getGroup_Name

public String getGroup_Name()
Get a pretty label Name for cross reference Group to MolgenisGroup.Id.


setGroup_Name

public void setGroup_Name(String group__Name)
Set a pretty label for cross reference Group to MolgenisGroup.Id. Implies setGroup(null) until save


getRole

public MolgenisRole getRole()
Get the role_.

Returns:
role_.

getRole

@Deprecated
public MolgenisRole getRole(Database db)
Deprecated. 


setRole

public void setRole(MolgenisRole role_)
Set the role_.

Parameters:
role_ -

setRole_Id

public void setRole_Id(Integer role__id)
Set foreign key for field role_. This will erase any foreign key objects currently set. FIXME: can we autoload the new object?


setRole

public void setRole(Integer role__id)

getRole_Id

public Integer getRole_Id()

getRole_Name

public String getRole_Name()
Get a pretty label Name for cross reference Role to MolgenisRole.Id.


setRole_Name

public void setRole_Name(String role__Name)
Set a pretty label for cross reference Role to MolgenisRole.Id. Implies setRole(null) until save


get

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

Specified by:
get in interface Entity

validate

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

set

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

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(boolean verbose)

getFields

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

Specified by:
getFields in interface Entity

getFields

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

getIdField

public String getIdField()
Specified by:
getIdField in interface Entity

getLabelFields

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

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

Specified by:
getFields in interface Entity

getIdValue

public Object getIdValue()
Specified by:
getIdValue in interface Entity

getXrefIdFieldName

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

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

public MolgenisRoleGroupLink create(Tuple tuple)
                             throws Exception
Specified by:
create in interface Entity
Throws:
Exception

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.