Package org.jboss.metadata

Source Code of org.jboss.metadata.EntityMetaData

/*     */ package org.jboss.metadata;
/*     */
/*     */ import java.util.Collections;
/*     */ import java.util.Iterator;
/*     */ import java.util.List;
/*     */ import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
/*     */ import org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData;
/*     */ import org.jboss.metadata.ejb.jboss.JBossMetaData;
/*     */ import org.jboss.metadata.ejb.spec.CMPFieldsMetaData;
/*     */ import org.jboss.metadata.ejb.spec.QueriesMetaData;
/*     */ import org.jboss.metadata.javaee.spec.SecurityRoleRefsMetaData;
/*     */ import org.jboss.metadata.spi.MetaData;
/*     */
/*     */ @Deprecated
/*     */ public class EntityMetaData extends BeanMetaData
/*     */ {
/*     */   public static final int CMP_VERSION_1 = 1;
/*     */   public static final int CMP_VERSION_2 = 2;
/*     */   public static final String DEFAULT_ENTITY_INVOKER_PROXY_BINDING = "entity-unified-invoker";
/*     */   public static final String DEFAULT_CLUSTERED_ENTITY_INVOKER_PROXY_BINDING = "clustered-entity-rmi-invoker";
/*     */
/*     */   protected EntityMetaData(ApplicationMetaData app, JBossEnterpriseBeanMetaData delegate)
/*     */   {
/*  70 */     super(app, delegate);
/*     */   }
/*     */
/*     */   protected EntityMetaData(MetaData metaData)
/*     */   {
/*  82 */     super(metaData);
/*     */   }
/*     */
/*     */   public JBossEntityBeanMetaData getDelegate()
/*     */   {
/*  88 */     return (JBossEntityBeanMetaData)super.getDelegate();
/*     */   }
/*     */
/*     */   public String getHome()
/*     */   {
/*  94 */     return getDelegate().getHome();
/*     */   }
/*     */
/*     */   public String getLocal()
/*     */   {
/* 100 */     return getDelegate().getLocal();
/*     */   }
/*     */
/*     */   public String getLocalHome()
/*     */   {
/* 106 */     return getDelegate().getLocalHome();
/*     */   }
/*     */
/*     */   public String getRemote()
/*     */   {
/* 112 */     return getDelegate().getRemote();
/*     */   }
/*     */
/*     */   public String getServiceEndpoint()
/*     */   {
/* 118 */     return null;
/*     */   }
/*     */
/*     */   public boolean isCMP()
/*     */   {
/* 128 */     return getDelegate().isCMP();
/*     */   }
/*     */
/*     */   public boolean isCMP1x()
/*     */   {
/* 138 */     return getDelegate().isCMP1x();
/*     */   }
/*     */
/*     */   public boolean isCMP2x()
/*     */   {
/* 148 */     JBossEntityBeanMetaData entity = getDelegate();
/* 149 */     boolean isCMP2x = false;
/* 150 */     if (entity.getCmpVersion() != null)
/* 151 */       isCMP2x = entity.getCmpVersion().equals("2.x");
/*     */     else
/* 153 */       isCMP2x = entity.getEjbJarMetaData().isEJB2x();
/* 154 */     return isCMP2x;
/*     */   }
/*     */
/*     */   public boolean isBMP()
/*     */   {
/* 159 */     return getDelegate().isBMP();
/*     */   }
/*     */
/*     */   public String getPrimaryKeyClass()
/*     */   {
/* 169 */     return getDelegate().getPrimKeyClass();
/*     */   }
/*     */
/*     */   public boolean isReentrant()
/*     */   {
/* 179 */     return getDelegate().isReentrant();
/*     */   }
/*     */
/*     */   public String getAbstractSchemaName()
/*     */   {
/* 189 */     return getDelegate().getAbstractSchemaName();
/*     */   }
/*     */
/*     */   public Iterator<String> getCMPFields()
/*     */   {
/* 199 */     CMPFieldsMetaData result = getDelegate().getCmpFields();
/* 200 */     if (result != null)
/* 201 */       return new CMPFieldIterator(result);
/* 202 */     List list = Collections.emptyList();
/* 203 */     return list.iterator();
/*     */   }
/*     */
/*     */   public String getPrimKeyField()
/*     */   {
/* 213 */     return getDelegate().getPrimKeyField();
/*     */   }
/*     */
/*     */   public Iterator<QueryMetaData> getQueries()
/*     */   {
/* 218 */     QueriesMetaData result = getDelegate().getQueries();
/* 219 */     return new OldMetaDataIterator(result, org.jboss.metadata.ejb.spec.QueryMetaData.class, QueryMetaData.class);
/*     */   }
/*     */
/*     */   public String getJndiName()
/*     */   {
/* 225 */     return getDelegate().determineJndiName();
/*     */   }
/*     */
/*     */   public boolean isCallByValue()
/*     */   {
/* 231 */     return getDelegate().isCallByValue();
/*     */   }
/*     */
/*     */   public boolean isClustered()
/*     */   {
/* 237 */     return getDelegate().isClustered();
/*     */   }
/*     */
/*     */   public ClusterConfigMetaData getClusterConfigMetaData()
/*     */   {
/* 243 */     org.jboss.metadata.ejb.jboss.ClusterConfigMetaData config = getDelegate().determineClusterConfig();
/* 244 */     return new ClusterConfigMetaData(config);
/*     */   }
/*     */
/*     */   public boolean isReadOnly()
/*     */   {
/* 254 */     return getDelegate().isReadOnly();
/*     */   }
/*     */
/*     */   public Iterator<SecurityRoleRefMetaData> getSecurityRoleReferences()
/*     */   {
/* 260 */     SecurityRoleRefsMetaData roleRefs = getDelegate().getSecurityRoleRefs();
/* 261 */     return new OldMetaDataIterator(roleRefs, org.jboss.metadata.javaee.spec.SecurityRoleRefMetaData.class, SecurityRoleRefMetaData.class);
/*     */   }
/*     */
/*     */   public SecurityIdentityMetaData getEjbTimeoutIdentity()
/*     */   {
/* 267 */     throw new UnsupportedOperationException("Entity beans do not have an ejb timeout identity");
/*     */   }
/*     */
/*     */   public boolean doDistributedCacheInvalidations()
/*     */   {
/* 277 */     return getDelegate().isCacheInvalidation();
/*     */   }
/*     */
/*     */   public CacheInvalidationConfigMetaData getDistributedCacheInvalidationConfig()
/*     */   {
/* 287 */     org.jboss.metadata.ejb.jboss.CacheInvalidationConfigMetaData config = getDelegate().getCacheInvalidationConfig();
/* 288 */     if (config == null)
/* 289 */       return null;
/* 290 */     return new CacheInvalidationConfigMetaData(config);
/*     */   }
/*     */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.metadata.EntityMetaData
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.metadata.EntityMetaData

TOP
Copyright © 2018 www.massapi.com. 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.