Geomajas can connect in different ways to data stores or even a webstream. When you use the GeoTools layermodel, you use exactly the same parameters as you would for GeoTools directly. Geomajas simply passes the arguments to GeoTools. It is the GeoTools library that figures out what kind of datastore is required (whether it is Postgis, WFS or a shapefile).