|
||||||||||
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,String> |
PLUCK_NAME
Return the name of the field |
Method Summary | |
---|---|
Method |
getAccessor()
|
Class<? extends ValueGenerator<? extends T>> |
getGeneratorType()
|
Class<T> |
getJavaType()
|
Method |
getMutator()
|
String |
getName()
|
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,String> PLUCK_NAME
Method Detail |
---|
String getName()
String getPolymorphicName()
Polymorphic
boolean isPrimary()
true
if the field is the primary key, false
otherwisePrimaryKey
boolean isNullable()
true
if the field is nullable, false
otherwiseNotNull
boolean 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
otherwiseTransient
boolean hasAutoIncrement()
true
if the field an auto increment field, false
otherwiseAutoIncrement
,
PrimaryKey
boolean hasDefaultValue()
true
if the field has a default value, false
otherwiseTypeInfo<T> getTypeInfo()
Class<T> getJavaType()
boolean hasAccessor()
true
if the field has an accessor, false
otherwiseMethod getAccessor()
hasAccessor()
boolean hasMutator()
true
if the field has an mutator, false
otherwiseMethod getMutator()
hasMutator()
Class<? extends ValueGenerator<? extends T>> getGeneratorType()
Generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |