@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class DBPatch extends java.lang.Object implements java.io.Serializable, IObject, IGlobal
Modifier and Type | Class and Description |
---|---|
static class |
DBPatch.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.lang.Integer |
currentPatch |
static java.lang.String |
CURRENTPATCH |
protected java.lang.String |
currentVersion |
static java.lang.String |
CURRENTVERSION |
protected Details |
details |
static java.lang.String |
DETAILS |
static java.util.Set<java.lang.String> |
FIELDS |
protected java.sql.Timestamp |
finished |
static java.lang.String |
FINISHED |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected java.lang.String |
message |
static java.lang.String |
MESSAGE |
protected java.lang.Integer |
previousPatch |
static java.lang.String |
PREVIOUSPATCH |
protected java.lang.String |
previousVersion |
static java.lang.String |
PREVIOUSVERSION |
Modifier | Constructor and Description |
---|---|
|
DBPatch() |
protected |
DBPatch(java.lang.Long id) |
|
DBPatch(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
DBPatch(java.lang.String _currentVersion,
java.lang.Integer _currentPatch,
java.lang.String _previousVersion,
java.lang.Integer _previousPatch) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
java.lang.Integer |
getCurrentPatch()
Simple field ome.model.meta.DBPatch.currentPatch (java.lang.Integer)
|
java.lang.String |
getCurrentVersion()
Simple field ome.model.meta.DBPatch.currentVersion (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
java.sql.Timestamp |
getFinished()
Simple field ome.model.meta.DBPatch.finished (java.sql.Timestamp)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
java.lang.String |
getMessage()
Simple field ome.model.meta.DBPatch.message (java.lang.String)
|
java.lang.Integer |
getPreviousPatch()
Simple field ome.model.meta.DBPatch.previousPatch (java.lang.Integer)
|
java.lang.String |
getPreviousVersion()
Simple field ome.model.meta.DBPatch.previousVersion (java.lang.String)
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
DBPatch |
newInstance() |
DBPatch |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
void |
setCurrentPatch(java.lang.Integer currentPatch) |
void |
setCurrentVersion(java.lang.String currentVersion) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the DBPatch.Details instance instead. |
void |
setFinished(java.sql.Timestamp finished) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setMessage(java.lang.String message) |
void |
setPreviousPatch(java.lang.Integer previousPatch) |
void |
setPreviousVersion(java.lang.String previousVersion) |
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String ID
protected java.lang.Long id
protected java.lang.String currentVersion
protected java.lang.Integer currentPatch
protected java.lang.String previousVersion
protected java.lang.Integer previousPatch
protected java.sql.Timestamp finished
protected java.lang.String message
protected Details details
public static final java.lang.String CURRENTVERSION
public static final java.lang.String CURRENTPATCH
public static final java.lang.String PREVIOUSVERSION
public static final java.lang.String PREVIOUSPATCH
public static final java.lang.String FINISHED
public static final java.lang.String MESSAGE
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public DBPatch()
protected DBPatch(java.lang.Long id)
public DBPatch(java.lang.Long id, boolean loaded)
public DBPatch(java.lang.String _currentVersion, java.lang.Integer _currentPatch, java.lang.String _previousVersion, java.lang.Integer _previousPatch)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getCurrentVersion()
public void setCurrentVersion(java.lang.String currentVersion)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getCurrentPatch()
public void setCurrentPatch(java.lang.Integer currentPatch)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getPreviousVersion()
public void setPreviousVersion(java.lang.String previousVersion)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getPreviousPatch()
public void setPreviousPatch(java.lang.Integer previousPatch)
@DateBridge(resolution=MINUTE) @Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.sql.Timestamp getFinished()
public void setFinished(java.sql.Timestamp finished)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the DBPatch.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public DBPatch newInstance()
public DBPatch proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(java.lang.String field, java.lang.Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(java.lang.String propertyName)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.