Last active
February 1, 2017 10:51
-
-
Save eduard93/0d7b517e692cb2296d6941ffe5532053 to your computer and use it in GitHub Desktop.
How can I override the getter for serial property?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2016.1 (Build 656U)" ts="2017-02-01 13:19:43"> | |
<Class name="CS.Persistent"> | |
<Super>%Persistent</Super> | |
<TimeChanged>64315,46718.639278</TimeChanged> | |
<TimeCreated>64315,46649.612714</TimeCreated> | |
<Property name="data"> | |
<Type>CS.Serial</Type> | |
<SqlComputeCode>set {*} = ##class(CS.Persistent).dataGetStatic()</SqlComputeCode> | |
<SqlComputed>1</SqlComputed> | |
<Transient>1</Transient> | |
</Property> | |
<Method name="dataGet"> | |
<Description> | |
data getter method in object context</Description> | |
<ReturnType>CS.Serial</ReturnType> | |
<Implementation><![CDATA[ return ..data2GetStatic() | |
]]></Implementation> | |
</Method> | |
<Method name="dataGetStatic"> | |
<Description> | |
data getter method in SQL context</Description> | |
<ClassMethod>1</ClassMethod> | |
<ReturnType>CS.Serial</ReturnType> | |
<Implementation><![CDATA[ return $lb($lb("2017","01"),"CS.Serial") | |
]]></Implementation> | |
</Method> | |
</Class> | |
<Class name="CS.Serial"> | |
<Super>%SerialObject</Super> | |
<TimeChanged>64315,46714.875846</TimeChanged> | |
<TimeCreated>64315,46567.947029</TimeCreated> | |
<Property name="Year"> | |
<Type>%Integer</Type> | |
</Property> | |
<Property name="Month"> | |
<Type>%Integer</Type> | |
</Property> | |
</Class> | |
</Export> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment