Package org.cyclos.impl
Class TablePropertyLogDescriptor<R extends EntityDTO,B extends Bean>
- java.lang.Object
-
- org.cyclos.impl.PropertyLogDescriptor<B>
-
- org.cyclos.impl.TablePropertyLogDescriptor<R,B>
-
- Type Parameters:
R- the row type, i.e the bean contained on each rowB- The container DTO type
public class TablePropertyLogDescriptor<R extends EntityDTO,B extends Bean> extends PropertyLogDescriptor<B>
Describes how a boolean table property is logged as anEntityPropertyLog
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.PropertyLogDescriptor
access, label, logDescriptor
-
-
Constructor Summary
Constructors Constructor Description TablePropertyLogDescriptor(EntityLogDescriptor<B> logDescriptor, PropertyAccess tableAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityLogDescriptor<B>add()Add this property to the entity log and returns it descriptor to allow add a new property.TablePropertyLogDescriptor<R,B>col(Property<Boolean,? super R> colProperty, Object label)TablePropertyLogDescriptor<R,B>col(Property<Boolean,? super R> colProperty, Object label, boolean nested)Adds a map from col to label.Iterable<Pair<PropertyAccess,Object>>columns()Returns an iterable over the columnsTablePropertyLogDescriptor<?,R>getNestedTableDescriptor()Comparator<?>getRowComparator()PropertyAccessgetRowIdAccess()TablePropertyLogDescriptor<R,B>ignore(Property<?,? super R> colProperty)booleanisTable()TablePropertyLogDescriptor<R,B>label(Object label)TablePropertyLogDescriptor<R,B>nestedRow(com.querydsl.core.types.dsl.CollectionPathBase<?,?,?> nestedCollectionPath, com.querydsl.core.types.Path<?> nestedRowIdPath)TablePropertyLogDescriptor<R,B>row(Class<R> rowBeanClass, Property<?,? super R> rowProperty)TablePropertyLogDescriptor<R,B>row(Class<R> rowBeanClass, Property<?,? super R> rowProperty, Comparator<?> rowComparator)Adds a map from a table property indicating the row bean, the property to get the row's name and a comparator to sort the rows.-
Methods inherited from class org.cyclos.impl.PropertyLogDescriptor
getAccess, getLabel, toString
-
-
-
-
Constructor Detail
-
TablePropertyLogDescriptor
public TablePropertyLogDescriptor(EntityLogDescriptor<B> logDescriptor, PropertyAccess tableAccess)
-
-
Method Detail
-
add
public EntityLogDescriptor<B> add()
Description copied from class:PropertyLogDescriptorAdd this property to the entity log and returns it descriptor to allow add a new property.- Overrides:
addin classPropertyLogDescriptor<B extends Bean>
-
col
public TablePropertyLogDescriptor<R,B> col(Property<Boolean,? super R> colProperty, Object label)
-
col
public TablePropertyLogDescriptor<R,B> col(Property<Boolean,? super R> colProperty, Object label, boolean nested)
Adds a map from col to label. The nested flag is used only if the table has a nested table: true means the column is present in the nested table.
-
columns
public Iterable<Pair<PropertyAccess,Object>> columns()
Returns an iterable over the columns
-
getNestedTableDescriptor
public TablePropertyLogDescriptor<?,R> getNestedTableDescriptor()
-
getRowComparator
public Comparator<?> getRowComparator()
-
getRowIdAccess
public PropertyAccess getRowIdAccess()
-
ignore
public TablePropertyLogDescriptor<R,B> ignore(Property<?,? super R> colProperty)
-
isTable
public boolean isTable()
- Overrides:
isTablein classPropertyLogDescriptor<B extends Bean>
-
label
public TablePropertyLogDescriptor<R,B> label(Object label)
- Overrides:
labelin classPropertyLogDescriptor<B extends Bean>
-
nestedRow
public TablePropertyLogDescriptor<R,B> nestedRow(com.querydsl.core.types.dsl.CollectionPathBase<?,?,?> nestedCollectionPath, com.querydsl.core.types.Path<?> nestedRowIdPath)
-
row
public TablePropertyLogDescriptor<R,B> row(Class<R> rowBeanClass, Property<?,? super R> rowProperty)
-
row
public TablePropertyLogDescriptor<R,B> row(Class<R> rowBeanClass, Property<?,? super R> rowProperty, Comparator<?> rowComparator)
Adds a map from a table property indicating the row bean, the property to get the row's name and a comparator to sort the rows.
-
-