org.molgenis.omx.observ.value
Class DateTimeValue

java.lang.Object
  extended by org.molgenis.util.AbstractEntity
      extended by org.molgenis.omx.observ.value.Value
          extended by org.molgenis.omx.observ.value.DateTimeValue
All Implemented Interfaces:
Serializable, Autoid, Entity

@Entity
public class DateTimeValue
extends Value

DateTimeValue: .

Author:
MOLGENIS generator
See Also:
Serialized Form

Field Summary
static String ID
           
static String VALUE
           
 
Fields inherited from class org.molgenis.omx.observ.value.Value
__TYPE
 
Constructor Summary
DateTimeValue()
           
DateTimeValue(DateTimeValue copyMe)
          copy constructor
 
Method Summary
 DateTimeValue create(Tuple tuple)
           
 boolean equals(Object obj)
           
static List<? extends DateTimeValue> find(Database db, QueryRule... rules)
          Shorthand for db.find(DateTimeValue.class, org.molgenis.framework.db.QueryRule ...
static DateTimeValue findById(Database db, Integer id)
           
 Object get(String name)
          Generic getter.
 Vector<String> getFields()
           
 Vector<String> getFields(boolean skipAutoIds)
          Get the names of all public properties of DateTimeValue.
 String getFields(String sep)
          Deprecated. 
 String getIdField()
           
 Object getIdValue()
           
 List<String> getLabelFields()
           
 Date getValue()
          Get the Value.
 Date getValue(Database db)
          Deprecated. 
 String getValues(String sep)
          Deprecated. 
 String getXrefIdFieldName(String fieldName)
           
 int hashCode()
           
static Query<? extends DateTimeValue> query(Database db)
          Shorthand for db.query(DateTimeValue.class).
 void set(Tuple tuple, boolean strict)
           
 void setValue(Date value)
          Set the Value.
 String toString()
           
 String toString(boolean verbose)
           
 void validate()
           
 
Methods inherited from class org.molgenis.omx.observ.value.Value
get__Type, get__Type, get__TypeLabel, get__TypeOptions, getId, set__Type, setId
 
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

VALUE

public static final String VALUE
See Also:
Constant Field Values

ID

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

DateTimeValue

public DateTimeValue()

DateTimeValue

public DateTimeValue(DateTimeValue copyMe)
              throws Exception
copy constructor

Throws:
Exception
Method Detail

query

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


find

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

Throws:
DatabaseException

findById

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

getValue

public Date getValue()
Get the Value.

Returns:
value.

getValue

@Deprecated
public Date getValue(Database db)
Deprecated. 


setValue

public void setValue(Date value)
Set the Value.

Parameters:
value -

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 Value

validate

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

set

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

toString

public String toString()
Overrides:
toString in class Value

toString

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

getFields

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

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

getFields

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

getIdField

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

getLabelFields

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

getFields

@Deprecated
public String getFields(String sep)
Deprecated. 

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

getIdValue

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

getXrefIdFieldName

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

getValues

@Deprecated
public String getValues(String sep)
Deprecated. 

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

create

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Value


Copyright © 2013. All Rights Reserved.