X - the generic mananged entitytypeT - the generic attribute typepublic abstract class AbstractAttribute<X,T> extends Object
Type hierarchy.| Modifier and Type | Field and Description |
|---|---|
private String |
attribName
The attrib name.
|
protected javax.persistence.metamodel.Type<T> |
attribType
The attrib type.
|
private String |
columnName
Column name
|
private FieldAnnotationProcessor |
fieldAnnotationProcessor |
private static org.slf4j.Logger |
log
The Constant log.
|
private javax.persistence.metamodel.ManagedType<X> |
managedType
The managed type.
|
protected Field |
member
The member.
|
private javax.persistence.metamodel.Attribute.PersistentAttributeType |
persistenceAttribType
The persistence attrib type.
|
private String |
tableName
Name of Table, to which this attribute belongs to
|
| Constructor and Description |
|---|
AbstractAttribute(javax.persistence.metamodel.Type<T> attribType,
String attribName,
javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType,
javax.persistence.metamodel.ManagedType<X> managedType,
Field member)
Instantiates a new abstract attribute.
|
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getBindableJavaType() |
abstract javax.persistence.metamodel.Bindable.BindableType |
getBindableType() |
javax.persistence.metamodel.ManagedType<X> |
getDeclaringType() |
FieldAnnotationProcessor |
getFieldAnnotation() |
Member |
getJavaMember() |
String |
getJPAColumnName()
Returns assigned jpa column name.
|
String |
getName() |
javax.persistence.metamodel.Attribute.PersistentAttributeType |
getPersistentAttributeType() |
String |
getTableName()
Returns assigned table name.
|
private String |
getValidJPAColumnName()
Gets the valid jpa column name.
|
boolean |
isAssociation() |
abstract boolean |
isCollection() |
void |
setColumnName(String columnName) |
private static final org.slf4j.Logger log
protected javax.persistence.metamodel.Type<T> attribType
private String attribName
private javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType
private javax.persistence.metamodel.ManagedType<X> managedType
protected Field member
private String columnName
private String tableName
private FieldAnnotationProcessor fieldAnnotationProcessor
AbstractAttribute(javax.persistence.metamodel.Type<T> attribType, String attribName, javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType, javax.persistence.metamodel.ManagedType<X> managedType, Field member)
attribType - the attrib typeattribName - the attrib namepersistenceAttribType - the persistence attrib typemanagedType - the managed typemember - the memberpublic abstract javax.persistence.metamodel.Bindable.BindableType getBindableType()
public abstract boolean isCollection()
public String getName()
public javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
public javax.persistence.metamodel.ManagedType<X> getDeclaringType()
public Member getJavaMember()
public boolean isAssociation()
public String getJPAColumnName()
public String getTableName()
private final String getValidJPAColumnName()
entity - the entityf - the fpublic FieldAnnotationProcessor getFieldAnnotation()
public void setColumnName(String columnName)
Copyright © 2015. All Rights Reserved.