Interface DataScheme

Represents a data scheme.

Implementation note: Will be backed up by a table in an SQL database.

Synopsis

 public interface DataScheme {
  public int getLength();
  public DataColumn getColumns();
  public String getName();
  public String getMailCondition();
  public String getAutoLoadCondition();
}

Inheritance Path. org.kaiwitte.workbench.data.DataScheme

getAutoLoadCondition()

Synopsis: public String getAutoLoadCondition();

Parameters

return

condition for when the record requires special attention

Returns the condition for records that are build according to this DataScheme when they shall be automatically loaded to a visible table on program start. Strict SQL syntax. String types ARE quoted. E. g.:

  • status='nicht erledigt'

  • age<27

  • status='nicht erledigt' AND age<27

getColumns()

Synopsis: public DataColumn[] getColumns();

Parameters

return

the DataColumns

Returns the DataColumns.

getLength()

Synopsis: public int getLength();

Parameters

return

the number of DataColumns

Returns the number of DataColumns.

getMailCondition()

Synopsis: public String getMailCondition();

Parameters

return

condition when a mail is to be sent

Returns the condition for records that are build according to this DataScheme when a mail is to be sent. String types are NOT quoted. E. g.: status=erledigt.

getName()

Synopsis: public String getName();

Parameters

return

the name of this column

Returns the name of this column.