Package org.jboss.ejb.plugins.cmp.jdbc.metadata

Examples of org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData


/*     */     {
/*  61 */       throw new DeploymentException("This entity-command cannot be used with composite primary keys!");
/*     */     }
/*  63 */     this.pkField = ((JDBCCMPFieldBridge2)pkFields[0]);
/*     */
/*  65 */     JDBCEntityCommandMetaData metadata = this.entityBridge.getMetaData().getEntityCommand();
/*  66 */     this.pkSql = metadata.getAttribute("pk-sql");
/*  67 */     if (this.pkSql == null)
/*     */     {
/*  69 */       throw new DeploymentException("pk-sql attribute must be set for entity " + this.entityBridge.getEntityName());
/*     */     }
/*  71 */     if (this.log.isDebugEnabled())
View Full Code Here


/*    */   public void init(JDBCStoreManager2 manager)
/*    */     throws DeploymentException
/*    */   {
/* 41 */     super.init(manager);
/*    */
/* 43 */     JDBCEntityCommandMetaData metadata = this.entityBridge.getMetaData().getEntityCommand();
/* 44 */     this.pkSql = metadata.getAttribute("pk-sql");
/* 45 */     if (this.pkSql == null)
/*    */     {
/* 47 */       this.pkSql = "CALL IDENTITY()";
/*    */     }
/*    */
View Full Code Here

/*    */   public void init(JDBCStoreManager2 manager)
/*    */     throws DeploymentException
/*    */   {
/* 40 */     super.init(manager);
/*    */
/* 42 */     JDBCEntityCommandMetaData metadata = this.entityBridge.getMetaData().getEntityCommand();
/* 43 */     String sequence = metadata.getAttribute("sequence");
/* 44 */     if (sequence == null) {
/* 45 */       sequence = this.entityBridge.getQualifiedTableName() + '_' + SQLUtil.getColumnNamesClause(this.pkField, new StringBuffer(20)) + "_seq";
/*    */     }
/*    */
/* 50 */     this.pkSql = ("SELECT currval('" + sequence + "')");
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.