public class SignupDateComposite<BDO extends DataObject> extends CreateComposite<BDO,SignupDateComposite<BDO>> implements IndexTableContributor<BDO>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SIGNUP_DATE |
Constructor and Description |
---|
SignupDateComposite(DataObjectFactory<BDO> fac) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes,
BDO target)
Add to the set of attributes.
|
java.util.Set<java.lang.String> |
addSuppress(java.util.Set<java.lang.String> supress)
generate the class specific set of suppressed fields to be used in form creation/update
The individual forms can override these so you usually use this method to define fields that should
be suppressed in all forms.
|
protected void |
clearSignup(BDO dat)
clear the signup record.
|
SQLFilter<BDO> |
getFilter(MatchCondition m,
java.util.Date point) |
java.util.Date |
getSignupDate(BDO dat) |
protected java.lang.Class<? super SignupDateComposite<BDO>> |
getType()
Returns the type the composite should be registered under.
|
void |
markSignup(BDO dat)
mark the record as signed up at the current time
|
TableSpecification |
modifyDefaultTableSpecification(TableSpecification spec,
java.lang.String table)
Modify the
TableSpecification of the target factory. |
void |
preCommit(BDO dat,
Form f)
Populate target from creation form.
|
SQLFilter<BDO> |
signupBeforeFilter(java.util.Date d) |
customiseCreationForm, postCreate
addDefaults, addFieldHelp, addOptional, addSelectors, addTranslations, customiseForm, customiseUpdateForm, getContext, getFactory, getLogger, getRecord, getRepository, postUpdate, preRegister, release, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFieldConstraints, addFormFields
public static final java.lang.String SIGNUP_DATE
public SignupDateComposite(DataObjectFactory<BDO> fac)
fac
- protected java.lang.Class<? super SignupDateComposite<BDO>> getType()
Composite
getType
in class Composite<BDO extends DataObject,SignupDateComposite<BDO extends DataObject>>
public java.util.Set<java.lang.String> addSuppress(java.util.Set<java.lang.String> supress)
TableStructureContributer
addSuppress
in interface TableStructureContributer<BDO extends DataObject>
addSuppress
in class Composite<BDO extends DataObject,SignupDateComposite<BDO extends DataObject>>
Set
of fields to suppress in forms.public SQLFilter<BDO> getFilter(MatchCondition m, java.util.Date point)
public TableSpecification modifyDefaultTableSpecification(TableSpecification spec, java.lang.String table)
TableStructureContributer
TableSpecification
of the target factory.modifyDefaultTableSpecification
in interface TableStructureContributer<BDO extends DataObject>
modifyDefaultTableSpecification
in class Composite<BDO extends DataObject,SignupDateComposite<BDO extends DataObject>>
public void preCommit(BDO dat, Form f) throws DataException
CreateCustomizer
preCommit
in interface CreateCustomizer<BDO extends DataObject>
preCommit
in class CreateComposite<BDO extends DataObject,SignupDateComposite<BDO extends DataObject>>
dat
- Object being createdf
- Form
providing parametersDataException
public void markSignup(BDO dat)
dat
- protected void clearSignup(BDO dat)
dat
- public java.util.Date getSignupDate(BDO dat)
public void addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes, BDO target)
SummaryContributer
Table
so the data should be of a
type that can be displayed by Table
s
The keys should be display text.addAttributes
in interface SummaryContributer<BDO extends DataObject>