blob: c4e2e185458110a7e22d8098a533dd7bf215eee0 [file] [log] [blame]
/******************************************************************
* *
* Copyright (C) - Loetz GmbH&Co.KG, 69115 Heidelberg, Germany
* *
* This source was created by OSBP Softwarefactory Wizard! *
* *
* OSBP is (C) - Loetz GmbH&Co.KG, 69115 Heidelberg, Germany *
* *
*================================================================*
* *
* @file $HeadURL$
* @version $Revision$
* @date $Date$
* @author $Author$
* *
******************************************************************/
/**
* Copyright (c) 2011, 2014 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.osbp.mysmartshop.datatypes {
datatype Timestamp dateType timestamp
datatype PaymentMethod jvmType String
datatype boolean jvmType java.lang.Boolean asPrimitive
datatype short jvmType java.lang.Short asPrimitive
datatype int jvmType java.lang.Integer asPrimitive
datatype long jvmType java.lang.Long asPrimitive
datatype double jvmType java.lang.Double asPrimitive
datatype float jvmType java.lang.Float asPrimitive
datatype character jvmType java.lang.Character asPrimitive
datatype byte jvmType java.lang.Byte asPrimitive
datatype Boolean jvmType java.lang.Boolean
datatype Short jvmType java.lang.Short
datatype Int jvmType java.lang.Integer
datatype Long jvmType java.lang.Long
datatype Double jvmType java.lang.Double
datatype Float jvmType java.lang.Float
datatype Character jvmType java.lang.Character
datatype Byte jvmType java.lang.Byte
datatype BigDecimal jvmType java.math.BigDecimal
datatype String jvmType java.lang.String
datatype BlobMapping jvmType java.lang.String
properties (
key="Blob" value="2"
/**
* value="0" name="unnormalized" resolution="unknown"
* value="1" name="small" resolution="16x16"
* value="2" name="mid" resolution="64x64"
* value="3" name="portrait" resolution="64x128"
* value="4" name="landscape" resolution="128x64"
* value="5" name="big" resolution="200x-1"
*
*/
)
datatype notnullString jvmType String isNotNull [severity=error]
datatype Date dateType date
datatype Price jvmType Double properties(key="decimalformat" value="###,##0.00 &curren")
datatype DateOnly dateType date properties(key = "Date" value = "Day")
datatype BirthDate dateType date isNotNull isPast [severity=error] properties(key = "Date" value = "Day")
datatype Time dateType time
datatype blobtype asBlob
datatype clobtype asBlob
datatype NumberToUomo jvmType java.lang.Double
datatype TextArea jvmType java.lang.String properties(key = "TextArea" value = "5") // used for TextArea
/**
* The RichText_Short datatype represents the attribute as a RichTextArea.
* The max length of the input depends on the underlying database.
* If you need to hold bigger data, then use the #RichText_Long.
*/
datatype RichText_Short jvmType String
properties(key = "type" value = "richTextArea")
/**
* The RichText datatype represents the attribute as a RichTextArea.
* The type in the data model will be a Blob.
*/
datatype RichText_Long asBlob
properties(key = "type" value = "richTextArea")
/**
* The Password datatype represents the attribute as a PasswordField.
* The type in the data model will be a String.
*/
datatype Password jvmType String
properties(key = "type" value = "password")
/**
* The MaskedText datatype represents the attribute as a MaskedTextField.
* The type in the data model will be a String.<br>
* If you are using this datatype, then you need to add a map property to the entity / dto attiribute.<br>
* Eg: <br>
* <code>var MaskedText text properties (key="mask" value="UUU-###")</code>
*/
datatype MaskedText jvmType String
properties(key = "type" value = "maskedText")
/**
* The MaskedDecimal datatype represents the attribute as a MaskedDecimalField.
* The type in the data model will be a Number.<br>
* If you are using this datatype, then you need to add a map property to the entity / dto attiribute.<br>
* Eg: <br>
* <code>var MaskedDecimal dec properties (key="mask" value="#,#00.000")</code>
*/
datatype MaskedText jvmType String
properties(key = "type" value = "maskedDecimal")
/**
* The MaskedText datatype represents the attribute as a MaskedTextField.
* The type in the data model will be a String.
*/
datatype MaskedDecimal jvmType String
properties(key = "type" value = "maskedDecimal")
datatype PriceCustomDecimal jvmType java.lang.Double asPrimitive
properties (
key="functionCss" value="org.osbp.mysmartshop.functionlibrary.CssStyler.priceEndCss99",
key="functionConverter" value="org.osbp.mysmartshop.functionlibrary.Formatter.currencyFormatter"
)
datatype LengthCustomDecimal jvmType java.lang.Double asPrimitive
properties (
key="functionCss" value="org.osbp.mysmartshop.functionlibrary.CssStyler.priceEndCss95",
key="functionConverter" value="org.osbp.mysmartshop.functionlibrary.UomoConverter"
)
datatype LengthMetricCustomDecimal jvmType java.lang.Double asPrimitive
properties (
key="functionCss" value="org.osbp.mysmartshop.functionlibrary.CssStyler.priceEndCss95",
key="functionConverter" value="org.osbp.mysmartshop.functionlibrary.UomoCMConverter"
)
datatype LengthCMMetricCustomDecimal jvmType java.lang.Double asPrimitive
properties (
key="functionConverter" value="org.osbp.mysmartshop.functionlibrary.UomoCMMetricConverter"
)
datatype MassGRAMMetricCustomDecimal jvmType java.lang.Double asPrimitive
properties (
key="functionConverter" value="org.osbp.mysmartshop.functionlibrary.UomoGRAMMetricConverter"
)
// // UOMo data types, which are available through de.compex.utils.uomo
// datatype Length jvmType org.eclipse.uomo.units.impl.BaseAmount<org.unitsofmeasurement.quantity.Length>
// datatype Area jvmType org.eclipse.uomo.units.impl.BaseAmount<org.unitsofmeasurement.quantity.Area>
// datatype Volume jvmType org.eclipse.uomo.units.impl.BaseAmount<org.unitsofmeasurement.quantity.Volume>
// datatype Mass jvmType org.eclipse.uomo.units.impl.BaseAmount<org.unitsofmeasurement.quantity.Mass>
// // joda money types
// datatype Money jvmType org.joda.money.Money
// datatype BigMoney jvmType org.joda.money.BigMoney
}