org.molgenis.omx.observ
Class Protocol_Subprotocols

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.Protocol_Subprotocols
All Implemented Interfaces:
Serializable, Entity

public class Protocol_Subprotocols
extends AbstractEntity

Protocol_subprotocols: Link table for many-to-many relationship 'Protocol.subprotocols'..

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String AUTOID
           
static String PROTOCOL
           
static String PROTOCOL_IDENTIFIER
           
static String SUBPROTOCOLS
           
static String SUBPROTOCOLS_IDENTIFIER
           
 
Constructor Summary
Protocol_Subprotocols()
           
Protocol_Subprotocols(Protocol_Subprotocols copyMe)
          copy constructor
 
Method Summary
 Protocol_Subprotocols create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Protocol_Subprotocols> find(Database db, QueryRule... rules)
          Shorthand for db.find(Protocol_Subprotocols.class, org.molgenis.framework.db.QueryRule ...
static Protocol_Subprotocols findByAutoid(Database db, Integer autoid)
           
static Protocol_Subprotocols findBySubprotocolsProtocol(Database db, Integer subprotocols, Integer protocol)
           
 Object get(String name)
          Generic getter.
 Integer getAutoid()
          Get the automatic id field to ensure ordering of mrefs.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Protocol_Subprotocols.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Integer getProtocol_Id()
           
 String getProtocol_Identifier()
          Get a pretty label Identifier for cross reference Protocol to Protocol.Id.
 Protocol getProtocol()
          Get the .
 Protocol getProtocol(Database db)
          Deprecated. 
 Integer getSubprotocols_Id()
           
 String getSubprotocols_Identifier()
          Get a pretty label Identifier for cross reference Subprotocols to Protocol.Id.
 Protocol getSubprotocols()
          Get the .
 Protocol getSubprotocols(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Protocol_Subprotocols> query(Database db)
          Shorthand for db.query(Protocol_Subprotocols.class).
 void set(Tuple tuple, boolean strict)
           
 void setAutoid(Integer autoid)
          Set the automatic id field to ensure ordering of mrefs.
 void setProtocol_Id(Integer protocol_id)
          Set foreign key for field protocol.
 void setProtocol_Identifier(String protocol_Identifier)
          Set a pretty label for cross reference Protocol to Protocol.Id.
 void setProtocol(Integer protocol_id)
           
 void setProtocol(Protocol protocol)
          Set the .
 void setSubprotocols_Id(Integer subprotocols_id)
          Set foreign key for field subprotocols.
 void setSubprotocols_Identifier(String subprotocols_Identifier)
          Set a pretty label for cross reference Subprotocols to Protocol.Id.
 void setSubprotocols(Integer subprotocols_id)
           
 void setSubprotocols(Protocol subprotocols)
          Set the .
 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
 

Field Detail

AUTOID

public static final String AUTOID
See Also:
Constant Field Values

SUBPROTOCOLS

public static final String SUBPROTOCOLS
See Also:
Constant Field Values

SUBPROTOCOLS_IDENTIFIER

public static final String SUBPROTOCOLS_IDENTIFIER
See Also:
Constant Field Values

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values

PROTOCOL_IDENTIFIER

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

Protocol_Subprotocols

public Protocol_Subprotocols()

Protocol_Subprotocols

public Protocol_Subprotocols(Protocol_Subprotocols copyMe)
                      throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findByAutoid

public static Protocol_Subprotocols findByAutoid(Database db,
                                                 Integer autoid)
                                          throws DatabaseException
Throws:
DatabaseException

findBySubprotocolsProtocol

public static Protocol_Subprotocols findBySubprotocolsProtocol(Database db,
                                                               Integer subprotocols,
                                                               Integer protocol)
                                                        throws DatabaseException
Throws:
DatabaseException

getAutoid

public Integer getAutoid()
Get the automatic id field to ensure ordering of mrefs.

Returns:
autoid.

setAutoid

public void setAutoid(Integer autoid)
Set the automatic id field to ensure ordering of mrefs.

Parameters:
autoid -

getSubprotocols

public Protocol getSubprotocols()
Get the .

Returns:
subprotocols.

getSubprotocols

@Deprecated
public Protocol getSubprotocols(Database db)
Deprecated. 


setSubprotocols

public void setSubprotocols(Protocol subprotocols)
Set the .

Parameters:
subprotocols -

setSubprotocols_Id

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


setSubprotocols

public void setSubprotocols(Integer subprotocols_id)

getSubprotocols_Id

public Integer getSubprotocols_Id()

getSubprotocols_Identifier

public String getSubprotocols_Identifier()
Get a pretty label Identifier for cross reference Subprotocols to Protocol.Id.


setSubprotocols_Identifier

public void setSubprotocols_Identifier(String subprotocols_Identifier)
Set a pretty label for cross reference Subprotocols to Protocol.Id. Implies setSubprotocols(null) until save


getProtocol

public Protocol getProtocol()
Get the .

Returns:
protocol.

getProtocol

@Deprecated
public Protocol getProtocol(Database db)
Deprecated. 


setProtocol

public void setProtocol(Protocol protocol)
Set the .

Parameters:
protocol -

setProtocol_Id

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


setProtocol

public void setProtocol(Integer protocol_id)

getProtocol_Id

public Integer getProtocol_Id()

getProtocol_Identifier

public String getProtocol_Identifier()
Get a pretty label Identifier for cross reference Protocol to Protocol.Id.


setProtocol_Identifier

public void setProtocol_Identifier(String protocol_Identifier)
Set a pretty label for cross reference Protocol to Protocol.Id. Implies setProtocol(null) until save


get

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


validate

public void validate()
              throws DatabaseException
Throws:
DatabaseException

set

public void set(Tuple tuple,
                boolean strict)
         throws Exception
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 Protocol_Subprotocols.


getFields

public Vector<String> getFields()

getIdField

public String getIdField()

getLabelFields

public List<String> getLabelFields()

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 


getIdValue

public Object getIdValue()

getXrefIdFieldName

public String getXrefIdFieldName(String fieldName)

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

public Protocol_Subprotocols create(Tuple tuple)
                             throws Exception
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.