Subversion Repository Public Repository

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package org.litesoft.or;

import org.litesoft.bo.attributes.*;
import org.litesoft.core.util.*;
import org.litesoft.orsup.base.*;
import org.litesoft.orsup.nonpublic.*;
import org.litesoft.orsup.otherattributeaccessors.*;
import org.litesoft.orsup.transact.*;

public abstract class DBSequencesPO extends PersistentObjectImpl<DBSequences>
{
    private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl();

    protected DBSequencesPO( Transaction pTransaction ) // Only used for New
    {
        super( DBSequencesMetaData.INSTANCE, pTransaction );
        registerWithTransaction();
    }

    protected DBSequencesPO( ConstructionControl pConstructionControl )
    {
        super( DBSequencesMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl );
    }

    public static final AttributeAccessorSCD CD_Name = new AttributeAccessor_Name();

    private String mName = null;

    public String getName()
    {
        return mName;
    }

    public void setName( String pName )
    {
        verifyMutability( CD_Name, mName, pName );
        mName = pName;
    }

    private static class AttributeAccessor_Name extends AttributeAccessorSCDsimplePersistedRegular<DBSequences>
    {
        public AttributeAccessor_Name()
        {
            super( "Name", "name", true, _String.with( MaxLength.of( 255 ) ) );
        }

        public Object getValueOnPO( DBSequences pPO )
        {
            return pPO.getName();
        }

        public void setValueOnPO( DBSequences pPO, Object pValue )
        {
            pPO.setName( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_NextValue = new AttributeAccessor_NextValue();

    private Long mNextValue = null;

    public Long getNextValue()
    {
        return mNextValue;
    }

    public void setNextValue( Long pNextValue )
    {
        verifyMutability( CD_NextValue, mNextValue, pNextValue );
        mNextValue = pNextValue;
    }

    private static class AttributeAccessor_NextValue extends AttributeAccessorSCDsimplePersistedRegular<DBSequences>
    {
        public AttributeAccessor_NextValue()
        {
            super( "NextValue", "nextValue", false, _Long );
        }

        public Object getValueOnPO( DBSequences pPO )
        {
            return pPO.getNextValue();
        }

        public void setValueOnPO( DBSequences pPO, Object pValue )
        {
            pPO.setNextValue( to_Long( pValue ) );
        }
    }

    static class MyMetaData extends PersistentObjectImplMetaData<DBSequences>
    {
        public static final String OBJECT_NAME = "DBSequences";
        public static final String TABLE_NAME = "DBSequences";

        MyMetaData()
        {
            super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_Name ),
                   CD_Name, //
                   CD_NextValue );
        }

        public Class getPOclass()
        {
            return DBSequences.class;
        }

        public DBSequences createNew( Transaction pTransaction )
        {
            return new DBSequences( pTransaction );
        }

        public DBSequences createPOfromFinder()
        {
            return new DBSequences( CONSTRUCTION_CONTROL );
        }

        public String getDisplayValueFormat()
        {
            return null;
        }
    }
}

Commits for litesoft/trunk/Java/core/Server/src/org/litesoft/or/DBSequencesPO.java

Diff revisions: vs.
Revision Author Commited Message
2 GeorgeS picture GeorgeS Sun 07 Feb, 2010 12:50:58 +0000