/** * Clones this GenericEntity, this is a shallow clone & uses the default shallow HashMap clone * * @return Object that is a clone of this GenericEntity */ public Object clone() { GenericEntity newEntity = new GenericEntity(this); newEntity.setDelegator(internalDelegator); return newEntity; }
/** Clones this GenericEntity, this is a shallow clone & uses the default shallow HashMap clone *@return Object that is a clone of this GenericEntity */ public Object clone() { GenericEntity newEntity = new GenericEntity(this); newEntity.setDelegator(internalDelegator); return newEntity; }
/** Clones this GenericEntity, this is a shallow clone & uses the default shallow HashMap clone *@return Object that is a clone of this GenericEntity */ public Object clone() { GenericEntity newEntity = new GenericEntity(this); newEntity.setDelegator(internalDelegator); return newEntity; }
private void writeXmlText(final String entityName, final Map<String, String> attributes, final ModelEntity modelEntity) throws ParseException { if (!entityName.equals(currentEntity)) { endDocument(); } if (printWriter == null) { try { currentEntity = entityName; printWriter = projectImportTemporaryFiles.getWriter(entityName); } catch (IOException e) { throw new ParseException(e.getMessage()); } } // Create a GenericEntity final GenericEntity genericEntity = new GenericEntity(delegator, modelEntity, attributes); genericEntity.writeXmlText(printWriter, null); }
private void writeXmlText(final String entityName, final Map<String, String> attributes, final ModelEntity modelEntity) throws ParseException { if (!entityName.equals(currentEntity)) { endDocument(); } if (printWriter == null) { try { currentEntity = entityName; printWriter = projectImportTemporaryFiles.getWriter(entityName); } catch (IOException e) { throw new ParseException(e.getMessage()); } } // Create a GenericEntity final GenericEntity genericEntity = new GenericEntity(delegator, modelEntity, attributes); genericEntity.writeXmlText(printWriter, null); }
public void handleEntity(final String entityName, final Map<String, String> attributes) throws ParseException { if (IssueParser.ISSUE_ENTITY_NAME.equals(entityName)) { if (printWriter == null) { try { printWriter = projectImportTemporaryFiles.getWriter(IssueParser.ISSUE_ENTITY_NAME); } catch (IOException e) { throw new ParseException(e.getMessage()); } } // check if it is in our project if (backupProject.containsIssue(getId(attributes))) { // Create a GenericEntity final GenericEntity genericEntity = new GenericEntity(delegator, modelEntity, attributes); genericEntity.writeXmlText(printWriter, null); entityCount++; } } else { endDocument(); } }
GenericEntity entityCopy = new GenericEntity(entity);
final GenericEntity entityCopy = new GenericEntity(entity); select(entityCopy, connection); final Object stampField = entity.get(ModelEntity.STAMP_FIELD);
GenericEntity entityCopy = new GenericEntity(entity);