if (summaryProperties != null) { PropertyMap.Property title = summaryProperties.get(TITLE_PROP_KEY); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); PropertyMap.Property author = summaryProperties.get(AUTHOR_PROP_KEY); if (author != null && author.getValue() != null) { String authorString = toString(author.getValue(), author.getType()); found.add(author.getName()); PropertyMap.Property company = summaryProperties.get(COMPANY_PROP_KEY); if (company != null) { parentMetadata.set(OfficeOpenXMLExtended.COMPANY, toString(company.getValue(), company.getType()));
private DataType getReturnType(Column cl) throws IOException { if (cl.getProperties().get(PropertyMap.EXPRESSION_PROP) == null || cl.getProperties().get(PropertyMap.RESULT_TYPE_PROP) == null) { return null; } byte pos = (Byte) cl.getProperties().get(PropertyMap.RESULT_TYPE_PROP).getValue(); return DataType.fromByte(pos); }
private String getUpdateConditions(Column cl) throws IOException, SQLException { PropertyMap map = cl.getProperties(); Property exprp = map.get(PropertyMap.EXPRESSION_PROP); if (exprp != null) { Set<String> setu = SQLConverter.getFormulaDependencies(exprp.getValue().toString()); if (setu.size() > 0) { String or = ""; StringBuffer cw = new StringBuffer(); for (String dep : setu) { dep = escapeIdentifier(dep); cw.append(or).append("oldrow.").append(dep).append("<>").append("newrow.").append(dep); or = " OR "; } return cw.toString(); } } return " FALSE "; }
private Object readColumnProperty(com.healthmarketscience.jackcess.Column column, String propertyName, Object defaultValue) throws IOException { PropertyMap.Property property = column.getProperties().get(propertyName); if (property != null) return property.getValue(); return defaultValue; }
private String getExpression(Column cl) throws IOException { PropertyMap map = cl.getProperties(); Property exprp = map.get(PropertyMap.EXPRESSION_PROP); if (exprp != null) { Table tl = cl.getTable(); String expr = SQLConverter.convertPowOperator((String) exprp.getValue()); for (Column cl1 : tl.getColumns()) { expr = expr.replaceAll("\\[(?i)(" + Pattern.quote(cl1.getName()) + ")\\]", "newrow.$0"); } return expr; } return null; }
if (summaryProperties != null) { PropertyMap.Property title = summaryProperties.get(TITLE_PROP_KEY); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); PropertyMap.Property author = summaryProperties.get(AUTHOR_PROP_KEY); if (author != null && author.getValue() != null) { String authorString = toString(author.getValue(), author.getType()); found.add(author.getName()); PropertyMap.Property company = summaryProperties.get(COMPANY_PROP_KEY); if (company != null) { parentMetadata.set(OfficeOpenXMLExtended.COMPANY, toString(company.getValue(), company.getType()));
if (summaryProperties != null) { PropertyMap.Property title = summaryProperties.get(TITLE_PROP_KEY); if (title != null) { parentMetadata.set(TikaCoreProperties.TITLE, toString(title.getValue(), title.getType())); found.add(title.getName()); PropertyMap.Property author = summaryProperties.get(AUTHOR_PROP_KEY); if (author != null && author.getValue() != null) { String authorString = toString(author.getValue(), author.getType()); found.add(author.getName()); PropertyMap.Property company = summaryProperties.get(COMPANY_PROP_KEY); if (company != null) { parentMetadata.set(OfficeOpenXMLExtended.COMPANY, toString(company.getValue(), company.getType()));