org.apache.empire.struts2.websample.ws.records
Class EmployeeRecord

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.data.bean.BeanRecordProxy<T>
          extended by org.apache.empire.struts2.websample.ws.SampleRecord<Employee>
              extended by org.apache.empire.struts2.websample.ws.records.EmployeeRecord
All Implemented Interfaces:
ErrorInfo, Record, RecordData

public class EmployeeRecord
extends SampleRecord<Employee>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject
ErrorObject.ObjectErrorInfo
 
Field Summary
static SampleBeanDomain.Employees T
           
 
Fields inherited from class org.apache.empire.struts2.websample.ws.SampleRecord
context
 
Fields inherited from class org.apache.empire.data.bean.BeanRecordProxy
log
 
Constructor Summary
EmployeeRecord(SampleContext context)
           
 
Method Summary
static Options getDepartments(SampleContext context)
           
 Options getFieldOptions(Column column)
          returns the Options list for the given record field.
 boolean isNew()
          returns true if this record is a new record.
 boolean isValid()
          returns true if the record is valid.
 
Methods inherited from class org.apache.empire.data.bean.BeanRecordProxy
clearModified, getBean, getBeanProperties, getBeanProperties, getColumn, getColumnExpr, getFieldCount, getFieldIndex, getFieldIndex, getKeyColumns, getKeyValues, getValue, getValue, isFieldReadOnly, isFieldVisible, isModified, isNull, isNull, setBean, setBeanValues, setBeanValues, setValue, setValue, wasModified
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, clearErrorInfo, error, error, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

T

public static final SampleBeanDomain.Employees T
Constructor Detail

EmployeeRecord

public EmployeeRecord(SampleContext context)
Method Detail

getFieldOptions

public Options getFieldOptions(Column column)
Description copied from interface: Record
returns the Options list for the given record field.

Specified by:
getFieldOptions in interface Record
Overrides:
getFieldOptions in class BeanRecordProxy<Employee>
Parameters:
column - the column to check for visibility
Returns:
an options collection containing all allowed field values

getDepartments

public static Options getDepartments(SampleContext context)

isNew

public boolean isNew()
Description copied from interface: Record
returns true if this record is a new record.

Specified by:
isNew in interface Record
Overrides:
isNew in class BeanRecordProxy<Employee>
Returns:
true if this record is a new record

isValid

public boolean isValid()
Description copied from interface: Record
returns true if the record is valid.

Specified by:
isValid in interface Record
Overrides:
isValid in class BeanRecordProxy<Employee>
Returns:
true if the record is valid


Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.