|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.stitch.crud.CrudEntityProperty
public class CrudEntityProperty
Represents an Entity Property. We track the Field and the Getter and Setter Methods because annotations may be made at either the field or the getter method, and the presence of a setter tells us the field is not read-only.
Constructor Summary | |
---|---|
CrudEntityProperty(java.lang.reflect.Field field)
|
Method Summary | |
---|---|
java.lang.String |
getConverter()
Gets the appropriate converter for the property. |
javax.persistence.EnumType |
getEnumType()
Gets the Enumeration Type. |
java.lang.reflect.Field |
getField()
|
java.lang.String |
getFieldName()
Convenience method to get the name of the field. |
java.lang.reflect.Method |
getGetter()
|
java.lang.Integer |
getMaxLength()
|
java.lang.String |
getMessageKey()
Gets the resource bundle key for translating the field into a localized message. |
java.lang.reflect.Method |
getSetter()
|
int |
getSize()
|
javax.persistence.TemporalType |
getTemporalType()
Gets the Temporal Type. |
boolean |
isBoolean()
Is the field a boolean (true/false, yes/no). |
boolean |
isEnum()
Is the field an enum. |
boolean |
isFetchLazy()
|
boolean |
isId()
Is the property annotated with @Id |
boolean |
isListable()
Is the property listable from the EntityQuery. |
boolean |
isLob()
Is the property annotated with @Lob |
boolean |
isReadOnly()
If the property has no setter, the field is read-only. |
boolean |
isRequired()
Whether the field is required is determined from the type and its annotations. |
boolean |
isSearchable()
Is the property searchable from the EntityQuery. |
boolean |
isVersion()
Is the property annotated with @Version |
void |
setGetter(java.lang.reflect.Method getter)
|
void |
setSetter(java.lang.reflect.Method setter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrudEntityProperty(java.lang.reflect.Field field)
Method Detail |
---|
public java.lang.reflect.Method getGetter()
public void setGetter(java.lang.reflect.Method getter)
public java.lang.reflect.Method getSetter()
public void setSetter(java.lang.reflect.Method setter)
public java.lang.reflect.Field getField()
public java.lang.String getFieldName()
public boolean isReadOnly()
public boolean isRequired()
public boolean isId()
public boolean isVersion()
public boolean isLob()
public boolean isFetchLazy()
public boolean isBoolean()
public boolean isEnum()
public boolean isSearchable()
public boolean isListable()
public java.lang.Integer getMaxLength()
public int getSize()
public java.lang.String getMessageKey()
public javax.persistence.EnumType getEnumType()
public javax.persistence.TemporalType getTemporalType()
public java.lang.String getConverter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |