[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: patriot1burke Date: 01/12/04 21:08:04 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: changed select-for-update to row-locking. Revision ChangesPath 1.17 +7 -7 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- JawsEntityMetaData.java 2001/11/26 03:12:28 1.16 +++ JawsEntityMetaData.java 2001/12/05 05:08:04 1.17 @@ -35,7 +35,7 @@ * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a - * @version $Revision: 1.16 $ + * @version $Revision: 1.17 $ * * Revisions: * 20010621 Bill Burke: made read-ahead defaultable in standardjboss.xml and jaws.xml @@ -71,8 +71,8 @@ /** Do we use tuned updates? */ private boolean tunedUpdates; - /** Do we use 'SELECT ... FOR UPDATE' syntax? */ - private boolean selectForUpdate; + /** Do we use do row locking on ejb loads? */ + private boolean rowLocking; /** Is the bean read-only? */ private boolean readOnly; @@ -254,7 +254,7 @@ public String getPrimKeyField() { return entity.getPrimKeyField(); } - public boolean hasSelectForUpdate() { return selectForUpdate; } + public boolean hasRowLocking() { return rowLocking; } public boolean hasReadAhead() { return readAhead; } @@ -325,9 +325,9 @@ String raheadStr = getElementContent(getOptionalChild(element, read-ahead)); if (raheadStr != null) readAhead = Boolean.valueOf(raheadStr).booleanValue(); - String sForUpStr = getElementContent(getOptionalChild(element, select-for-update)); - if (sForUpStr != null) selectForUpdate = (Boolean.valueOf(sForUpStr).booleanValue()); - selectForUpdate = selectForUpdate !readOnly; + String sForUpStr = getElementContent(getOptionalChild(element, row-locking)); + if (sForUpStr != null) rowLocking = (Boolean.valueOf(sForUpStr).booleanValue()); + rowLocking = rowLocking !readOnly; // read only timeout? String toStr = getElementContent(getOptionalChild(element, time-out)); ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: deerwood Date: 01/07/24 21:56:51 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: o Indentation and formatting according to project standards. One spot found, where indentation does not match parser, possible Bug? Authors, please review, I'm currently wearing the 'formatter' hat (seemingly beeing too large, thus making me blind for any context :-) Revision ChangesPath 1.13 +128 -86 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- JawsEntityMetaData.java 2001/07/03 15:57:53 1.12 +++ JawsEntityMetaData.java 2001/07/25 04:56:51 1.13 @@ -4,6 +4,7 @@ * Distributable under LGPL license. * See terms of license at gnu.org. */ + package org.jboss.ejb.plugins.jaws.metadata; import java.util.ArrayList; @@ -30,84 +31,88 @@ import org.jboss.logging.Logger; /** - * description + * description * - * @see related - * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a - * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a - * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a - * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a - * @version $Revision: 1.12 $ + * @see related + * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a + * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a + * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a + * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a + * @version $Revision: 1.13 $ * * Revisions: * 20010621 Bill Burke: made read-ahead defaultable in standardjboss.xml and jaws.xml * - * */ -public class JawsEntityMetaData extends MetaData implements XmlLoadable { +public class JawsEntityMetaData + extends MetaData + implements XmlLoadable +{ // Constants - // Attributes - // parent metadata structures + /** Parent metadata structure. */ private JawsApplicationMetaData jawsApplication; + + /** Parent metadata structure. */ private EntityMetaData entity; - // the name of the bean (same as entity.getEjbName()) + /** The name of the bean (same as entity.getEjbName()). */ private String ejbName = null; - // the name of the table to use for this bean + /** The name of the table to use for this bean. */ private String tableName = null; - // do we have to try and create the table on deployment? + /** Do we have to try and create the table on deployment? */ private boolean createTable; - // do we have to drop the table on undeployment? + /** Do we have to drop the table on undeployment? */ private boolean removeTable; - // do we use tuned updates? + /** Do we use tuned updates? */ private boolean tunedUpdates; - // do we use 'SELECT ... FOR UPDATE' syntax? + /** Do we use 'SELECT ... FOR UPDATE' syntax? */ private boolean selectForUpdate; - // is the bean read-only? + /** Is the bean read-only? */ private boolean readOnly; - // make finders by default read-ahead? + /** Make finders by default read-ahead? */ private boolean readAhead; private int timeOut; - // should the table have a primary key constraint? + /** Should the table have a primary key constraint? */ private boolean pkConstraint; - // is the bean's primary key a composite object + /** Is the bean's primary key a composite object? */ private boolean compositeKey; - // the class of the primary key + /** The class of the primary key. */ private Class primaryKeyClass; - // the fields we must persist for this bean + /** The fields we must persist for this bean. */ private Hashtable cmpFields = new Hashtable(); - // the fields that belong to the primary key (if composite) + /** The fields that belong to the primary key (if composite). */ private ArrayList pkFields = new ArrayList(); - // finders for this bean + /** Finders for this bean. */ private ArrayList finders = new ArrayList(); - // the bean level datasource -/** - * This will now support datasources at the bean level. If no datasource - * has been specified at the bean level then the global datasource is used - * - * This provides flexiblity for having single deployment units connecting to - * different datasources for
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: starksm Date: 01/07/14 14:43:25 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata Tag: Branch_2_4 JawsEntityMetaData.java Log: Undo all changes made to the jaws package in Rel_2_4_0_16 as this broke the jbosstest suite Revision ChangesPath No revision No revision 1.9.4.3 +205 -213 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.9.4.2 retrieving revision 1.9.4.3 diff -u -r1.9.4.2 -r1.9.4.3 --- JawsEntityMetaData.java 2001/07/11 15:03:26 1.9.4.2 +++ JawsEntityMetaData.java 2001/07/14 21:43:25 1.9.4.3 @@ -36,61 +36,58 @@ * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a - * @version $Revision: 1.9.4.2 $ + * @version $Revision: 1.9.4.3 $ */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { - // Constants - + // Constants - - // Attributes + // Attributes - // parent metadata structures - private JawsApplicationMetaData jawsApplication; - private EntityMetaData entity; + // parent metadata structures + private JawsApplicationMetaData jawsApplication; + private EntityMetaData entity; - // the name of the bean (same as entity.getEjbName()) - private String ejbName = null; + // the name of the bean (same as entity.getEjbName()) + private String ejbName = null; - // the name of the table to use for this bean - private String tableName = null; + // the name of the table to use for this bean + private String tableName = null; - // do we have to try and create the table on deployment? - private boolean createTable; + // do we have to try and create the table on deployment? + private boolean createTable; - // do we have to drop the table on undeployment? - private boolean removeTable; + // do we have to drop the table on undeployment? + private boolean removeTable; - // do we use tuned updates? - private boolean tunedUpdates; + // do we use tuned updates? + private boolean tunedUpdates; - //Enable fast updates based on stable row id column - private String stableRowIdColumn; - // do we use 'SELECT ... FOR UPDATE' syntax? private boolean selectForUpdate; - // is the bean read-only? - private boolean readOnly; - private int timeOut; + // is the bean read-only? + private boolean readOnly; + private int timeOut; - // should the table have a primary key constraint? - private boolean pkConstraint; + // should the table have a primary key constraint? + private boolean pkConstraint; - // is the bean's primary key a composite object - private boolean compositeKey; + // is the bean's primary key a composite object + private boolean compositeKey; - // the class of the primary key - private Class primaryKeyClass; + // the class of the primary key + private Class primaryKeyClass; - // the fields we must persist for this bean - private Hashtable cmpFields = new Hashtable(); + // the fields we must persist for this bean + private Hashtable cmpFields = new Hashtable(); - // the fields that belong to the primary key (if composite) - private ArrayList pkFields = new ArrayList(); + // the fields that belong to the primary key (if composite) + private ArrayList pkFields = new ArrayList(); - // finders for this bean - private ArrayList finders = new ArrayList(); + // finders for this bean + private ArrayList finders = new ArrayList(); - // the bean level datasource + // the bean level datasource /** * This will now support datasources at the bean level. If no datasource * has been specified at the bean level then the global datasource is used @@ -99,106 +96,104 @@ * different datasources for different beans. * */ - private DataSource dataSource=null; + private DataSource dataSource=null; - /** -* Here we store the basename of all detailed fields in jaws.xml -* (e.g., data for data.categoryPK). -*/ - private HashMap detailedFieldDescriptions = new HashMap(); + /** + * Here we
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: kvvinaymenon Date: 01/07/11 08:03:26 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata Tag: Branch_2_4 JawsEntityMetaData.java Log: Modified for support for stable row id based updates in databases like Oracle. The jaws.xml file needs to include a stable-rowid-column field for the entity and its value should correspond to the name of the stable row id column e.g. rowid in Oracle. Revision ChangesPath No revision No revision 1.9.4.2 +214 -206 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.9.4.1 retrieving revision 1.9.4.2 diff -u -r1.9.4.1 -r1.9.4.2 --- JawsEntityMetaData.java 2001/07/03 16:40:13 1.9.4.1 +++ JawsEntityMetaData.java 2001/07/11 15:03:26 1.9.4.2 @@ -36,58 +36,61 @@ * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a - * @version $Revision: 1.9.4.1 $ + * @version $Revision: 1.9.4.2 $ */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { - // Constants - + // Constants - - // Attributes + // Attributes - // parent metadata structures - private JawsApplicationMetaData jawsApplication; - private EntityMetaData entity; + // parent metadata structures + private JawsApplicationMetaData jawsApplication; + private EntityMetaData entity; - // the name of the bean (same as entity.getEjbName()) - private String ejbName = null; + // the name of the bean (same as entity.getEjbName()) + private String ejbName = null; - // the name of the table to use for this bean - private String tableName = null; + // the name of the table to use for this bean + private String tableName = null; - // do we have to try and create the table on deployment? - private boolean createTable; + // do we have to try and create the table on deployment? + private boolean createTable; - // do we have to drop the table on undeployment? - private boolean removeTable; + // do we have to drop the table on undeployment? + private boolean removeTable; - // do we use tuned updates? - private boolean tunedUpdates; + // do we use tuned updates? + private boolean tunedUpdates; + //Enable fast updates based on stable row id column + private String stableRowIdColumn; + // do we use 'SELECT ... FOR UPDATE' syntax? private boolean selectForUpdate; - // is the bean read-only? - private boolean readOnly; - private int timeOut; + // is the bean read-only? + private boolean readOnly; + private int timeOut; - // should the table have a primary key constraint? - private boolean pkConstraint; + // should the table have a primary key constraint? + private boolean pkConstraint; - // is the bean's primary key a composite object - private boolean compositeKey; + // is the bean's primary key a composite object + private boolean compositeKey; - // the class of the primary key - private Class primaryKeyClass; + // the class of the primary key + private Class primaryKeyClass; - // the fields we must persist for this bean - private Hashtable cmpFields = new Hashtable(); + // the fields we must persist for this bean + private Hashtable cmpFields = new Hashtable(); - // the fields that belong to the primary key (if composite) - private ArrayList pkFields = new ArrayList(); + // the fields that belong to the primary key (if composite) + private ArrayList pkFields = new ArrayList(); - // finders for this bean - private ArrayList finders = new ArrayList(); + // finders for this bean + private ArrayList finders = new ArrayList(); - // the bean level datasource + // the bean level datasource /** * This will now support datasources at the bean level. If no datasource * has been specified at the bean level then the global datasource is used @@ -96,104 +99,106 @@ * different datasources for different beans. * */ - private DataSource dataSource=null; + private DataSource dataSource=null; - /** - * Here we store the basename of all
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: kvvinaymenon Date: 01/07/03 08:57:53 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: Fixed the build problem I introduced by not importing NamingException. Revision ChangesPath 1.12 +2 -1 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- JawsEntityMetaData.java 2001/07/03 15:50:12 1.11 +++ JawsEntityMetaData.java 2001/07/03 15:57:53 1.12 @@ -16,6 +16,7 @@ import javax.sql.DataSource; import javax.naming.InitialContext; +import javax.naming.NamingException; import org.w3c.dom.Element; @@ -36,7 +37,7 @@ * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * * Revisions: * 20010621 Bill Burke: made read-ahead defaultable in standardjboss.xml and jaws.xml ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: kvvinaymenon Date: 01/07/03 08:50:13 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: JAWS support for multiple datasources. Users can now specify a datasource tag at bean level. If it is not specified the bean will use the global datasource specified in the jaws.xml file. Revision ChangesPath 1.11 +119 -72 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- JawsEntityMetaData.java 2001/06/21 21:52:19 1.10 +++ JawsEntityMetaData.java 2001/07/03 15:50:12 1.11 @@ -29,38 +29,42 @@ import org.jboss.logging.Logger; /** - * description - * + * description + * * @see related * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a - * @version $Revision: 1.10 $ + * @author a href=mailto:[EMAIL PROTECTED];Vinay Menon/a + * @version $Revision: 1.11 $ * * Revisions: * 20010621 Bill Burke: made read-ahead defaultable in standardjboss.xml and jaws.xml + * + + * */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { // Constants - - + // Attributes - + // parent metadata structures private JawsApplicationMetaData jawsApplication; private EntityMetaData entity; - + // the name of the bean (same as entity.getEjbName()) private String ejbName = null; - + // the name of the table to use for this bean private String tableName = null; - + // do we have to try and create the table on deployment? private boolean createTable; - + // do we have to drop the table on undeployment? private boolean removeTable; - + // do we use tuned updates? private boolean tunedUpdates; @@ -77,28 +81,39 @@ // should the table have a primary key constraint? private boolean pkConstraint; - + // is the bean's primary key a composite object private boolean compositeKey; - + // the class of the primary key private Class primaryKeyClass; - + // the fields we must persist for this bean private Hashtable cmpFields = new Hashtable(); - + // the fields that belong to the primary key (if composite) private ArrayList pkFields = new ArrayList(); - + // finders for this bean private ArrayList finders = new ArrayList(); - + + // the bean level datasource +/** + * This will now support datasources at the bean level. If no datasource + * has been specified at the bean level then the global datasource is used + * + * This provides flexiblity for having single deployment units connecting to + * different datasources for different beans. + * + */ + private DataSource dataSource=null; + /** * Here we store the basename of all detailed fields in jaws.xml * (e.g., data for data.categoryPK). */ private HashMap detailedFieldDescriptions = new HashMap(); - + /** * This is the Boolean we store as value in detailedFieldDescriptions. */ @@ -106,43 +121,43 @@ // Static - + // Constructors -- - + public JawsEntityMetaData(JawsApplicationMetaData app, EntityMetaData ent) throws DeploymentException { // initialisation of this object goes as follows: // - constructor // - importXml() for standardjaws.xml and jaws.xml - + jawsApplication = app; entity = ent; ejbName = entity.getEjbName(); compositeKey = entity.getPrimKeyField() == null; - + try { primaryKeyClass = jawsApplication.getClassLoader().loadClass(entity.getPrimaryKeyClass()); } catch (ClassNotFoundException e) { throw new DeploymentException(could not load primary key class: + entity.getPrimaryKeyClass()); } - + // we replace the . by _ because some dbs die on it... // the table name may be overridden in importXml(jaws.xml) tableName = ejbName.replace('.', '_'); - + // build the
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: patriot1burke Date: 01/06/21 14:52:19 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: read-head is now defaultable in standardjboss.xml and jaws.xml Revision ChangesPath 1.10 +221 -206 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- JawsEntityMetaData.java 2001/06/06 01:07:40 1.9 +++ JawsEntityMetaData.java 2001/06/21 21:52:19 1.10 @@ -33,284 +33,299 @@ * * @see related * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a - * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a - * @version $Revision: 1.9 $ + * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a + * @author a href=mailto:[EMAIL PROTECTED];Bill Burke/a + * @version $Revision: 1.10 $ + * + * Revisions: + * 20010621 Bill Burke: made read-ahead defaultable in standardjboss.xml and jaws.xml */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { - // Constants - + // Constants - - // Attributes + // Attributes - // parent metadata structures - private JawsApplicationMetaData jawsApplication; - private EntityMetaData entity; + // parent metadata structures + private JawsApplicationMetaData jawsApplication; + private EntityMetaData entity; - // the name of the bean (same as entity.getEjbName()) - private String ejbName = null; + // the name of the bean (same as entity.getEjbName()) + private String ejbName = null; - // the name of the table to use for this bean - private String tableName = null; + // the name of the table to use for this bean + private String tableName = null; - // do we have to try and create the table on deployment? - private boolean createTable; + // do we have to try and create the table on deployment? + private boolean createTable; - // do we have to drop the table on undeployment? - private boolean removeTable; + // do we have to drop the table on undeployment? + private boolean removeTable; - // do we use tuned updates? - private boolean tunedUpdates; + // do we use tuned updates? + private boolean tunedUpdates; // do we use 'SELECT ... FOR UPDATE' syntax? private boolean selectForUpdate; - // is the bean read-only? - private boolean readOnly; - private int timeOut; + // is the bean read-only? + private boolean readOnly; - // should the table have a primary key constraint? - private boolean pkConstraint; + // make finders by default read-ahead? + private boolean readAhead; + + private int timeOut; + + // should the table have a primary key constraint? + private boolean pkConstraint; - // is the bean's primary key a composite object - private boolean compositeKey; + // is the bean's primary key a composite object + private boolean compositeKey; - // the class of the primary key - private Class primaryKeyClass; + // the class of the primary key + private Class primaryKeyClass; - // the fields we must persist for this bean - private Hashtable cmpFields = new Hashtable(); + // the fields we must persist for this bean + private Hashtable cmpFields = new Hashtable(); - // the fields that belong to the primary key (if composite) - private ArrayList pkFields = new ArrayList(); + // the fields that belong to the primary key (if composite) + private ArrayList pkFields = new ArrayList(); - // finders for this bean - private ArrayList finders = new ArrayList(); + // finders for this bean + private ArrayList finders = new ArrayList(); - /** - * Here we store the basename of all detailed fields in jaws.xml - * (e.g., data for data.categoryPK). - */ - private HashMap detailedFieldDescriptions = new HashMap(); + /** +* Here we store the basename of all detailed fields in jaws.xml +* (e.g., data for data.categoryPK). +*/ + private HashMap detailedFieldDescriptions = new HashMap(); - /** - * This is the Boolean we store as value in detailedFieldDescriptions. - */ -
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: danch Date: 01/06/05 18:07:40 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: Fixed bug caused by change in load operation associated with finder optimization. Revision ChangesPath 1.9 +3 -1 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- JawsEntityMetaData.java 2001/05/27 00:49:16 1.8 +++ JawsEntityMetaData.java 2001/06/06 01:07:40 1.9 @@ -34,7 +34,7 @@ * @see related * @author a href=[EMAIL PROTECTED]Sebastien Alborini/a * @author a href=mailto:[EMAIL PROTECTED];Dirk Zimmermann/a - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { // Constants - @@ -166,6 +166,8 @@ public Iterator getPkFields() { return pkFields.iterator(); } + public int getNumberOfPkFields() { return pkFields.size(); } + public String getTableName() { return tableName; } public boolean getCreateTable() { return createTable; } ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java
User: danch Date: 01/03/26 07:55:43 Modified:src/main/org/jboss/ejb/plugins/jaws/metadata JawsEntityMetaData.java Log: Bill Burke's patch to do sql 'select ... for update' for smoother locking at the DB level Revision ChangesPath 1.7 +10 -3 jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java Index: JawsEntityMetaData.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/metadata/JawsEntityMetaData.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- JawsEntityMetaData.java 2001/02/12 09:23:00 1.6 +++ JawsEntityMetaData.java 2001/03/26 15:55:43 1.7 @@ -34,7 +34,7 @@ * @see related * @author a href="[EMAIL PROTECTED]"Sebastien Alborini/a * @author a href="mailto:[EMAIL PROTECTED]"Dirk Zimmermann/a - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ */ public class JawsEntityMetaData extends MetaData implements XmlLoadable { // Constants - @@ -60,6 +60,9 @@ // do we use tuned updates? private boolean tunedUpdates; +// do we use 'SELECT ... FOR UPDATE' syntax? +private boolean selectForUpdate; + // is the bean read-only? private boolean readOnly; private int timeOut; @@ -194,8 +197,8 @@ public Iterator getEjbReferences() { return entity.getEjbReferences(); } public String getPrimKeyField() { return entity.getPrimKeyField(); } - + public boolean hasSelectForUpdate() { return selectForUpdate; } // XmlLoadable implementation @@ -227,7 +230,11 @@ // read only? If not provided, keep default. String roStr = getElementContent(getOptionalChild(element, "read-only")); if (roStr != null) readOnly = Boolean.valueOf(roStr).booleanValue(); - + + String sForUpStr = getElementContent(getOptionalChild(element, "select-for-update")); + if (sForUpStr != null) selectForUpdate = (Boolean.valueOf(sForUpStr).booleanValue()); + selectForUpdate = selectForUpdate !readOnly; + // read only timeout? String toStr = getElementContent(getOptionalChild(element, "time-out")); if (toStr != null) timeOut = Integer.valueOf(toStr).intValue(); ___ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development