org.molgenis.omx.observ.value
Class Value

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.value.Value
All Implemented Interfaces:
Serializable, Autoid, Entity
Direct Known Subclasses:
BoolValue, CategoricalValue, DateTimeValue, DateValue, DecimalValue, EmailValue, HtmlValue, HyperlinkValue, IntValue, LongValue, MrefValue, StringValue, TextValue, XrefValue

@Entity
public class Value
extends AbstractEntity
implements Autoid

Value: .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String __TYPE
           
static String ID
           
 
Constructor Summary
Value()
           
Value(Value copyMe)
          copy constructor
 
Method Summary
 Value create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends Value> find(Database db, QueryRule... rules)
          Shorthand for db.find(Value.class, org.molgenis.framework.db.QueryRule ...
static Value findById(Database db, Integer id)
           
 String get__Type()
          Get the Subtypes have to be set to allow searching.
 String get__Type(Database db)
          Deprecated. 
 String get__TypeLabel()
          Get tha label for enum __Type.
 List<ValueLabel> get__TypeOptions()
          __Type is enum.
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of Value.
 String getFields(String sep)
          Deprecated. 
 Integer getId()
          Get the automatically generated internal id, only for internal use..
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends Value> query(Database db)
          Shorthand for db.query(Value.class).
 void set__Type(String __Type)
          Set the Subtypes have to be set to allow searching.
 void set(Tuple tuple, boolean strict)
           
 void setId(Integer id)
          Set the automatically generated internal id, only for internal use..
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
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

ID

public static final String ID
See Also:
Constant Field Values

__TYPE

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

Value

public Value()

Value

public Value(Value copyMe)
      throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

public static Value findById(Database db,
                             Integer id)
                      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 -

get__Type

public String get__Type()
Get the Subtypes have to be set to allow searching.

Overrides:
get__Type in class AbstractEntity
Returns:
__Type.

get__Type

@Deprecated
public String get__Type(Database db)
Deprecated. 


set__Type

public void set__Type(String __Type)
Set the Subtypes have to be set to allow searching.

Overrides:
set__Type in class AbstractEntity
Parameters:
__Type -

get__TypeLabel

public String get__TypeLabel()
Get tha label for enum __Type.

Overrides:
get__TypeLabel in class AbstractEntity

get__TypeOptions

public List<ValueLabel> get__TypeOptions()
__Type is enum. This method returns all available enum options.

Overrides:
get__TypeOptions in class AbstractEntity

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 Value.

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 Value 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.