| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.shareddata.framework.county |
| 18 | |
|
| 19 | |
import org.kuali.rice.krad.bo.ExternalizableBusinessObject |
| 20 | |
import org.kuali.rice.krad.bo.Inactivatable |
| 21 | |
import org.kuali.rice.shareddata.api.county.County |
| 22 | |
import org.kuali.rice.shareddata.api.county.CountyContract |
| 23 | |
import org.kuali.rice.shareddata.framework.country.CountryEbo |
| 24 | |
import org.kuali.rice.shareddata.framework.state.StateEbo |
| 25 | |
|
| 26 | |
|
| 27 | |
class CountyEbo implements Inactivatable, CountyContract, ExternalizableBusinessObject { |
| 28 | |
def String code |
| 29 | |
def String countryCode |
| 30 | |
def String stateCode |
| 31 | |
def String name |
| 32 | |
def boolean active |
| 33 | |
def CountryEbo country; |
| 34 | |
def StateEbo state; |
| 35 | |
def Long versionNumber |
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
static County to(CountyEbo bo) { |
| 43 | 0 | if (bo == null) { |
| 44 | 0 | return null |
| 45 | |
} |
| 46 | |
|
| 47 | 0 | return County.Builder.create(bo).build(); |
| 48 | |
} |
| 49 | |
|
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
static CountyEbo from(County im) { |
| 56 | 0 | if (im == null) { |
| 57 | 0 | return null |
| 58 | |
} |
| 59 | |
|
| 60 | 0 | CountyEbo bo = new CountyEbo() |
| 61 | 0 | bo.code = im.code |
| 62 | 0 | bo.name = im.name |
| 63 | 0 | bo.countryCode = im.countryCode |
| 64 | 0 | bo.stateCode = im.stateCode |
| 65 | 0 | bo.active = im.active |
| 66 | 0 | bo.versionNumber = im.versionNumber |
| 67 | |
|
| 68 | 0 | return bo |
| 69 | |
} |
| 70 | |
|
| 71 | |
void refresh() { } |
| 72 | |
} |