| java.lang.Object simpleorm.core.SRecordInstance simpleorm.simplewebapp.dbute.WRecordInstance
All known Subclasses: simpleorm.simplewebapp.eg.dbute.WUser,
WRecordInstance | abstract public class WRecordInstance extends SRecordInstance (Code) | | Extends SRecordInstance with map etc.
Should be moved to SRecordInstance eventually.
|
Inner Class :class FieldValues extends WDummyMap | |
Method Summary | |
public Map | fieldValues() Hack for jstl properties as
${foo[bar]} can only reference a Map, not a simple method with a parameter.
(Used by list forms.
...
row is a WRecordInstance, value gets the value out of the record.
)
A major problem with this approach is that there is no mechanism to filter
or format the values per UI. | public static SFieldMeta | setOptions(SFieldMeta field, String... options) Set list of values for HTML SELECT/OPTION. |
fieldValues | public Map fieldValues()(Code) | | Hack for jstl properties as
${foo[bar]} can only reference a Map, not a simple method with a parameter.
(Used by list forms.
...
row is a WRecordInstance, value gets the value out of the record.
)
A major problem with this approach is that there is no mechanism to filter
or format the values per UI. Things should go through
|
setOptions | public static SFieldMeta setOptions(SFieldMeta field, String... options)(Code) | | Set list of values for HTML SELECT/OPTION.
Should be made more dynamic later, a method rather than a static list.
(Can be acheived using SProperty interface, just subtype it.)
|
Methods inherited from simpleorm.core.SRecordInstance | public String allFields()(Code)(Java Doc) public void assertNewRow()(Code)(Java Doc) public void assertNotNewRow()(Code)(Java Doc) public SRecordInstance attach()(Code)(Java Doc) public Object clone()(Code)(Java Doc) public void deleteRecord()(Code)(Java Doc) public void detach(boolean nullRefs)(Code)(Java Doc) public void detach()(Code)(Java Doc) public void dirtyPurge()(Code)(Java Doc) public boolean equals(Object key2)(Code)(Java Doc) public void flush()(Code)(Java Doc) public void flushAndPurge()(Code)(Java Doc) public BigDecimal getBigDecimal(SFieldMeta field)(Code)(Java Doc) public boolean getBoolean(SFieldMeta field)(Code)(Java Doc) public byte[] getBytes(SFieldMeta field)(Code)(Java Doc) public java.sql.Date getDate(SFieldMeta field)(Code)(Java Doc) public double getDouble(SFieldMeta field)(Code)(Java Doc) public int getInt(SFieldMeta field)(Code)(Java Doc) public long getLong(SFieldMeta field)(Code)(Java Doc) abstract public SRecordMeta getMeta()(Code)(Java Doc) public Object getObject(SFieldMeta field)(Code)(Java Doc) public Object getObject(SFieldReference field, long sqy_flags)(Code)(Java Doc) public SRecordInstance getReference(SFieldReference field, long sqy_flags)(Code)(Java Doc) public SRecordInstance getReference(SFieldReference field)(Code)(Java Doc) public Object getReferenceNoQuery(SFieldReference field)(Code)(Java Doc) protected SRecordInstance getReferenceWhileDetached(SFieldReference reference, Object[] keys)(Code)(Java Doc) public String getString(SFieldMeta field)(Code)(Java Doc) public java.sql.Time getTime(SFieldMeta field)(Code)(Java Doc) public java.sql.Timestamp getTimestamp(SFieldMeta field)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isAttached()(Code)(Java Doc) public boolean isDeleted()(Code)(Java Doc) public boolean isDirty()(Code)(Java Doc) public boolean isDirty(SFieldMeta field)(Code)(Java Doc) public boolean isEmpty(SFieldMeta field)(Code)(Java Doc) public boolean isNewRow()(Code)(Java Doc) public boolean isNull(SFieldMeta field)(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) public boolean isValid(SFieldMeta field)(Code)(Java Doc) public void nullReferences()(Code)(Java Doc) public void setBigDecimal(SFieldMeta field, BigDecimal value)(Code)(Java Doc) public void setBoolean(SFieldMeta field, boolean value)(Code)(Java Doc) public void setBytes(SFieldMeta field, byte[] value)(Code)(Java Doc) public void setDate(SFieldMeta field, java.util.Date value)(Code)(Java Doc) public void setDirty()(Code)(Java Doc) public void setDouble(SFieldMeta field, double value)(Code)(Java Doc) public void setEmpty(SFieldMeta field)(Code)(Java Doc) public void setInt(SFieldMeta field, int value)(Code)(Java Doc) public void setLong(SFieldMeta field, long value)(Code)(Java Doc) public void setNull(SFieldMeta field)(Code)(Java Doc) public void setObject(SFieldMeta field, Object value)(Code)(Java Doc) public void setReference(SFieldReference field, SRecordInstance value)(Code)(Java Doc) public void setString(SFieldMeta field, String value)(Code)(Java Doc) public void setTime(SFieldMeta field, java.util.Date value)(Code)(Java Doc) public void setTimestamp(SFieldMeta field, java.util.Date value)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void validateField(SFieldMeta field, Object newValue)(Code)(Java Doc) public void validateRecord()(Code)(Java Doc) public boolean wasInCache()(Code)(Java Doc)
|
|
|