parentMetadata.add(JackcessParser.MDB_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType())); parentMetadata.add(JackcessParser.USER_DEFINED_PROPERTY_PREFIX+ p.getName(), toString(p.getValue(), p.getType())); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); String authorString = toString(author.getValue(), author.getType()); SummaryExtractor.addMulti(parentMetadata, TikaCoreProperties.CREATOR, authorString); found.add(author.getName()); found.add(company.getName()); if (! found.contains(p.getName())) { parentMetadata.add(JackcessParser.SUMMARY_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType()));
for(PropertyMapImpl propMap : maps) { for(PropertyMap.Property prop : propMap) { propNames.add(prop.getName());
parentMetadata.add(JackcessParser.MDB_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType())); parentMetadata.add(JackcessParser.USER_DEFINED_PROPERTY_PREFIX+ p.getName(), toString(p.getValue(), p.getType())); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); String authorString = toString(author.getValue(), author.getType()); SummaryExtractor.addMulti(parentMetadata, TikaCoreProperties.CREATOR, authorString); found.add(author.getName()); found.add(company.getName()); if (! found.contains(p.getName())) { parentMetadata.add(JackcessParser.SUMMARY_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType()));
parentMetadata.add(JackcessParser.MDB_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType())); parentMetadata.add(JackcessParser.USER_DEFINED_PROPERTY_PREFIX+ p.getName(), toString(p.getValue(), p.getType())); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); String authorString = toString(author.getValue(), author.getType()); SummaryExtractor.addMulti(parentMetadata, TikaCoreProperties.CREATOR, authorString); found.add(author.getName()); found.add(company.getName()); if (! found.contains(p.getName())) { parentMetadata.add(JackcessParser.SUMMARY_PROPERTY_PREFIX + p.getName(), toString(p.getValue(), p.getType()));
/** * Sets all attributes except name from the given Column template (including * all column properties except GUID). */ public ColumnBuilder setFromColumn(Column template) throws IOException { DataType type = template.getType(); setType(type); setLength(template.getLength()); setAutoNumber(template.isAutoNumber()); if(type.getHasScalePrecision()) { setScale(template.getScale()); setPrecision(template.getPrecision()); } setCalculated(template.isCalculated()); setCompressedUnicode(template.isCompressedUnicode()); setHyperlink(template.isHyperlink()); if(template instanceof ColumnImpl) { setTextSortOrder(((ColumnImpl)template).getTextSortOrder()); } PropertyMap colProps = template.getProperties(); for(PropertyMap.Property colProp : colProps) { // copy everything but guid if(!PropertyMap.GUID_PROP.equalsIgnoreCase(colProp.getName())) { setProperty(colProp.getName(), colProp); } } return this; }
public PropertyImpl put(Property prop) { return put(prop.getName(), prop.getType(), prop.getValue(), prop.isDdl()); }
@Override public void putAll(Iterable<? extends Property> props) { if(props == null) { return; } for(Property prop : props) { if(isPrimaryKey(prop.getName())) { ((PropertyMapImpl)_primary).put(prop); } else { ((PropertyMapImpl)_complex).put(prop); } } }