public List<String> getPropertiesNamesWithKeyAndHidden() throws XavaException { if (propertiesNamesWithKeyAndHidden == null) { propertiesNamesWithKeyAndHidden = new ArrayList<String>(); propertiesNamesWithKeyAndHidden.addAll(getMetaModel().getAllKeyPropertiesNames()); propertiesNamesWithKeyAndHidden.addAll(getPropertiesNames()); propertiesNamesWithKeyAndHidden.addAll(getHiddenPropertiesNames()); } return propertiesNamesWithKeyAndHidden; }
private List createAllPropertiesNames() throws XavaException { List result = new ArrayList(); // First the properties from a possible @EmbeddedId for (Iterator itRef = getMetaModel().getMetaReferencesKey().iterator(); itRef.hasNext(); ) { MetaReference ref = (MetaReference) itRef.next(); if (ref.isAggregate()) { for (Iterator itKey = ref.getMetaModelReferenced() .getPropertiesNamesWithoutHiddenNorTransient() .iterator(); itKey.hasNext(); ) { result.add(ref.getName() + "." + itKey.next()); } } } // Now the plain properties result.addAll(getMetaModel().getPropertiesNamesWithoutHiddenNorTransient()); return result; }