blob: 66ccc96a13489cd1d7c1904cca19b6934535334b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="createBillingAccount" short-description="Create Billing Account">
<make-value value-field="newEntity" entity-name="BillingAccount"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<sequenced-id sequence-name="BillingAccount" field="billingAccountId"/>
<to-string field="billingAccountId"/>
<set from-field="billingAccountId" field="newEntity.billingAccountId"/>
<field-to-result field="billingAccountId" result-name="billingAccountId"/>
<if-empty field="newEntity.fromDate">
<now-timestamp field="nowTimestamp"/>
<set from-field="nowTimestamp" field="newEntity.fromDate"/>
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccount" short-description="Update Billing Account">
<make-value value-field="lookupPKMap" entity-name="BillingAccount"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccount" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="createBillingAccountRole" short-description="Create Billing Account Role">
<make-value value-field="newEntity" entity-name="BillingAccountRole"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<if-empty field="newEntity.fromDate">
<now-timestamp field="nowTimestamp"/>
<set from-field="nowTimestamp" field="newEntity.fromDate"/>
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccountRole" short-description="Update Billing Account Role">
<make-value value-field="lookupPKMap" entity-name="BillingAccountRole"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountRole" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="removeBillingAccountRole" short-description="Remove Billing Account Role">
<make-value value-field="lookupPKMap" entity-name="BillingAccountRole"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountRole" map="lookupPKMap" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="createBillingAccountTerm" short-description="Create Billing Account Term">
<make-value value-field="newEntity" entity-name="BillingAccountTerm"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<sequenced-id sequence-name="BillingAccountTerm" field="billingAccountTermId"/>
<to-string field="billingAccountTermId"/>
<set from-field="billingAccountTermId" field="newEntity.billingAccountTermId"/>
<field-to-result field="billingAccountTermId" result-name="billingAccountTermId"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccountTerm" short-description="Update Billing Account Term">
<make-value value-field="lookupPKMap" entity-name="BillingAccountTerm"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountTerm" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="removeBillingAccountTerm" short-description="Remove Billing Account Term">
<make-value entity-name="BillingAccountTerm" value-field="lookupPKMap"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountTerm" map="lookupPKMap" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
</simple-methods>