Specifies database parameter inside database element.
Can be used for storing BLOBs (Binary Large OBjects).
Syntax
<db-param type="param_type">
parameter value
</db-param>
Attributes
Name |
Required |
Default |
Description |
type |
no |
binary if it's value is recognized as binary, text otherwise. |
Type of the parameter. Valid values are: int, long, double, text and binary.
|
Example
<database connection="jdbc:mysql://myserver/mydb"
jdbcclass="com.mysql.jdbc.Driver"
username="myuser"
password="mypass">
insert into logos (id, img)
values ( 1, <db-param><http url='${myImageUrl}'/></db-param> )
</database>