<F_BIND> : Simple field binding

Java class : leon.info.binding.LyFieldBinding

ROLE

The field is equivalent to a physical attribute. A difference of types between them may trigger a mechanism of data transformation. Most conversions are implicit, however an explicit method could be added if necessary. Required information for this binding is the name of the physical attribute and possibly its default value. This definition may change depending on the implementation of new connections to new types of data providers. The physical attribute can be declared as id if logical and physical identifiers differ.

ATTRIBUTES

<!ATTLIST F_BIND
	  value CDATA #REQUIRED
	  cbind CDATA #IMPLIED
	  default CDATA #IMPLIED
	  id ( true | false) "false"
	  javaType NMTOKEN #IMPLIED
	  javaEncoder NMTOKEN #IMPLIED
	  peerType ( DEFAULT | BLOB | CLOB) "DEFAULT">
Attribute Mand. Description Default
value yes Name of the physical field.  
cbind no Name of the physical class to which the physical field belongs to. By default, the one specified by the class binding is used.  
default no Default value.  
id no Indicates if the physical field is identifier or not. This attribute is used if the logical id differs from the physical id. By default, these ids are the same. false
javaType no Full name of the Java class corresponding to the type of physical field.  
javaEncoder no Full name of the Java class used to encode and decode the values exchanged with the SQL data provider. This class must implement the leon.peer.sql.LySqlSpecificEncoder interface.  
peerType no Peer type (used by RDBMS which accepts BLOBS and/or CLOBS) otherwise value is 'DEFAULT'. Possible values are : 'DEFAULT', 'BLOB' and 'CLOB'. DEFAULT

SAMPLE

<F_BIND value="price" />

<F_BIND value="state" default="unknown"/>