io.vertigo.orchestra.domain.planification.OProcessPlanification Maven / Gradle / Ivy
The newest version!
/*
* vertigo - application development platform
*
* Copyright (C) 2013-2024, Vertigo.io, [email protected]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.vertigo.orchestra.domain.planification;
import io.vertigo.core.lang.Generated;
import io.vertigo.datamodel.data.model.Entity;
import io.vertigo.datamodel.data.model.UID;
import io.vertigo.datamodel.data.stereotype.Field;
import io.vertigo.datamodel.data.util.DataModelUtil;
import io.vertigo.datastore.impl.entitystore.StoreVAccessor;
/**
* This class is automatically generated.
* DO NOT EDIT THIS FILE DIRECTLY.
*/
@Generated
@io.vertigo.datamodel.data.stereotype.DataSpace("orchestra")
public final class OProcessPlanification implements Entity {
private static final long serialVersionUID = 1L;
private Long prpId;
private java.time.Instant expectedTime;
private String initialParams;
@io.vertigo.datamodel.data.stereotype.Association(
name = "APrpPro",
fkFieldName = "proId",
primaryDtDefinitionName = "DtOProcess",
primaryIsNavigable = true,
primaryRole = "Processus",
primaryLabel = "Processus",
primaryMultiplicity = "1..1",
foreignDtDefinitionName = "DtOProcessPlanification",
foreignIsNavigable = false,
foreignRole = "ProcessPlanification",
foreignLabel = "PlanificationProcessus",
foreignMultiplicity = "0..*")
private final StoreVAccessor proIdAccessor = new StoreVAccessor<>(io.vertigo.orchestra.domain.definition.OProcess.class, "Processus");
@io.vertigo.datamodel.data.stereotype.Association(
name = "APrpNod",
fkFieldName = "nodId",
primaryDtDefinitionName = "DtONode",
primaryIsNavigable = true,
primaryRole = "Node",
primaryLabel = "Node",
primaryMultiplicity = "0..1",
foreignDtDefinitionName = "DtOProcessPlanification",
foreignIsNavigable = false,
foreignRole = "ProcessPlanification",
foreignLabel = "PlanificationProcessus",
foreignMultiplicity = "0..*")
private final StoreVAccessor nodIdAccessor = new StoreVAccessor<>(io.vertigo.orchestra.domain.execution.ONode.class, "Node");
@io.vertigo.datamodel.data.stereotype.Association(
name = "APrpPst",
fkFieldName = "sstCd",
primaryDtDefinitionName = "DtOSchedulerState",
primaryIsNavigable = true,
primaryRole = "PlanificationState",
primaryLabel = "PlanificationState",
primaryMultiplicity = "0..1",
foreignDtDefinitionName = "DtOProcessPlanification",
foreignIsNavigable = false,
foreignRole = "ProcessPlanification",
foreignLabel = "ProcessPlanification",
foreignMultiplicity = "0..*")
private final StoreVAccessor sstCdAccessor = new StoreVAccessor<>(io.vertigo.orchestra.domain.referential.OSchedulerState.class, "PlanificationState");
/** {@inheritDoc} */
@Override
public UID getUID() {
return UID.of(this);
}
/**
* Champ : ID.
* Récupère la valeur de la propriété 'Id Planification'.
* @return Long prpId Obligatoire
*/
@Field(smartType = "STyOIdentifiant", type = "ID", cardinality = io.vertigo.core.lang.Cardinality.ONE, label = "Id Planification")
public Long getPrpId() {
return prpId;
}
/**
* Champ : ID.
* Définit la valeur de la propriété 'Id Planification'.
* @param prpId Long Obligatoire
*/
public void setPrpId(final Long prpId) {
this.prpId = prpId;
}
/**
* Champ : DATA.
* Récupère la valeur de la propriété 'Date d'execution prévue'.
* @return Instant expectedTime
*/
@Field(smartType = "STyOTimestamp", label = "Date d'execution prévue")
public java.time.Instant getExpectedTime() {
return expectedTime;
}
/**
* Champ : DATA.
* Définit la valeur de la propriété 'Date d'execution prévue'.
* @param expectedTime Instant
*/
public void setExpectedTime(final java.time.Instant expectedTime) {
this.expectedTime = expectedTime;
}
/**
* Champ : DATA.
* Récupère la valeur de la propriété 'Paramètres initiaux sous forme de JSON'.
* @return String initialParams
*/
@Field(smartType = "STyOJsonText", label = "Paramètres initiaux sous forme de JSON")
public String getInitialParams() {
return initialParams;
}
/**
* Champ : DATA.
* Définit la valeur de la propriété 'Paramètres initiaux sous forme de JSON'.
* @param initialParams String
*/
public void setInitialParams(final String initialParams) {
this.initialParams = initialParams;
}
/**
* Champ : FOREIGN_KEY.
* Récupère la valeur de la propriété 'Processus'.
* @return Long proId Obligatoire
*/
@io.vertigo.datamodel.data.stereotype.ForeignKey(smartType = "STyOIdentifiant", label = "Processus", fkDefinition = "DtOProcess", cardinality = io.vertigo.core.lang.Cardinality.ONE )
public Long getProId() {
return (Long) proIdAccessor.getId();
}
/**
* Champ : FOREIGN_KEY.
* Définit la valeur de la propriété 'Processus'.
* @param proId Long Obligatoire
*/
public void setProId(final Long proId) {
proIdAccessor.setId(proId);
}
/**
* Champ : FOREIGN_KEY.
* Récupère la valeur de la propriété 'Node'.
* @return Long nodId
*/
@io.vertigo.datamodel.data.stereotype.ForeignKey(smartType = "STyOIdentifiant", label = "Node", fkDefinition = "DtONode" )
public Long getNodId() {
return (Long) nodIdAccessor.getId();
}
/**
* Champ : FOREIGN_KEY.
* Définit la valeur de la propriété 'Node'.
* @param nodId Long
*/
public void setNodId(final Long nodId) {
nodIdAccessor.setId(nodId);
}
/**
* Champ : FOREIGN_KEY.
* Récupère la valeur de la propriété 'PlanificationState'.
* @return String sstCd
*/
@io.vertigo.datamodel.data.stereotype.ForeignKey(smartType = "STyOCodeIdentifiant", label = "PlanificationState", fkDefinition = "DtOSchedulerState" )
public String getSstCd() {
return (String) sstCdAccessor.getId();
}
/**
* Champ : FOREIGN_KEY.
* Définit la valeur de la propriété 'PlanificationState'.
* @param sstCd String
*/
public void setSstCd(final String sstCd) {
sstCdAccessor.setId(sstCd);
}
/**
* Association : Node.
* @return l'accesseur vers la propriété 'Node'
*/
public StoreVAccessor node() {
return nodIdAccessor;
}
/**
* Association : Processus.
* @return l'accesseur vers la propriété 'Processus'
*/
public StoreVAccessor processus() {
return proIdAccessor;
}
/**
* Association : PlanificationState.
* @return l'accesseur vers la propriété 'PlanificationState'
*/
public StoreVAccessor planificationState() {
return sstCdAccessor;
}
/** {@inheritDoc} */
@Override
public String toString() {
return DataModelUtil.toString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy