@Column public int getPrimitiveWithNoAllowsNull() { return primitiveWithNoAllowsNull; } public void setPrimitiveWithNoAllowsNull(int primitive) {
/** * Convenience method to get the column metadata for a Column annotation. * @param parent The parent to assign it to * @param col The Column annotation * @return The MetaData for the column */ public static ColumnMetaData getColumnMetaDataForColumn(MetaData parent, Column col) { String length = null; String scale = null; if (col.length() > 0) { length = "" + col.length(); } if (col.scale() >= 0) { scale = "" + col.scale(); } ColumnMetaData colmd = new ColumnMetaData(parent, col.name(), col.target(), col.targetMember(), col.jdbcType(), col.sqlType(), length, scale, col.allowsNull(), col.defaultValue(), col.insertValue(), null, null, null); addExtensionsToMetaData(colmd, col.extensions()); return colmd; }
JDOAnnotationUtils.addExtensionsToMetaData(colmds[j], cols[j].extensions());
JDOAnnotationUtils.addExtensionsToMetaData(unmappedColumns[j], cols[j].extensions());
@Column(allowsNull="false") public int getPrimitiveWithAllowsNullFalse() { return primitiveWithAllowsNullFalse; } public void setPrimitiveWithAllowsNullFalse(int primitive) {
if (col.length() > 0) length = "" + col.length(); if (col.scale() >= 0) scale = "" + col.scale(); colmd.setName(col.name()); colmd.setTarget(col.target()); colmd.setTargetMember(col.targetMember()); colmd.setJdbcType(col.jdbcType()); colmd.setSqlType(col.sqlType()); colmd.setLength(length); colmd.setScale(scale); colmd.setAllowsNull(col.allowsNull()); colmd.setDefaultValue(col.defaultValue()); colmd.setInsertValue(col.insertValue()); addExtensionsToMetaData(colmd, col.extensions()); return colmd;
JDOAnnotationUtils.addExtensionsToMetaData(colmd, col.extensions());
@Column public int getPrimitiveWithNoAllowsNull() { return primitiveWithNoAllowsNull; } public void setPrimitiveWithNoAllowsNull(int primitive) {
JDOAnnotationUtils.addExtensionsToMetaData(colmds[j], cols[j].extensions());
@Column(allowsNull="false") public String getReferenceWithAllowsNullFalse() { return referenceWithAllowsNullFalse; } public void setReferenceWithAllowsNullFalse(String referenceWithAllowsNullFalse) {
@Column public int getPrimitiveWithNoAllowsNull() { return primitiveWithNoAllowsNull; } public void setPrimitiveWithNoAllowsNull(int primitive) {
@Column public String getReferenceWithNoAllowsNull() { return referenceWithNoAllowsNull; } public void setReferenceWithNoAllowsNull(String reference) {
@Column public String getReferenceWithNoAllowsNull() { return referenceWithNoAllowsNull; } public void setReferenceWithNoAllowsNull(String reference) {
@Column(allowsNull="true") public String getReferenceWithAllowsNullTrue() { return referenceWithAllowsNullTrue; } public void setReferenceWithAllowsNullTrue(String referenceWithAllowsNullTrue) {
@Column(allowsNull="true") public int getPrimitiveWithAllowsNullTrue() { return primitiveWithAllowsNullTrue; } public void setPrimitiveWithAllowsNullTrue(int primitive) {
@Column(allowsNull="false") public String getReferenceWithAllowsNullFalse() { return referenceWithAllowsNullFalse; } public void setReferenceWithAllowsNullFalse(String referenceWithAllowsNullFalse) {
@Column(allowsNull="true") public String getReferenceWithAllowsNullTrue() { return referenceWithAllowsNullTrue; } public void setReferenceWithAllowsNullTrue(String referenceWithAllowsNullTrue) {
@Column(allowsNull="false") public int getPrimitiveWithAllowsNullFalse() { return primitiveWithAllowsNullFalse; } public void setPrimitiveWithAllowsNullFalse(int primitive) {
@Column(allowsNull="true") public int getPrimitiveWithAllowsNullTrue() { return primitiveWithAllowsNullTrue; } public void setPrimitiveWithAllowsNullTrue(int primitive) {
@Column(allowsNull="false") public String getReferenceWithAllowsNullFalse() { return referenceWithAllowsNullFalse; } public void setReferenceWithAllowsNullFalse(String referenceWithAllowsNullFalse) {