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 124 125 126 127 128 129 130 131 |
// This Source Code is in the Public Domain per: http://unlicense.org 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 ) ) ); } @Override public Object getValueOnPO( DBSequences pPO ) { return pPO.getName(); } @Override 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 ); } @Override public Object getValueOnPO( DBSequences pPO ) { return pPO.getNextValue(); } @Override 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 ); } @Override public Class getPOclass() { return DBSequences.class; } @Override public DBSequences createNew( Transaction pTransaction ) { return new DBSequences( pTransaction ); } @Override public DBSequences createPOfromFinder() { return new DBSequences( CONSTRUCTION_CONTROL ); } @Override public String getDisplayValueFormat() { return null; } } } |
Commits for litesoft/trunk/Java/core/Server/src/org/litesoft/or/DBSequencesPO.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
151 Diff | GeorgeS | Thu 17 Mar, 2011 04:16:22 +0000 | |
49 Diff | GeorgeS | Mon 12 Apr, 2010 02:59:10 +0000 | License Text |
24 Diff | GeorgeS | Wed 24 Feb, 2010 01:51:38 +0000 | |
2 | GeorgeS | Sun 07 Feb, 2010 12:50:58 +0000 |