@Override public SingularAttribute<X, ?> getDeclaredSingularAttribute(String paramString) { SingularAttribute<X, ?> attribute = getDeclaredSingularAttribute(paramString, true); return attribute; }
@Override public Attribute<X, ?> getDeclaredAttribute(String paramName) { Attribute<X, ?> attribute = getDeclaredAttribute(paramName, true); return attribute; }
@Override public IdentifiableType<? super X> getSupertype() { return (AbstractIdentifiableType<? super X>) super.getSuperClazzType(); }
/** * Gets the inheritence type. * * @return the inheritence type */ public InheritanceType getInheritenceType() { return isInherited() ? this.model.inheritenceType : null; }
@Override public <Y> SingularAttribute<? super X, Y> getSingularAttribute(String paramString, Class<Y> paramClass) { SingularAttribute<? super X, Y> attribute = getDeclaredSingularAttribute(paramString, paramClass, false); if (superClazzType != null && attribute == null) { return superClazzType.getSingularAttribute(paramString, paramClass); } checkForValid(paramString, attribute); return attribute; }
@Override public SingularAttribute<? super X, ?> getSingularAttribute(String paramString) { SingularAttribute<? super X, ?> attribute = getSingularAttribute(paramString, true); return attribute; }
public SingularAttribute<? super X, ?> getIdAttribute() { idAttribute = idAttribute == null ? getSuperClazzType() != null /* * && getSuperClazzType().getJavaType().isAssignableFrom( * AbstractIdentifiableType.class) */? ((AbstractIdentifiableType) getSuperClazzType()).getIdAttribute() : null : idAttribute; return idAttribute; }
/** * Checks for embeddable attribute. * * @return the hasEmbeddableAttribute */ public boolean hasEmbeddableAttribute() { if (this.hasEmbeddableAttribute) { return this.hasEmbeddableAttribute; } if (this.superClazzType != null) { return ((AbstractManagedType) superClazzType).hasEmbeddableAttribute(); } return false; }
@Override public <E> ListAttribute<X, E> getDeclaredList(String paramName, Class<E> paramClass) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckListAttribute(declaredAttrib, paramClass)) { return (ListAttribute<X, E>) declaredAttrib; } throw new IllegalArgumentException( "attribute of the given name and type is not present in the managed type, for name:" + paramName + " , type:" + paramClass); }
@Override public ListAttribute<X, ?> getDeclaredList(String paramName) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (isListAttribute(declaredAttrib)) { return (ListAttribute<X, ?>) declaredAttrib; } throw new IllegalArgumentException( "attribute of the given name and type is not present in the managed type, for name:" + paramName); }
@Override public Class<X> getBindableJavaType() { return super.getJavaType(); }
@Override public boolean hasSingleIdAttribute() { return !isIdClass && getIdAttribute() != null; }
/** * Gets the plural attriute. * * @param paramName * the param name * @return the plural attriute */ private PluralAttribute<? super X, ?, ?> getPluralAttriute(String paramName) { if (superClazzType != null) { return ((AbstractManagedType<? super X>) superClazzType).getDeclaredPluralAttribute(paramName); } return null; }
/** * Checks for validation constraints. * * @return the hasValidationConstraints */ public boolean hasValidationConstraints() { if (this.hasValidationConstraints) { return this.hasValidationConstraints; } if (this.superClazzType != null) { return ((AbstractManagedType) superClazzType).hasValidationConstraints(); } return false; }
/** * On validity check. * * @param paramString * the param string * @param checkValidity * the check validity * @param attribute * the attribute */ private void onValidity(String paramString, boolean checkValidity, SingularAttribute<? super X, ?> attribute) { if (checkValidity) { checkForValid(paramString, attribute); } }
/** * Gets the schema name. * * @return the schema name */ public String getSchemaName() { return isInherited() ? this.model.schemaName : null; }
@Override public <Y> SingularAttribute<X, Y> getDeclaredSingularAttribute(String paramString, Class<Y> paramClass) { return getDeclaredSingularAttribute(paramString, paramClass, true); }
/** * Gets the discriminator column. * * @return the discriminator column */ public String getDiscriminatorColumn() { return isInherited() ? this.model.discriminatorColumn : null; }
/** * Gets the discriminator value. * * @return the discriminator value */ public String getDiscriminatorValue() { return isInherited() ? this.model.discriminatorValue : null; }
/** * Gets the table name. * * @return the table name */ public String getTableName() { return isInherited() ? this.model.tableName : null; }