if (MetaDataUtils.isJdbcTypeNumeric(enumJdbcType))
/** * Initialize this JavaTypeMapping for the given member MetaData and Table owning it. * @param mmd MetaData for the member to be mapped (if any) * @param table The table storing this mapping (if any) * @param clr the ClassLoaderResolver */ public void initialize(AbstractMemberMetaData mmd, Table table, ClassLoaderResolver clr) { if (mmd != null && mmd.isSerialized()) { datastoreJavaType = ClassNameConstants.JAVA_IO_SERIALIZABLE; } else if (mmd != null) { if (MetaDataUtils.isJdbcTypeNumeric(TypeConversionHelper.getJdbcTypeForEnum(mmd, roleForMember, clr))) { datastoreJavaType = ClassNameConstants.JAVA_LANG_INTEGER; } } super.initialize(mmd, table, clr); if (storeMgr.getDatastoreAdapter().supportsOption(DatastoreAdapter.NATIVE_ENUM_TYPE)) { // TODO When this enum is using native handling then get the enum "type" from the enum, and set it on the column as the sqlType. } }
if (MetaDataUtils.isJdbcTypeNumeric(jdbcType)) boolean useLong = MetaDataUtils.isJdbcTypeNumeric(col.getJdbcType());
if (MetaDataUtils.isJdbcTypeNumeric(jdbcType))
boolean useLong = MetaDataUtils.isJdbcTypeNumeric(mapping.getColumn(0).getJdbcType());
else if (MetaDataUtils.isJdbcTypeNumeric(jdbcType))
boolean useLong = MetaDataUtils.isJdbcTypeNumeric(mapping.getColumn(0).getJdbcType()); TypeConverter longConv = ec.getNucleusContext().getTypeManager().getTypeConverterForType(mmd.getType(), Long.class); if (useLong)
if (MetaDataUtils.isJdbcTypeNumeric(jdbcType)) boolean useLong = MetaDataUtils.isJdbcTypeNumeric(mapping.getColumn(0).getJdbcType()); TypeConverter strConv = ec.getNucleusContext().getTypeManager().getTypeConverterForType(mmd.getType(), String.class); TypeConverter longConv = ec.getNucleusContext().getTypeManager().getTypeConverterForType(mmd.getType(), Long.class);
if (disColmd != null && disColmd.getJdbcType() != null) if (MetaDataUtils.isJdbcTypeNumeric(disColmd.getJdbcType())) if (disColmd != null && disColmd.getJdbcType() != null) if (MetaDataUtils.isJdbcTypeNumeric(disColmd.getJdbcType()))
boolean useLong = MetaDataUtils.isJdbcTypeNumeric(col.getJdbcType());