📄 jbosscmp-jdbc_3_0.dtd
字号:
<?xml version='1.0' encoding='UTF-8' ?><!--This is the XML DTD for the jbosscmp-jdbc deployment descriptor. <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">--><!--The root element of JBossCMP-JDBC configuration files.--><!ELEMENT jbosscmp-jdbc (defaults?, enterprise-beans?, relationships?, dependent-value-classes?, type-mappings?)><!--The optional defaults elements contains the default values for entities, and relationships.--><!ELEMENT defaults ((datasource, datasource-mapping)?, create-table?, remove-table?, read-only?, read-time-out?, row-locking?, pk-constraint?, fk-constraint?, preferred-relation-mapping?, read-ahead?, list-cache-max?, fetch-size?)><!--The optional datasource element contains the jndi-name used to lookupthe datasource. All database connections used by an entity or relation table are obtained from the datasource. --><!ELEMENT datasource (#PCDATA)><!--The optional datasource-mapping element contains the name of the type mappingthat will be used for this datasource.--><!ELEMENT datasource-mapping (#PCDATA)><!--Should the persistence manager attempt to create tables if they are not present?The create-table element must be one of the two following: <create-table>true</create-table> <create-table>false</create-table>--><!ELEMENT create-table (#PCDATA)><!--Should the persistence manager attempt to remove tables during shutdown?The remove-table element must be one of the two following: <remove-table>true</remove-table> <remove-table>false</remove-table>--><!ELEMENT remove-table (#PCDATA)><!--Is the entity or cmp-field read-only?The read-only element must be one of the two following: <read-only>true</read-only> <read-only>false</read-only>--><!ELEMENT read-only (#PCDATA)><!--Specifies the ammount of time that a read-only field is consideredvalid (milliseconds).--><!ELEMENT read-time-out (#PCDATA)><!--Should select statements the SELECT ... FOR UPDATE syntax?The row-locking element must be one of the two following: <row-locking>true</row-locking> <row-locking>false</row-locking>--><!ELEMENT row-locking (#PCDATA)><!--Should a foreign key constraint be added for this relationship role?The fk-constraint element must be one of the two following: <fk-constraint>true</fk-constraint> <fk-constraint>false</fk-constraint>--><!ELEMENT fk-constraint (#PCDATA)><!--Should a primary key constraint be added when creating tables?The pk-constraint element must be one of the two following: <pk-constraint>true</pk-constraint> <pk-constraint>false</pk-constraint>--><!ELEMENT pk-constraint (#PCDATA)><!--Specifies the preferred mapping style for relationships.The preferred-relation-mapping element must be one of the two following: <preferred-relation-mapping>foreign-key</preferred-relation-mapping> <preferred-relation-mapping>relation-table</preferred-relation-mapping>--><!ELEMENT preferred-relation-mapping (#PCDATA)><!--Specifies the read ahead strategy. <read-ahead> <strategy>on-load</strategy> <page-size>255</page-size> <eager-load-group>*</eager-load-group> </read-ahead>--><!ELEMENT read-ahead (strategy, page-size?, eager-load-group?)><!--Specifies the strategy used to read-ahead data in queries.The strategy element must be one of the two following: <strategy>none</strategy> <strategy>on-load</strategy> <strategy>on-find</strategy>--><!ELEMENT strategy (#PCDATA)><!--Specifies the number of entities that will be read in a single read-ahead load query.--><!ELEMENT page-size (#PCDATA)><!--Specifies the number of simultaneous queries that can be tracked by the cache for an entity. --><!ELEMENT list-cache-max (#PCDATA)><!--Specifies the number of entities to read in one round-trip tothe underlying datastore.--><!ELEMENT fetch-size (#PCDATA)><!--The enterprise-beans element contains the entity elements that will be configured.--><!ELEMENT enterprise-beans (entity+)><!--The entity element contains the configuration of an entity--><!ELEMENT entity (ejb-name, (datasource, datasource-mapping)?, create-table?, remove-table?, read-only?, read-time-out?, row-locking?, pk-constraint?, read-ahead?, list-cache-max?, fetch-size?, table-name?, cmp-field*, load-groups?, eager-load-group?, lazy-load-groups?, query*)><!--Name of the entity being configured. This must match an entity declaredin the ejb-jar.xml file.--><!ELEMENT ejb-name (#PCDATA)><!--This is the name of the table that will hold data for this entity. Each entity instance will be stored in one row of this table. --><!ELEMENT table-name (#PCDATA)><!--The cmp-field element contains the configuration of a cmp-field.--><!ELEMENT cmp-field (field-name, read-only?, read-time-out?, column-name?, not-null?, ((jdbc-type, sql-type) | (property+))? )><!--Name of the cmp-field being configured. This must match a cmp-field declared for this entity in the ejb-jar.xml file.--><!ELEMENT field-name (#PCDATA)><!--The name of the column that will hold the data for this field.--><!ELEMENT column-name (#PCDATA)><!--If present the field will not allow a field value.--><!ELEMENT not-null EMPTY><!--This is the JDBC type that is used when setting parameters in a JDBCPreparedStatement or loading data from a JDBC ResultSet for this cmp-field. The valid types are defined in java.sql.Types. --><!ELEMENT jdbc-type (#PCDATA)> <!--This is the SQL type that is used in create table statements for this field. Valid sql-types are only limited by your database vendor. --><!ELEMENT sql-type (#PCDATA)><!--The property element contains the configuration of a dependentvalue class property of a cmp-field that is the type of a dependentvalue class.--><!ELEMENT property (property-name, column-name?, not-null?, (jdbc-type, sql-type)?)><!--Name of the property being configured. In a dependent-value-classelement this must match a JavaBean property of the class. In acmp-field element this must match a flattened propety of thedependent-value-class field type.--><!ELEMENT property-name (#PCDATA)><!--Contains the named load groups.--><!ELEMENT load-groups (load-group+)><!--A named group of fields that will be loaded together.--><!ELEMENT load-group (description?, load-group-name, field-name+)><!--Contains the name of a load group.--><!ELEMENT load-group-name (#PCDATA)><!--Contains the name of the load group that will eager loaded for this entity.--><!ELEMENT eager-load-group (#PCDATA)><!--Contains the names of the groups that will be lazy loaded together. --><!ELEMENT lazy-load-groups (load-group-name+)><!--Descriptive text.--><!ELEMENT description (#PCDATA)><!--The query element contains the configuration of a query.--><!ELEMENT query (description?, query-method, (jboss-ql | dynamic-ql | declared-sql)?, read-ahead?)><!--The query method that being configured. This must match a query-method declared for this entity in the ejb-jar.xml file.--><!ELEMENT query-method (method-name, method-params)><!-- The name of the query method that is being configured.--><!ELEMENT method-name (#PCDATA)><!--The method-parameters contains the parameters of the method that isbeing configured. Method parameters must be in the same order as the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -