Generic Bean: simple validation

4 febbraio 2010

In my previous post i write about a generic base bean to be extended in concrete classes. In a recent application i needed some simple validation rules to mantain the object in a consistent state, so i decided to add a couple of custom attributes to properties:

  • min: min lenght for string or min value for numeric;
  • max: max lenght for string or max value for numeric

I also added a generic validation method to the base class.

New code and sample can be downloaded from here.


OOP – Generic Setters and Getters

2 febbraio 2010

When writing a CFC that models an object of a domain, you can have a bunch of properties and then a bunch of setter’s and getter’s methods, a couple for each property.  Basically each setter sets a property with a value passed as argument, and each getter retrivies the value of a property .

Leggi il seguito di questo post »


Box(dot)net

28 gennaio 2010

Vorrei segnalare un servizio di file sharing che consente di fare l’upload di files di vario tipo e di condividerli; il servizio è molto user friendly da usare, e il download è immediato.


I’d point out a file sharing service to upload and share files; very user-friendly to use, with an immediate download.


salvatorefusto.wordpress

14 gennaio 2010

Ho deciso di spostare il mio blog su wordpress.


Today i’ve moved my personal blog on wordpress


Follow

Get every new post delivered to your Inbox.