| | This file copyright (c) 2004 SO.MUS.AR. s.a.s. | Subject to the license published at | http://www.somusar.com/contact/poc_request | user "Sign-on account" | | This entity features a database access class with some functions. | string user_name[25] "User name" string password[25] "Password" bool password_matches "Password matches" function match_password "Match password" --- DEFS ------------------------------------------------------------------ | | Define signature for function match_password | match_password: user_name, password -> password_matches --- DB -------------------------------------------------------------------- | | Define the field set for the database tables that embed | this entity, and define its primary key. | table: user_name, password pkey: user_name | | Define the list of fields to be returned by a select query | query: password --- LOGIC ----------------------------------------------------------------- | | Define the list of properties for the logic tier class | properties: user_name, password | | Define queries for this entity | query: match_password --- UI -------------------------------------------------------------------- | No usage interface for this entity, yet --- ADJUST ---------------------------------------------------------------- | For some reason the table name should be renamed to "signon" in the | database. DB.table.id = "signon" | No POJO (plain old java object) should be generated for this entity LOGIC.make_pojo = "false" | For some reason a different prefix should be used for the logic-level | exceptions raised by this entity LOGIC.exception_prefix = "SignOn" | For some reason a different style of insert query is | required for this entity. LOGIC.default_queries = "insert(type 2)" | Specify that method match_password raises two exceptions and | is implemented by hand LOGIC.query.match_password.exceptions = "SignOnDAOFinder,InvalidPassword" LOGIC.query.match_password.code = "hand-written"