org.mod4j.businessdomain.generator.helpers
Class BusinessClassHelpers

java.lang.Object
  extended by org.mod4j.businessdomain.generator.helpers.BusinessClassHelpers

public class BusinessClassHelpers
extends java.lang.Object


Constructor Summary
BusinessClassHelpers()
           
 
Method Summary
static java.util.List<Association> getAllAssociationsFrom(BusinessClass cls)
           
static java.util.List<Association> getAllAssociationsTo(BusinessClass cls)
           
static java.util.List<Property> getAllProperties(BusinessClass cls)
           
static java.lang.String getCollectionImplementation(Association a)
           
static java.lang.String getCollectionInterface(Association a)
           
static boolean hasSubclasses(BusinessClass clazz)
           
static boolean isCompositePart(BusinessClass cls)
           
static boolean isMany2Many(Association a)
           
static boolean isMany2One(Association a)
           
static boolean isOne2Many(Association a)
           
static boolean isOne2One(Association a)
           
static java.lang.String javaDefaultValue(BoolProperty p)
           
static java.lang.String javaDefaultValue(DateTimeProperty p)
           
static java.lang.String javaDefaultValue(DecimalProperty p)
           
static java.lang.String javaDefaultValue(EnumerationProperty p)
           
static java.lang.String javaDefaultValue(IntegerProperty p)
           
static java.lang.String javaDefaultValue(Property p)
           
static java.lang.String javaDefaultValue(StringProperty p)
           
static java.lang.String javaNullableType(BoolProperty p)
           
static java.lang.String javaNullableType(DateTimeProperty p)
           
static java.lang.String javaNullableType(DecimalProperty p)
           
static java.lang.String javaNullableType(EnumerationProperty p)
           
static java.lang.String javaNullableType(IntegerProperty p)
           
static java.lang.String javaNullableType(Property p)
           
static java.lang.String javaNullableType(StringProperty p)
           
static java.lang.String javaType(BoolProperty p)
           
static java.lang.String javaType(DateTimeProperty p)
           
static java.lang.String javaType(DecimalProperty p)
           
static java.lang.String javaType(EnumerationProperty p)
           
static java.lang.String javaType(IntegerProperty p)
           
static java.lang.String javaType(Property p)
           
static java.lang.String javaType(StringProperty p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessClassHelpers

public BusinessClassHelpers()
Method Detail

getCollectionInterface

public static java.lang.String getCollectionInterface(Association a)

getCollectionImplementation

public static java.lang.String getCollectionImplementation(Association a)

isOne2Many

public static boolean isOne2Many(Association a)

isOne2One

public static boolean isOne2One(Association a)

isMany2One

public static boolean isMany2One(Association a)

isMany2Many

public static boolean isMany2Many(Association a)

isCompositePart

public static boolean isCompositePart(BusinessClass cls)

javaType

public static java.lang.String javaType(Property p)

javaNullableType

public static java.lang.String javaNullableType(Property p)

javaDefaultValue

public static java.lang.String javaDefaultValue(Property p)

javaType

public static java.lang.String javaType(BoolProperty p)

javaNullableType

public static java.lang.String javaNullableType(BoolProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(BoolProperty p)

javaType

public static java.lang.String javaType(DateTimeProperty p)

javaNullableType

public static java.lang.String javaNullableType(DateTimeProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(DateTimeProperty p)

javaType

public static java.lang.String javaType(EnumerationProperty p)

javaNullableType

public static java.lang.String javaNullableType(EnumerationProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(EnumerationProperty p)

javaType

public static java.lang.String javaType(StringProperty p)

javaNullableType

public static java.lang.String javaNullableType(StringProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(StringProperty p)

javaType

public static java.lang.String javaType(IntegerProperty p)

javaNullableType

public static java.lang.String javaNullableType(IntegerProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(IntegerProperty p)

javaType

public static java.lang.String javaType(DecimalProperty p)

javaNullableType

public static java.lang.String javaNullableType(DecimalProperty p)

javaDefaultValue

public static java.lang.String javaDefaultValue(DecimalProperty p)

getAllProperties

public static java.util.List<Property> getAllProperties(BusinessClass cls)

getAllAssociationsTo

public static java.util.List<Association> getAllAssociationsTo(BusinessClass cls)

getAllAssociationsFrom

public static java.util.List<Association> getAllAssociationsFrom(BusinessClass cls)

hasSubclasses

public static boolean hasSubclasses(BusinessClass clazz)


Copyright © 2010 Mod4j. All Rights Reserved.