public ColumnMetadata setName(String name) { getInternal().setName(name); 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; }
public ColumnMetadata[] getColumns() { String[] internalColumnNames = getInternal().getColumnNames(); if (internalColumnNames == null) { return null; } ColumnMetadataImpl[] colmds = new ColumnMetadataImpl[internalColumnNames.length]; for (int i=0;i<colmds.length;i++) { ColumnMetaData internalColmd = new ColumnMetaData(); internalColmd.setName(internalColumnNames[i]); colmds[i] = new ColumnMetadataImpl(internalColmd); colmds[i].parent = this; } return colmds; }
public ColumnMetadata[] getColumns() { String[] internalColumnNames = getInternal().getColumnNames(); if (internalColumnNames == null) { return null; } ColumnMetadataImpl[] colmds = new ColumnMetadataImpl[internalColumnNames.length]; for (int i=0;i<colmds.length;i++) { ColumnMetaData internalColmd = new ColumnMetaData(); internalColmd.setName(internalColumnNames[i]); colmds[i] = new ColumnMetadataImpl(internalColmd); colmds[i].parent = this; } return colmds; }
colmd.setName(pkJoinCols[k].name()); colmd.setTarget(pkJoinCols[k].referencedColumnName()); joinmd.addColumn(colmd); colmd.setName(constrs[k].columnNames()[l]); unimd.addColumn(colmd); colmd.setName(joinCols[j].name()); colmd.setTarget(joinCols[j].referencedColumnName()); joinmd.addColumn(colmd); colmd.setName(constrs[j].columnNames()[k]); unimd.addColumn(colmd);
colmd.setName(columnName); colmd.setTarget(target); colmd.setTargetMember(targetField);
colmd.setName(col.name()); colmd.setTarget(col.target()); colmd.setTargetMember(col.targetMember());
storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(fmd.getType()), FieldRole.ROLE_OWNER); colmd.setName(identifier.getIdentifierName()); } else {
colmd.setName(storeMgr.getIdentifierFactory() .newDatastoreFieldIdentifier(refTable.getIdentifier().getIdentifierName(), this.storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(OID.class), FieldRole.ROLE_OWNER).getIdentifierName()); } else { colmd.setName( storeMgr.getIdentifierFactory().newDatastoreFieldIdentifier(identifier.getIdentifierName(), this.storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(OID.class),
if (cmd.hasExtension(MetaData.EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME)) colmd.setName(cmd.getValueForExtension(MetaData.EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME)); if (cmd.hasExtension(MetaData.EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME)) colmd.setName(cmd.getValueForExtension(MetaData.EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME));
columnMetaData.setName(colmd.getName());
colmd.setName(storeMgr.getIdentifierFactory().newColumnIdentifier(refTable.getIdentifier().getName(), this.storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(DatastoreId.class), FieldRole.ROLE_OWNER, false).getName()); colmd.setName(storeMgr.getIdentifierFactory().newColumnIdentifier(identifier.getName(), this.storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(DatastoreId.class), FieldRole.ROLE_NONE, false).getName());
colmd.setName(colName);
identifier = idFactory.newForeignKeyFieldIdentifier(relatedMmds != null ? relatedMmds[0] : null, mmd, reference.getIdentifier(), storeMgr.getNucleusContext().getTypeManager().isDefaultEmbeddedType(mmd.getType()), FieldRole.ROLE_OWNER); colmd.setName(identifier.getName());
colmd.setName(id.getName());