litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt
package org.litesoft.orsup.lazyeval;
import org.litesoft.core.simpletypes.temporal.*;
public class LazyEvalCalendarY
{
private CalendarY mCalendarY;
private String mPersistForm;
public CalendarY getCalendarY()
{
if ( (mCalendarY == null) && (mPersistForm != null) )
{
mCalendarY = CalendarY.fromSQLvalue( mPersistForm );
}
return mCalendarY;
}
public void setCalendarY( CalendarY pCalendarY )
{
mCalendarY = pCalendarY;
mPersistForm = null;
}
public String getPersistForm()
{
if ( (mPersistForm == null) && (mCalendarY != null) )
{
mPersistForm = mCalendarY.toSQLvalue();
}
return mPersistForm;
}
public void setPersistForm( String pPersistForm )
{
mPersistForm = pPersistForm;
mCalendarY = null;
}
}
|
Revision |
Author |
Commited |
Message |
863
|
GeorgeS
|
Fri 16 Nov, 2012 22:14:29 +0000 |
|