12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Properties<br />

Table 16.3<br />

Table properties (continued)<br />

Property Type Default Description<br />

useAlterTable java.lang.Boolean false Whether or not to use the SQL ALTER<br />

statement to alter an entity's table to add<br />

columns for fields that do not have a<br />

matching column.<br />

createTableSql java.lang.String None SQL statement used to create the table if it<br />

needs to be created automatically.<br />

create-tables java.lang.Boolean false The <strong>Borland</strong> CMP engine automatically<br />

creates tables for Cloudscape and<br />

JDataStore databases -- that is, in the<br />

development environment. To enable<br />

automatic table creation in other<br />

databases, you must set this flag to true.<br />

Column Properties<br />

Property Type Default Description<br />

ignoreOnInsert java.lang.String false Specifies the column that must not be<br />

set during the execution of an INSERT<br />

statement. This property is used in<br />

conjunction with the<br />

getPrimaryKeyAfterInsertSql property.<br />

createColumnSql java.lang.String None Use this property to override the<br />

standard data-type lookup and specify<br />

the data type manually, use this<br />

property.<br />

■ Local transactions support the<br />

javax.ejb.EJBContext methods<br />

setRollbackOnly() and<br />

getRollbackOnly().<br />

■ Local transactions support timeouts<br />

for database connections and<br />

transactions.<br />

■ Local transactions are lightweight<br />

from a performance standpoint.<br />

columnJavaType java.lang.String None Java type used to create this column if<br />

the table needs to be created<br />

automatically. The acceptable values<br />

are:<br />

■ java.lang.Boolean<br />

■ java.lang.Byte<br />

■ java.lang.Character<br />

■ java.lang.Short<br />

■ java.lang.Integer<br />

■ java.lang.Long<br />

■ java.lang.Float<br />

■ java.math.BigDecimal<br />

■ java.lang.String<br />

■ java.sql.Time<br />

■ java.sql.Date<br />

■ java.sql.TimeStamp<br />

■ java.io.Serializable<br />

This property is ignored if<br />

createColumnSql is set.<br />

Chapter 16: Using BES Properties for CMP 2.x 151

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!