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

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


/*  65 */     if (entity.getMetaData().hasRowLocking())
/*     */     {
/*  67 */       JDBCEntityPersistenceStore manager = entity.getManager();
/*  68 */       JDBCTypeFactory typeFactory = manager.getJDBCTypeFactory();
/*  69 */       JDBCTypeMappingMetaData typeMapping = typeFactory.getTypeMapping();
/*  70 */       JDBCFunctionMappingMetaData rowLockingTemplate = typeMapping.getRowLockingTemplate();
/*     */
/*  72 */       if (rowLockingTemplate == null)
/*     */       {
/*  74 */         throw new DeploymentException("Row locking template is not defined for mapping: " + typeMapping.getName());
/*     */       }
/*     */
/*  77 */       this.sql = rowLockingTemplate.getFunctionSql(new Object[] { selectColumns, entity.getQualifiedTableName(), whereColumns, null }, new StringBuffer()).toString();
/*     */     }
/*     */     else
/*     */     {
/*  83 */       this.sql = "select ";
/*  84 */       this.sql += selectColumns;
View Full Code Here

TOP

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

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.