db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thoralf Rickert" <thoralf.rick...@cadooz.de>
Subject AW: If you "Struts", how do you validate?
Date Mon, 22 May 2006 12:55:34 GMT
> But it's simple to replace the 
> framework.database.ExampleTableItem with a wrapper or 
> extended class that controls the access to the properties.

This could be something like this:

public class ExampleTableItemWrapper extends ExampleTableItem {
  /** public write access */
  public void setName(String name) {
    ...
  }

  /** public read access */
  public String getName() {
    ...
  }

  /** private write access (deny access) */
  private void setDeleted(boolean deleted) {
    ...
  }

  /** public read access */
  public boolean getDeleted() {
    ...
  }
}




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message