@Entity
public class ModelUpdate
extends com.whitestein.lsps.common.VersionedAbstractEntity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIND_BY_MIGRATION_ID
Named query.
|
static java.lang.String |
FIND_BY_MODEL_INSTANCE_ID
Named query.
|
static java.lang.String |
FIND_CURRENT_BY_MIGRATION_ID
Named query.
|
Modifier | Constructor and Description |
---|---|
protected |
ModelUpdate()
Creates new instance.
|
|
ModelUpdate(long modelInstanceId,
java.util.Date started,
Migration migration)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
appendLog(java.lang.String log)
Sets the migration log.
|
java.util.Date |
getFinished()
Returns the finished date.
|
java.lang.String |
getLog()
Returns the migration log.
|
Migration |
getMigration()
Returns the migration.
|
long |
getModelInstanceId()
Returns the model instance id.
|
java.util.Date |
getStarted()
Returns the migration date.
|
ModelInstanceState |
getState()
Returns the state of the migration.
|
void |
setFinished(java.util.Date finished)
Sets finish date.
|
void |
setState(ModelInstanceState state)
Sets the migration state.
|
public static final java.lang.String FIND_BY_MODEL_INSTANCE_ID
public static final java.lang.String FIND_BY_MIGRATION_ID
public static final java.lang.String FIND_CURRENT_BY_MIGRATION_ID
protected ModelUpdate()
public ModelUpdate(long modelInstanceId, java.util.Date started, Migration migration)
modelInstanceId
- started
- migration
- public long getModelInstanceId()
public java.lang.String getLog()
public void appendLog(java.lang.String log)
log
- public java.util.Date getStarted()
public java.util.Date getFinished()
public Migration getMigration()
public ModelInstanceState getState()
public void setFinished(java.util.Date finished)
finished
- public void setState(ModelInstanceState state)
state
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.