|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - public interface FieldInfo<T>
A description of the field generated by the RawEntity
FieldInfo| Field Summary | |
|---|---|
static com.google.common.base.Predicate<FieldInfo> |
HAS_GENERATOR
A predicate for filtering fields with value generators |
static com.google.common.base.Predicate<FieldInfo> |
IS_REQUIRED
A predicate for filtering required fields |
static com.google.common.base.Function<FieldInfo,java.lang.String> |
PLUCK_NAME
Return the name of the field |
| Method Summary | |
|---|---|
java.lang.reflect.Method |
getAccessor()
|
java.lang.Class<? extends ValueGenerator<? extends T>> |
getGeneratorType()
|
java.lang.Class<T> |
getJavaType()
|
java.lang.reflect.Method |
getMutator()
|
java.lang.String |
getName()
|
java.lang.String |
getPolymorphicName()
|
TypeInfo<T> |
getTypeInfo()
|
boolean |
hasAccessor()
|
boolean |
hasAutoIncrement()
|
boolean |
hasDefaultValue()
|
boolean |
hasMutator()
|
boolean |
isCacheable()
Deprecated. since 0.25. Entities and values now no longer cached. |
boolean |
isNullable()
|
boolean |
isPrimary()
|
boolean |
isStorable()
|
boolean |
isTransient()
|
| Field Detail |
|---|
static final com.google.common.base.Predicate<FieldInfo> IS_REQUIRED
isNullable(),
hasDefaultValue(),
hasAutoIncrement()static final com.google.common.base.Predicate<FieldInfo> HAS_GENERATOR
getGeneratorType()static final com.google.common.base.Function<FieldInfo,java.lang.String> PLUCK_NAME
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getPolymorphicName()
Polymorphicboolean isPrimary()
true if the field is the primary key, false otherwisePrimaryKeyboolean isNullable()
true if the field is nullable, false otherwiseNotNullboolean isStorable()
true if a value corresponding to this field may be stored by the entity, false otherwiseboolean isCacheable()
boolean isTransient()
true if the field is transient, false otherwiseTransientboolean hasAutoIncrement()
true if the field an auto increment field, false otherwiseAutoIncrement,
PrimaryKeyboolean hasDefaultValue()
true if the field has a default value, false otherwiseTypeInfo<T> getTypeInfo()
java.lang.Class<T> getJavaType()
boolean hasAccessor()
true if the field has an accessor, false otherwisejava.lang.reflect.Method getAccessor()
hasAccessor()boolean hasMutator()
true if the field has an mutator, false otherwisejava.lang.reflect.Method getMutator()
hasMutator()java.lang.Class<? extends ValueGenerator<? extends T>> getGeneratorType()
Generator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||