- public static Class<?> getTypeForODLColumn(Object odlNode){
- Object type = get(odlNode,"type");
- if(type instanceof Uint32 || type instanceof Uint64){
- return long.class;
- }else
- if(type instanceof Uint16){
- return int.class;
- }else
- if(type instanceof Uint8){
- return byte.class;
+ public static Class<?> getTypeForODLColumn(final Object odlNode){
+ final Object o = get(odlNode,"type");
+ if (o instanceof TypeDefinition) {
+ final TypeDefinition<?> type = (TypeDefinition<?>)o;
+
+ if (DerivedTypes.isUint32(type) || DerivedTypes.isUint64(type)) {
+ return long.class;
+ } else if (DerivedTypes.isUint16(type)) {
+ return int.class;
+ } else if (DerivedTypes.isUint8(type)) {
+ return byte.class;
+ }