Tools, FAQ, Tutorials:
CTO Language Primitive Data Types
What are CTO Language Primitive Data Types?
✍: FYIcenter.com
CTO Language Primitive Data Types built-in system data types
that you can use them to build new data types
Currently, there are 6 primitive data types supported:
Here is an example CTO file, models/order.cto, showing how Primitive Data Types can be used to declare an "asset" data type:
/* Copyright (c) FYIcenter.com */ namespace com.fyicenter.hyperledger.order asset Order identified by orderId { o String orderId o String product default='Alice\'s Adventures in Wonderland' o Integer quantity default=1 o Double price default=99.99 o DateTime expiration default='2099-12-31T23:59:59.999999+05:30' o Boolean isTaxable default=true o Long serialNumber default=999999999 }
Notice that literals of "String" and "DateTime" types must be quoted as "..." or '...'.
Â
⇒ Business Network JS Scripting Language
⇠"enum" CTO Statement Syntax
2021-06-19, 636👍, 0💬
Popular Posts:
What is Azure API Management Developer Portal Admin? The Developer Portal Admin is an Azure Web port...
Where to find tutorials on API Management Services at Azure Portal? Here is a list of tutorials to a...
How to Create a New Instance of a Class? There are two ways to create a new instance (object) of a c...
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...