user manual
144 BES Developer’s Guide
Setting Properties
Container-managed data access support
For container-managed persistence, the Borland EJB Container supports all
data types supported by the JDBC specification, plus some other types
beyond those supported by JDBC.
The following table shows the basic and complex types supported by the
Borland EJB Container:
Keep in mind that the Borland Container supports classes implementing the
java.io.Serializable interface, such as Hashtable and Vector. The container
supports other data types, such as Java collections or third party collections,
because they also implement java.io.Serializable. For classes and data types
that implement the Serializable interface, the Container merely serializes their
state and stores the result into a BLOB. The Container does not do any "smart"
mapping on these classes or types; it just stores the state in binary format.
The Container's CMP engine observes the following rule: the engine serializes
as a BLOB all types that are not one of the explicitly supported types.
In this context, the Container follows the JDBC specification: a BLOB is the type
to which LONGVARBINARY maps. (For Oracle, this is LONG RAW.)
Using SQL keywords
The CMP engine for the Borland Container can handle all SQL keywords that
comply with the SQL92 standard. However, you should keep in mind that
vendors frequently add their own keywords. For example, Oracle uses the
keyword VARCHAR2. If you want to ensure that the CMP engine can handle
vendor keywords that may differ from the SQL standard, set up an
environment property in the deployment descriptor that maps the CMP field
name to the column name. By using this sort of environment property, you do
not have to modify your code.
Finder WHERE Clause Bean:CMP1.1 Finders
Finder Load State option Bean:CMP1.1 Finders
Basic types: boolean Boolean byte Byte char Character
double Double float Float int Integer
long Long short Short String
java.sql.Date
BigDecimal
java.util.Date
byte[] java.sql.Time
java.sql.TimeStamp
Complex types: Any class implementing java.io.Serializable, such as
Vector and Hashtable
Other entity bean references
Descriptor Element
Navigation Tree Node/
Panel Name DDEditor Tab










