public boolean contains(String propertyName) { boolean contains = false; if (type != null && type.getDescriptor() != null) { for (DatabaseMapping dm : type.getDescriptor().getMappings()) { if (dm.getAttributeName().equals(propertyName)) { contains = true; break; } } } return contains; }
public List<String> getPropertyNames() { List<String> propertyNames = new ArrayList<String>(); if (type != null && type.getDescriptor() != null) { for (DatabaseMapping dm : type.getDescriptor().getMappings()) { propertyNames.add(dm.getAttributeName()); } } return propertyNames; }
@Override public String toString() { return "DynamicEntityType(" + getName() + ") - " + getDescriptor(); } }
/** * @see DynamicType#getName() */ @Override public String getName() { return getDescriptor().getAlias(); }
public List<String> getPropertyNames() { List<String> propertyNames = new ArrayList<String>(); if (type != null && type.getDescriptor() != null) { for (DatabaseMapping dm : type.getDescriptor().getMappings()) { propertyNames.add(dm.getAttributeName()); } } return propertyNames; }
/** * @see DynamicType#getName() */ public String getName() { return getDescriptor().getAlias(); }
@Override public String toString() { return "DynamicEntityType(" + getName() + ") - " + getDescriptor(); } }
public boolean contains(String propertyName) { boolean contains = false; if (type != null && type.getDescriptor() != null) { for (DatabaseMapping dm : type.getDescriptor().getMappings()) { if (dm.getAttributeName().equals(propertyName)) { contains = true; break; } } } return contains; }
/** * @see DynamicType#getName() */ public String getName() { return getDescriptor().getAlias(); }
@Override public String getClassName() { return getDescriptor().getJavaClassName(); }
@Override public Class<? extends DynamicEntity> getJavaClass() { return getDescriptor().getJavaClass(); }
public boolean isInitialized() { return getDescriptor().isFullyInitialized(); }
public List<DatabaseMapping> getMappings() { return getDescriptor().getMappings(); }
public boolean isInitialized() { return getDescriptor().isFullyInitialized(); }
@Override public Class<?> getPropertyType(int propertyIndex) { return getDescriptor().getMappings().get(propertyIndex).getAttributeClassification(); }
public DatabaseMapping getMapping(String propertyName) { DatabaseMapping mapping = getDescriptor().getMappingForAttributeName(propertyName); if (mapping == null) { throw DynamicException.invalidPropertyName(this, propertyName); } return mapping; }
@Override public DynamicEntity newDynamicEntity() { DynamicEntity newDynamicEntity = (DynamicEntity)getDescriptor().getInstantiationPolicy(). buildNewInstance(); return newDynamicEntity; }
public DatabaseMapping getMapping(String propertyName) { DatabaseMapping mapping = getDescriptor().getMappingForAttributeName(propertyName); if (mapping == null) { throw DynamicException.invalidPropertyName(this, propertyName); } return mapping; }
public DynamicEntity newDynamicEntity() { DynamicEntity newDynamicEntity = (DynamicEntity)getDescriptor().getInstantiationPolicy(). buildNewInstance(); return newDynamicEntity; }
public DatabaseMapping getMapping(String propertyName) { DatabaseMapping mapping = getDescriptor().getMappingForAttributeName(propertyName); if (mapping == null) { throw DynamicException.invalidPropertyName(this, propertyName); } return mapping; }