public ColumnMetadata setInsertValue(String val) { getInternal().setInsertValue(val); return this; }
/** * Convenience method to get the column metadata for annotation values of a @Column. * @param annotationValues The values for the annotation * @return The MetaData for the column */ public static ColumnMetaData getColumnMetaDataForAnnotations(Map<String, Object> annotationValues) { ColumnMetaData colmd = new ColumnMetaData(); colmd.setName((String)annotationValues.get("name")); colmd.setTarget((String)annotationValues.get("target")); colmd.setTargetMember((String)annotationValues.get("targetField")); colmd.setJdbcType((String)annotationValues.get("jdbcType")); colmd.setSqlType((String)annotationValues.get("sqlType")); colmd.setLength((Integer)annotationValues.get("length")); colmd.setScale((Integer)annotationValues.get("scale")); colmd.setAllowsNull((String)annotationValues.get("allowsNull")); colmd.setDefaultValue((String)annotationValues.get("defaultValue")); colmd.setInsertValue((String)annotationValues.get("insertValue")); if (annotationValues.containsKey("position")) { colmd.setPosition((Integer)annotationValues.get("position")); } addExtensionsToMetaData(colmd, (Extension[])annotationValues.get("extensions")); return colmd; }
colmd.setAllowsNull(allowsNull); colmd.setDefaultValue(defaultValue); colmd.setInsertValue(insertValue); colmd.setInsertable(insertable); colmd.setUpdateable(updateable);
colmd.setAllowsNull(allowsNull); colmd.setDefaultValue(defaultValue); colmd.setInsertValue(insertValue); colmd.setInsertable(insertable); colmd.setUpdateable(updateable);
colmd.setAllowsNull(col.allowsNull()); colmd.setDefaultValue(col.defaultValue()); colmd.setInsertValue(col.insertValue());
colmd.setAllowsNull(getAttr(attrs, "allows-null")); colmd.setDefaultValue(getAttr(attrs, "default-value")); colmd.setInsertValue(getAttr(attrs, "insert-value")); String pos = getAttr(attrs, "position"); // JDO 3.1+ if (pos != null)