Created
September 13, 2012 14:38
-
-
Save jfuerth/3714719 to your computer and use it in GitHub Desktop.
GeneratedErraiEntityManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.errai.jpa.client.local; | |
import com.google.gwt.core.client.UnsafeNativeLong; | |
import com.google.gwt.json.client.JSONObject; | |
import com.google.gwt.regexp.shared.RegExp; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
import java.sql.Time; | |
import java.sql.Timestamp; | |
import java.util.Comparator; | |
import java.util.Date; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.Set; | |
import javax.persistence.CascadeType; | |
import javax.persistence.PersistenceContextType; | |
import javax.persistence.TypedQuery; | |
import javax.persistence.metamodel.Attribute.PersistentAttributeType; | |
import javax.persistence.metamodel.Bindable.BindableType; | |
import javax.persistence.metamodel.ManagedType; | |
import javax.persistence.metamodel.PluralAttribute.CollectionType; | |
import javax.persistence.metamodel.Type; | |
import javax.persistence.metamodel.Type.PersistenceType; | |
import org.jboss.errai.common.client.api.WrappedPortable; | |
import org.jboss.errai.common.client.framework.Comparisons; | |
import org.jboss.errai.jpa.test.entity.Album; | |
import org.jboss.errai.jpa.test.entity.Artist; | |
import org.jboss.errai.jpa.test.entity.CascadeFrom; | |
import org.jboss.errai.jpa.test.entity.CascadeTo; | |
import org.jboss.errai.jpa.test.entity.EntityWithBigIntegerId; | |
import org.jboss.errai.jpa.test.entity.EntityWithBoxedIntId; | |
import org.jboss.errai.jpa.test.entity.EntityWithBoxedLongId; | |
import org.jboss.errai.jpa.test.entity.EntityWithPrimitiveIntId; | |
import org.jboss.errai.jpa.test.entity.EntityWithPrimitiveLongId; | |
import org.jboss.errai.jpa.test.entity.Format; | |
import org.jboss.errai.jpa.test.entity.Genre; | |
import org.jboss.errai.jpa.test.entity.StandaloneLifecycleListener; | |
import org.jboss.errai.jpa.test.entity.Zentity; | |
public class GeneratedErraiEntityManager extends ErraiEntityManager { | |
protected void populateMetamodel() { | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.CascadeFrom | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_CascadeFrom = new ErraiEntityType<CascadeFrom>("CascadeFrom", CascadeFrom.class) { | |
public CascadeFrom newInstance() { | |
return new CascadeFrom(); | |
} | |
public void deliverPrePersist(CascadeFrom targetEntity) { | |
} | |
public void deliverPostPersist(CascadeFrom targetEntity) { | |
} | |
public void deliverPreUpdate(CascadeFrom targetEntity) { | |
} | |
public void deliverPostUpdate(CascadeFrom targetEntity) { | |
} | |
public void deliverPreRemove(CascadeFrom targetEntity) { | |
} | |
public void deliverPostRemove(CascadeFrom targetEntity) { | |
} | |
public void deliverPostLoad(CascadeFrom targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_all(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::all; | |
}-*/; | |
private native void _1622783002_all(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::all = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return true; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_all((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "all"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_all((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_persist(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::persist; | |
}-*/; | |
private native void _1622783002_persist(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::persist = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return arg0 == CascadeType.PERSIST; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_persist((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "persist"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_persist((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
@UnsafeNativeLong private native long _1622783002_id(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::id; | |
}-*/; | |
@UnsafeNativeLong private native void _1622783002_id(CascadeFrom instance, long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_id((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_id((CascadeFrom) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_refresh(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::refresh; | |
}-*/; | |
private native void _1622783002_refresh(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::refresh = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return arg0 == CascadeType.REFRESH; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_refresh((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "refresh"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_refresh((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_detach(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::detach; | |
}-*/; | |
private native void _1622783002_detach(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::detach = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return arg0 == CascadeType.DETACH; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_detach((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "detach"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_detach((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_merge(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::merge; | |
}-*/; | |
private native void _1622783002_merge(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::merge = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return arg0 == CascadeType.MERGE; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_merge((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "merge"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_merge((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_none(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::none; | |
}-*/; | |
private native void _1622783002_none(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::none = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return false; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_none((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "none"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_none((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_CascadeFrom.addAttribute(new ErraiSingularAttribute() { | |
private native CascadeTo _1622783002_remove(CascadeFrom instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::remove; | |
}-*/; | |
private native void _1622783002_remove(CascadeFrom instance, CascadeTo value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeFrom::remove = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return arg0 == CascadeType.REMOVE; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1622783002_remove((CascadeFrom) arg0); | |
} | |
public Class getBindableJavaType() { | |
return CascadeTo.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeFrom; | |
} | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public String getName() { | |
return "remove"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return CascadeTo.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1622783002_remove((CascadeFrom) arg0, (CascadeTo) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_CascadeFrom); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.EntityWithBoxedLongId | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_EntityWithBoxedLongId = new ErraiEntityType<EntityWithBoxedLongId>("EntityWithBoxedLongId", EntityWithBoxedLongId.class) { | |
public EntityWithBoxedLongId newInstance() { | |
return new EntityWithBoxedLongId(); | |
} | |
public void deliverPrePersist(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPostPersist(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPreUpdate(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPostUpdate(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPreRemove(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPostRemove(EntityWithBoxedLongId targetEntity) { | |
} | |
public void deliverPostLoad(EntityWithBoxedLongId targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_EntityWithBoxedLongId.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native Long _1933197972_id(EntityWithBoxedLongId instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.EntityWithBoxedLongId::id; | |
}-*/; | |
private native void _1933197972_id(EntityWithBoxedLongId instance, Long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.EntityWithBoxedLongId::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1933197972_id((EntityWithBoxedLongId) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_EntityWithBoxedLongId; | |
} | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1933197972_id((EntityWithBoxedLongId) arg0, (Long) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_EntityWithBoxedLongId); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.EntityWithPrimitiveLongId | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveLongId = new ErraiEntityType<EntityWithPrimitiveLongId>("EntityWithPrimitiveLongId", EntityWithPrimitiveLongId.class) { | |
public EntityWithPrimitiveLongId newInstance() { | |
return new EntityWithPrimitiveLongId(); | |
} | |
public void deliverPrePersist(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPostPersist(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPreUpdate(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPostUpdate(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPreRemove(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPostRemove(EntityWithPrimitiveLongId targetEntity) { | |
} | |
public void deliverPostLoad(EntityWithPrimitiveLongId targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveLongId.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
@UnsafeNativeLong private native long _963143825_id(EntityWithPrimitiveLongId instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.EntityWithPrimitiveLongId::id; | |
}-*/; | |
@UnsafeNativeLong private native void _963143825_id(EntityWithPrimitiveLongId instance, long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.EntityWithPrimitiveLongId::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _963143825_id((EntityWithPrimitiveLongId) arg0); | |
} | |
public Class getBindableJavaType() { | |
return long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveLongId; | |
} | |
public Class getJavaType() { | |
return long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_963143825_id((EntityWithPrimitiveLongId) arg0, (Long) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveLongId); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.EntityWithBigIntegerId | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_EntityWithBigIntegerId = new ErraiEntityType<EntityWithBigIntegerId>("EntityWithBigIntegerId", EntityWithBigIntegerId.class) { | |
public EntityWithBigIntegerId newInstance() { | |
return new EntityWithBigIntegerId(); | |
} | |
public void deliverPrePersist(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPostPersist(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPreUpdate(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPostUpdate(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPreRemove(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPostRemove(EntityWithBigIntegerId targetEntity) { | |
} | |
public void deliverPostLoad(EntityWithBigIntegerId targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_EntityWithBigIntegerId.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<BigInteger> valueGenerator = new BigIntegerIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native BigInteger _1202114214_id(EntityWithBigIntegerId instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.EntityWithBigIntegerId::id; | |
}-*/; | |
private native void _1202114214_id(EntityWithBigIntegerId instance, BigInteger value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.EntityWithBigIntegerId::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1202114214_id((EntityWithBigIntegerId) arg0); | |
} | |
public Class getBindableJavaType() { | |
return BigInteger.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_EntityWithBigIntegerId; | |
} | |
public Class getJavaType() { | |
return BigInteger.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return BigInteger.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1202114214_id((EntityWithBigIntegerId) arg0, (BigInteger) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_EntityWithBigIntegerId); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.Zentity | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_Zentity = new ErraiEntityType<Zentity>("Zentity", Zentity.class) { | |
public Zentity newInstance() { | |
return new Zentity(); | |
} | |
public void deliverPrePersist(Zentity targetEntity) { | |
} | |
public void deliverPostPersist(Zentity targetEntity) { | |
} | |
public void deliverPreUpdate(Zentity targetEntity) { | |
} | |
public void deliverPostUpdate(Zentity targetEntity) { | |
} | |
public void deliverPreRemove(Zentity targetEntity) { | |
} | |
public void deliverPostRemove(Zentity targetEntity) { | |
} | |
public void deliverPostLoad(Zentity targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Timestamp _$61019527_sqlTimestamp(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlTimestamp; | |
}-*/; | |
private native void _$61019527_sqlTimestamp(Zentity instance, Timestamp value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlTimestamp = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_sqlTimestamp((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Timestamp.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Timestamp.class; | |
} | |
public String getName() { | |
return "sqlTimestamp"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Timestamp.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_sqlTimestamp((Zentity) arg0, (Timestamp) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Byte _$61019527_boxedByte(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedByte; | |
}-*/; | |
private native void _$61019527_boxedByte(Zentity instance, Byte value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedByte = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedByte((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Byte.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Byte.class; | |
} | |
public String getName() { | |
return "boxedByte"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Byte.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedByte((Zentity) arg0, (Byte) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native BigInteger _$61019527_bigInteger(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::bigInteger; | |
}-*/; | |
private native void _$61019527_bigInteger(Zentity instance, BigInteger value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::bigInteger = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_bigInteger((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return BigInteger.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return BigInteger.class; | |
} | |
public String getName() { | |
return "bigInteger"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return BigInteger.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_bigInteger((Zentity) arg0, (BigInteger) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Integer _$61019527_boxedInt(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedInt; | |
}-*/; | |
private native void _$61019527_boxedInt(Zentity instance, Integer value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedInt = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedInt((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Integer.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Integer.class; | |
} | |
public String getName() { | |
return "boxedInt"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Integer.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedInt((Zentity) arg0, (Integer) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Date _$61019527_date(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::date; | |
}-*/; | |
private native void _$61019527_date(Zentity instance, Date value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::date = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_date((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Date.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Date.class; | |
} | |
public String getName() { | |
return "date"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Date.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_date((Zentity) arg0, (Date) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Float _$61019527_boxedFloat(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedFloat; | |
}-*/; | |
private native void _$61019527_boxedFloat(Zentity instance, Float value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedFloat = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedFloat((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Float.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Float.class; | |
} | |
public String getName() { | |
return "boxedFloat"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Float.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedFloat((Zentity) arg0, (Float) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native char[] _$61019527_primitiveCharArray(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveCharArray; | |
}-*/; | |
private native void _$61019527_primitiveCharArray(Zentity instance, char[] value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveCharArray = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveCharArray((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return char[].class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return char[].class; | |
} | |
public String getName() { | |
return "primitiveCharArray"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return char[].class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveCharArray((Zentity) arg0, (char[]) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native double _$61019527_primitiveDouble(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveDouble; | |
}-*/; | |
private native void _$61019527_primitiveDouble(Zentity instance, double value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveDouble = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveDouble((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return double.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return double.class; | |
} | |
public String getName() { | |
return "primitiveDouble"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return double.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveDouble((Zentity) arg0, (Double) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native int _$61019527_primitiveInt(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveInt; | |
}-*/; | |
private native void _$61019527_primitiveInt(Zentity instance, int value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveInt = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveInt((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return int.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return int.class; | |
} | |
public String getName() { | |
return "primitiveInt"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return int.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveInt((Zentity) arg0, (Integer) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native byte _$61019527_primitiveByte(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveByte; | |
}-*/; | |
private native void _$61019527_primitiveByte(Zentity instance, byte value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveByte = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveByte((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return byte.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return byte.class; | |
} | |
public String getName() { | |
return "primitiveByte"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return byte.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveByte((Zentity) arg0, (Byte) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
@UnsafeNativeLong private native long _$61019527_primitiveLong(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveLong; | |
}-*/; | |
@UnsafeNativeLong private native void _$61019527_primitiveLong(Zentity instance, long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveLong = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveLong((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return long.class; | |
} | |
public String getName() { | |
return "primitiveLong"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveLong((Zentity) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native BigDecimal _$61019527_bigDecimal(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::bigDecimal; | |
}-*/; | |
private native void _$61019527_bigDecimal(Zentity instance, BigDecimal value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::bigDecimal = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_bigDecimal((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return BigDecimal.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return BigDecimal.class; | |
} | |
public String getName() { | |
return "bigDecimal"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return BigDecimal.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_bigDecimal((Zentity) arg0, (BigDecimal) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Boolean _$61019527_boxedBool(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedBool; | |
}-*/; | |
private native void _$61019527_boxedBool(Zentity instance, Boolean value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedBool = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedBool((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Boolean.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Boolean.class; | |
} | |
public String getName() { | |
return "boxedBool"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Boolean.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedBool((Zentity) arg0, (Boolean) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native PersistenceContextType _$61019527_enumeration(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::enumeration; | |
}-*/; | |
private native void _$61019527_enumeration(Zentity instance, PersistenceContextType value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::enumeration = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_enumeration((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return PersistenceContextType.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return PersistenceContextType.class; | |
} | |
public String getName() { | |
return "enumeration"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return PersistenceContextType.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_enumeration((Zentity) arg0, (PersistenceContextType) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Time _$61019527_sqlTime(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlTime; | |
}-*/; | |
private native void _$61019527_sqlTime(Zentity instance, Time value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlTime = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_sqlTime((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Time.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Time.class; | |
} | |
public String getName() { | |
return "sqlTime"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Time.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_sqlTime((Zentity) arg0, (Time) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Byte[] _$61019527_boxedByteArray(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedByteArray; | |
}-*/; | |
private native void _$61019527_boxedByteArray(Zentity instance, Byte[] value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedByteArray = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedByteArray((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Byte[].class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Byte[].class; | |
} | |
public String getName() { | |
return "boxedByteArray"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Byte[].class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedByteArray((Zentity) arg0, (Byte[]) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Long _$61019527_boxedLong(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedLong; | |
}-*/; | |
private native void _$61019527_boxedLong(Zentity instance, Long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedLong = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedLong((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public String getName() { | |
return "boxedLong"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedLong((Zentity) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native String _$61019527_string(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::string; | |
}-*/; | |
private native void _$61019527_string(Zentity instance, String value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::string = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_string((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return String.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return String.class; | |
} | |
public String getName() { | |
return "string"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return String.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_string((Zentity) arg0, (String) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native float _$61019527_primitiveFloat(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveFloat; | |
}-*/; | |
private native void _$61019527_primitiveFloat(Zentity instance, float value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveFloat = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveFloat((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return float.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return float.class; | |
} | |
public String getName() { | |
return "primitiveFloat"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return float.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveFloat((Zentity) arg0, (Float) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Short _$61019527_boxedShort(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedShort; | |
}-*/; | |
private native void _$61019527_boxedShort(Zentity instance, Short value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedShort = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedShort((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Short.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Short.class; | |
} | |
public String getName() { | |
return "boxedShort"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Short.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedShort((Zentity) arg0, (Short) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native byte[] _$61019527_primitiveByteArray(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveByteArray; | |
}-*/; | |
private native void _$61019527_primitiveByteArray(Zentity instance, byte[] value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveByteArray = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveByteArray((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return byte[].class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return byte[].class; | |
} | |
public String getName() { | |
return "primitiveByteArray"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return byte[].class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveByteArray((Zentity) arg0, (byte[]) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native char _$61019527_primitiveChar(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveChar; | |
}-*/; | |
private native void _$61019527_primitiveChar(Zentity instance, char value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveChar = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveChar((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return char.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return char.class; | |
} | |
public String getName() { | |
return "primitiveChar"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return char.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveChar((Zentity) arg0, (Character) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Character[] _$61019527_boxedCharArray(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedCharArray; | |
}-*/; | |
private native void _$61019527_boxedCharArray(Zentity instance, Character[] value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedCharArray = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedCharArray((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Character[].class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Character[].class; | |
} | |
public String getName() { | |
return "boxedCharArray"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Character[].class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedCharArray((Zentity) arg0, (Character[]) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native Long _$61019527_id(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::id; | |
}-*/; | |
private native void _$61019527_id(Zentity instance, Long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_id((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_id((Zentity) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Double _$61019527_boxedDouble(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedDouble; | |
}-*/; | |
private native void _$61019527_boxedDouble(Zentity instance, Double value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedDouble = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedDouble((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Double.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Double.class; | |
} | |
public String getName() { | |
return "boxedDouble"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Double.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedDouble((Zentity) arg0, (Double) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native boolean _$61019527_primitiveBool(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveBool; | |
}-*/; | |
private native void _$61019527_primitiveBool(Zentity instance, boolean value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveBool = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveBool((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return boolean.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return boolean.class; | |
} | |
public String getName() { | |
return "primitiveBool"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return boolean.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveBool((Zentity) arg0, (Boolean) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native Character _$61019527_boxedChar(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedChar; | |
}-*/; | |
private native void _$61019527_boxedChar(Zentity instance, Character value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::boxedChar = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_boxedChar((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Character.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return Character.class; | |
} | |
public String getName() { | |
return "boxedChar"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Character.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_boxedChar((Zentity) arg0, (Character) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native short _$61019527_primitiveShort(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveShort; | |
}-*/; | |
private native void _$61019527_primitiveShort(Zentity instance, short value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::primitiveShort = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_primitiveShort((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return short.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return short.class; | |
} | |
public String getName() { | |
return "primitiveShort"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return short.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_primitiveShort((Zentity) arg0, (Short) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Zentity.addAttribute(new ErraiSingularAttribute() { | |
private native java.sql.Date _$61019527_sqlDate(Zentity instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlDate; | |
}-*/; | |
private native void _$61019527_sqlDate(Zentity instance, java.sql.Date value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Zentity::sqlDate = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$61019527_sqlDate((Zentity) arg0); | |
} | |
public Class getBindableJavaType() { | |
return java.sql.Date.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Zentity; | |
} | |
public Class getJavaType() { | |
return java.sql.Date.class; | |
} | |
public String getName() { | |
return "sqlDate"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return java.sql.Date.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$61019527_sqlDate((Zentity) arg0, (java.sql.Date) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_Zentity); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.CascadeTo | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_CascadeTo = new ErraiEntityType<CascadeTo>("CascadeTo", CascadeTo.class) { | |
public CascadeTo newInstance() { | |
return new CascadeTo(); | |
} | |
public void deliverPrePersist(CascadeTo targetEntity) { | |
} | |
public void deliverPostPersist(CascadeTo targetEntity) { | |
} | |
public void deliverPreUpdate(CascadeTo targetEntity) { | |
} | |
public void deliverPostUpdate(CascadeTo targetEntity) { | |
} | |
public void deliverPreRemove(CascadeTo targetEntity) { | |
} | |
public void deliverPostRemove(CascadeTo targetEntity) { | |
} | |
public void deliverPostLoad(CascadeTo targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_CascadeTo.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
@UnsafeNativeLong private native long _1378223851_id(CascadeTo instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.CascadeTo::id; | |
}-*/; | |
@UnsafeNativeLong private native void _1378223851_id(CascadeTo instance, long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.CascadeTo::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1378223851_id((CascadeTo) arg0); | |
} | |
public Class getBindableJavaType() { | |
return long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_CascadeTo; | |
} | |
public Class getJavaType() { | |
return long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1378223851_id((CascadeTo) arg0, (Long) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_CascadeTo); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.EntityWithPrimitiveIntId | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveIntId = new ErraiEntityType<EntityWithPrimitiveIntId>("EntityWithPrimitiveIntId", EntityWithPrimitiveIntId.class) { | |
public EntityWithPrimitiveIntId newInstance() { | |
return new EntityWithPrimitiveIntId(); | |
} | |
public void deliverPrePersist(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPostPersist(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPreUpdate(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPostUpdate(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPreRemove(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPostRemove(EntityWithPrimitiveIntId targetEntity) { | |
} | |
public void deliverPostLoad(EntityWithPrimitiveIntId targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveIntId.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Integer> valueGenerator = new IntIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native int _$1495746992_id(EntityWithPrimitiveIntId instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.EntityWithPrimitiveIntId::id; | |
}-*/; | |
private native void _$1495746992_id(EntityWithPrimitiveIntId instance, int value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.EntityWithPrimitiveIntId::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$1495746992_id((EntityWithPrimitiveIntId) arg0); | |
} | |
public Class getBindableJavaType() { | |
return int.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveIntId; | |
} | |
public Class getJavaType() { | |
return int.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return int.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$1495746992_id((EntityWithPrimitiveIntId) arg0, (Integer) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_EntityWithPrimitiveIntId); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.EntityWithBoxedIntId | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_EntityWithBoxedIntId = new ErraiEntityType<EntityWithBoxedIntId>("EntityWithBoxedIntId", EntityWithBoxedIntId.class) { | |
public EntityWithBoxedIntId newInstance() { | |
return new EntityWithBoxedIntId(); | |
} | |
public void deliverPrePersist(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPostPersist(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPreUpdate(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPostUpdate(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPreRemove(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPostRemove(EntityWithBoxedIntId targetEntity) { | |
} | |
public void deliverPostLoad(EntityWithBoxedIntId targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_EntityWithBoxedIntId.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Integer> valueGenerator = new IntIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native Integer _$1741549587_id(EntityWithBoxedIntId instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.EntityWithBoxedIntId::id; | |
}-*/; | |
private native void _$1741549587_id(EntityWithBoxedIntId instance, Integer value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.EntityWithBoxedIntId::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$1741549587_id((EntityWithBoxedIntId) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Integer.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_EntityWithBoxedIntId; | |
} | |
public Class getJavaType() { | |
return Integer.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Integer.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$1741549587_id((EntityWithBoxedIntId) arg0, (Integer) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_EntityWithBoxedIntId); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.Album | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_Album = new ErraiEntityType<Album>("Album", Album.class) { | |
public Album newInstance() { | |
return new Album(); | |
} | |
public native void _1353580299_prePersist(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::prePersist()(); | |
}-*/; | |
public void deliverPrePersist(Album targetEntity) { | |
new StandaloneLifecycleListener().albumPrePersist(targetEntity); | |
_1353580299_prePersist(targetEntity); | |
} | |
public native void _$407684075_albumPostPersist(StandaloneLifecycleListener instance, Album a0) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.StandaloneLifecycleListener::albumPostPersist(Lorg/jboss/errai/jpa/test/entity/Album;)(a0); | |
}-*/; | |
public native void _1353580299_postPersist(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::postPersist()(); | |
}-*/; | |
public void deliverPostPersist(Album targetEntity) { | |
_$407684075_albumPostPersist(new StandaloneLifecycleListener(), targetEntity); | |
_1353580299_postPersist(targetEntity); | |
} | |
public native void _$407684075_albumPreUpdate(StandaloneLifecycleListener instance, Album a0) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.StandaloneLifecycleListener::albumPreUpdate(Lorg/jboss/errai/jpa/test/entity/Album;)(a0); | |
}-*/; | |
public native void _1353580299_preUpdate(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::preUpdate()(); | |
}-*/; | |
public void deliverPreUpdate(Album targetEntity) { | |
_$407684075_albumPreUpdate(new StandaloneLifecycleListener(), targetEntity); | |
_1353580299_preUpdate(targetEntity); | |
} | |
public native void _1353580299_postUpdate(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::postUpdate()(); | |
}-*/; | |
public void deliverPostUpdate(Album targetEntity) { | |
new StandaloneLifecycleListener().albumPostUpdate(targetEntity); | |
_1353580299_postUpdate(targetEntity); | |
} | |
public native void _1353580299_preRemove(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::preRemove()(); | |
}-*/; | |
public void deliverPreRemove(Album targetEntity) { | |
new StandaloneLifecycleListener().albumPreRemove(targetEntity); | |
_1353580299_preRemove(targetEntity); | |
} | |
public native void _1353580299_postRemove(Album instance) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::postRemove()(); | |
}-*/; | |
public void deliverPostRemove(Album targetEntity) { | |
new StandaloneLifecycleListener().albumPostRemove(targetEntity); | |
_1353580299_postRemove(targetEntity); | |
} | |
public native void _$407684075_albumPostLoad(StandaloneLifecycleListener instance, Album a0) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.StandaloneLifecycleListener::albumPostLoad(Lorg/jboss/errai/jpa/test/entity/Album;)(a0); | |
}-*/; | |
public void deliverPostLoad(Album targetEntity) { | |
_$407684075_albumPostLoad(new StandaloneLifecycleListener(), targetEntity); | |
targetEntity.postLoad(); | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_Album.addAttribute(new ErraiSingularAttribute() { | |
private native String _1353580299_name(Album instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Album::name; | |
}-*/; | |
private native void _1353580299_name(Album instance, String value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::name = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1353580299_name((Album) arg0); | |
} | |
public Class getBindableJavaType() { | |
return String.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Album; | |
} | |
public Class getJavaType() { | |
return String.class; | |
} | |
public String getName() { | |
return "name"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return String.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1353580299_name((Album) arg0, (String) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Album.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Long> valueGenerator = new LongIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native Long _1353580299_id(Album instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Album::id; | |
}-*/; | |
private native void _1353580299_id(Album instance, Long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1353580299_id((Album) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Album; | |
} | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1353580299_id((Album) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Album.addAttribute(new ErraiSingularAttribute() { | |
private native Artist _1353580299_artist(Album instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Album::artist; | |
}-*/; | |
private native void _1353580299_artist(Album instance, Artist value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::artist = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return false; | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1353580299_artist((Album) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Artist.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Album; | |
} | |
public Class getJavaType() { | |
return Artist.class; | |
} | |
public String getName() { | |
return "artist"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.MANY_TO_ONE; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Artist.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1353580299_artist((Album) arg0, (Artist) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Album.addAttribute(new ErraiSingularAttribute() { | |
private native Format _1353580299_format(Album instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Album::format; | |
}-*/; | |
private native void _1353580299_format(Album instance, Format value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::format = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1353580299_format((Album) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Format.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Album; | |
} | |
public Class getJavaType() { | |
return Format.class; | |
} | |
public String getName() { | |
return "format"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Format.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1353580299_format((Album) arg0, (Format) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Album.addAttribute(new ErraiSingularAttribute() { | |
private native java.sql.Date _1353580299_releaseDate(Album instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Album::releaseDate; | |
}-*/; | |
private native void _1353580299_releaseDate(Album instance, java.sql.Date value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Album::releaseDate = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1353580299_releaseDate((Album) arg0); | |
} | |
public Class getBindableJavaType() { | |
return java.sql.Date.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Album; | |
} | |
public Class getJavaType() { | |
return java.sql.Date.class; | |
} | |
public String getName() { | |
return "releaseDate"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return java.sql.Date.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1353580299_releaseDate((Album) arg0, (java.sql.Date) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_Album); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.Genre | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_Genre = new ErraiEntityType<Genre>("Genre", Genre.class) { | |
public Genre newInstance() { | |
return new Genre(); | |
} | |
public void deliverPrePersist(Genre targetEntity) { | |
} | |
public void deliverPostPersist(Genre targetEntity) { | |
} | |
public void deliverPreUpdate(Genre targetEntity) { | |
} | |
public void deliverPostUpdate(Genre targetEntity) { | |
} | |
public void deliverPreRemove(Genre targetEntity) { | |
} | |
public void deliverPostRemove(Genre targetEntity) { | |
} | |
public void deliverPostLoad(Genre targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_Genre.addAttribute(new ErraiSingularAttribute() { | |
private native String _1358924319_name(Genre instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Genre::name; | |
}-*/; | |
private native void _1358924319_name(Genre instance, String value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Genre::name = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1358924319_name((Genre) arg0); | |
} | |
public Class getBindableJavaType() { | |
return String.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Genre; | |
} | |
public Class getJavaType() { | |
return String.class; | |
} | |
public String getName() { | |
return "name"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return String.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1358924319_name((Genre) arg0, (String) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Genre.addAttribute(new ErraiSingularAttribute() { | |
private Iterator<Integer> valueGenerator = new IntIdGenerator(GeneratedErraiEntityManager.this, this); | |
private native int _1358924319_id(Genre instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Genre::id; | |
}-*/; | |
private native void _1358924319_id(Genre instance, int value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Genre::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _1358924319_id((Genre) arg0); | |
} | |
public Class getBindableJavaType() { | |
return int.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Genre; | |
} | |
public Class getJavaType() { | |
return int.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return int.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
return valueGenerator; | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return true; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_1358924319_id((Genre) arg0, (Integer) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_Genre); | |
// ** | |
// ** EntityType for org.jboss.errai.jpa.test.entity.Artist | |
// ** | |
final ErraiEntityType et_org_jboss_errai_jpa_test_entity_Artist = new ErraiEntityType<Artist>("Artist", Artist.class) { | |
public Artist newInstance() { | |
return new Artist(); | |
} | |
public void deliverPrePersist(Artist targetEntity) { | |
} | |
public void deliverPostPersist(Artist targetEntity) { | |
} | |
public void deliverPreUpdate(Artist targetEntity) { | |
} | |
public void deliverPostUpdate(Artist targetEntity) { | |
} | |
public void deliverPreRemove(Artist targetEntity) { | |
} | |
public void deliverPostRemove(Artist targetEntity) { | |
} | |
public void deliverPostLoad(Artist targetEntity) { | |
} | |
}; | |
et_org_jboss_errai_jpa_test_entity_Artist.addAttribute(new ErraiSingularAttribute() { | |
private native String _$982617557_name(Artist instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Artist::name; | |
}-*/; | |
private native void _$982617557_name(Artist instance, String value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Artist::name = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$982617557_name((Artist) arg0); | |
} | |
public Class getBindableJavaType() { | |
return String.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Artist; | |
} | |
public Class getJavaType() { | |
return String.class; | |
} | |
public String getName() { | |
return "name"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return String.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return false; | |
} | |
public boolean isOptional() { | |
return true; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$982617557_name((Artist) arg0, (String) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Artist.addAttribute(new ErraiSingularAttribute() { | |
private native Long _$982617557_id(Artist instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Artist::id; | |
}-*/; | |
private native void _$982617557_id(Artist instance, Long value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Artist::id = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
throw new UnsupportedOperationException("Not a relationship attribute"); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$982617557_id((Artist) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Long.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.SINGULAR_ATTRIBUTE; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Artist; | |
} | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public String getName() { | |
return "id"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.BASIC; | |
} | |
public Type getType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Long.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.BASIC; | |
} | |
}; | |
} | |
public Iterator getValueGenerator() { | |
throw new UnsupportedOperationException("Not a generated attribute"); | |
} | |
public boolean isAssociation() { | |
return false; | |
} | |
public boolean isCollection() { | |
return false; | |
} | |
public boolean isGeneratedValue() { | |
return false; | |
} | |
public boolean isId() { | |
return true; | |
} | |
public boolean isOptional() { | |
return false; | |
} | |
public boolean isVersion() { | |
return false; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$982617557_id((Artist) arg0, (Long) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Artist.addAttribute(new ErraiPluralAttribute() { | |
private native Set _$982617557_albums(Artist instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Artist::albums; | |
}-*/; | |
private native void _$982617557_albums(Artist instance, Set value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Artist::albums = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return true; | |
} | |
public Object createEmptyCollection() { | |
return new HashSet(); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$982617557_albums((Artist) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Album.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.PLURAL_ATTRIBUTE; | |
} | |
public CollectionType getCollectionType() { | |
return CollectionType.SET; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Artist; | |
} | |
public Type getElementType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Album.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Class getJavaType() { | |
return Set.class; | |
} | |
public String getName() { | |
return "albums"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_MANY; | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return true; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$982617557_albums((Artist) arg0, (Set) arg1); | |
} | |
}); | |
et_org_jboss_errai_jpa_test_entity_Artist.addAttribute(new ErraiPluralAttribute() { | |
private native Set _$982617557_genres(Artist instance) /*-{ | |
return instance.@org.jboss.errai.jpa.test.entity.Artist::genres; | |
}-*/; | |
private native void _$982617557_genres(Artist instance, Set value) /*-{ | |
instance.@org.jboss.errai.jpa.test.entity.Artist::genres = value; | |
}-*/; | |
public boolean cascades(CascadeType arg0) { | |
return (arg0 == CascadeType.MERGE) || (arg0 == CascadeType.PERSIST); | |
} | |
public Object createEmptyCollection() { | |
return new HashSet(); | |
} | |
public Object get(Object arg0) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
return _$982617557_genres((Artist) arg0); | |
} | |
public Class getBindableJavaType() { | |
return Genre.class; | |
} | |
public BindableType getBindableType() { | |
return BindableType.PLURAL_ATTRIBUTE; | |
} | |
public CollectionType getCollectionType() { | |
return CollectionType.SET; | |
} | |
public ManagedType getDeclaringType() { | |
return et_org_jboss_errai_jpa_test_entity_Artist; | |
} | |
public Type getElementType() { | |
return new Type() { | |
public Class getJavaType() { | |
return Genre.class; | |
} | |
public PersistenceType getPersistenceType() { | |
return PersistenceType.ENTITY; | |
} | |
}; | |
} | |
public Class getJavaType() { | |
return Set.class; | |
} | |
public String getName() { | |
return "genres"; | |
} | |
public PersistentAttributeType getPersistentAttributeType() { | |
return PersistentAttributeType.ONE_TO_MANY; | |
} | |
public boolean isAssociation() { | |
return true; | |
} | |
public boolean isCollection() { | |
return true; | |
} | |
public void set(Object arg0, Object arg1) { | |
if (arg0 instanceof WrappedPortable) { | |
arg0 = ((WrappedPortable) arg0).unwrap(); | |
} | |
_$982617557_genres((Artist) arg0, (Set) arg1); | |
} | |
}); | |
metamodel.addEntityType(et_org_jboss_errai_jpa_test_entity_Artist); | |
metamodel.freeze(); | |
} | |
protected void populateNamedQueries() { | |
// ** | |
// ** NamedQuery "selectAlbumByName" | |
// ** SELECT a FROM Album a WHERE a.name=:name | |
// ** | |
super.namedQueries.put("selectAlbumByName", new TypedQueryFactory(this, Album.class, new ErraiParameter[] { new ErraiParameter("name", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("name"), String.class), getParameterValue("name")); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityPrimitiveBoolean" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveBool = :b | |
// ** | |
super.namedQueries.put("zentityPrimitiveBoolean", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("b", 0, Boolean.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveBool"), Boolean.class), getParameterValue("b")); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityString" | |
// ** SELECT z FROM Zentity z WHERE z.string = :s | |
// ** | |
super.namedQueries.put("zentityString", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("s", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), getParameterValue("s")); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralString" | |
// ** SELECT z FROM Zentity z WHERE z.string = 'D''oh!' | |
// ** | |
super.namedQueries.put("zentityLiteralString", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "D'oh!"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralDate" | |
// ** SELECT z FROM Zentity z WHERE z.date = '2012-06-22' | |
// ** | |
super.namedQueries.put("zentityLiteralDate", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("date"), Date.class), "2012-06-22"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralLong" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveLong = 11223344L | |
// ** | |
super.namedQueries.put("zentityLiteralLong", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveLong"), Long.class), 11223344L); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralInt" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveInt = -55443322 | |
// ** | |
super.namedQueries.put("zentityLiteralInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), - 5.5443322E7d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralShort" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveShort = -1234 | |
// ** | |
super.namedQueries.put("zentityLiteralShort", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveShort"), Double.class), - 1234.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralChar" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveChar = 'c' | |
// ** | |
super.namedQueries.put("zentityLiteralChar", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveChar"), String.class), "c"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralByte" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveByte = -5 | |
// ** | |
super.namedQueries.put("zentityLiteralByte", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveByte"), Double.class), - 5.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralDouble" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveDouble = 123.45 | |
// ** | |
super.namedQueries.put("zentityLiteralDouble", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveDouble"), Double.class), 123.45d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralFloat" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveFloat = -1234.5f | |
// ** | |
super.namedQueries.put("zentityLiteralFloat", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveFloat"), Double.class), - 1234.5d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralDoubleToInt" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveDouble = 12345 | |
// ** | |
super.namedQueries.put("zentityLiteralDoubleToInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveDouble"), Double.class), 12345.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralBoolTrue" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveBool = true | |
// ** | |
super.namedQueries.put("zentityLiteralBoolTrue", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveBool"), Boolean.class), true); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralBoolFalse" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveBool = false | |
// ** | |
super.namedQueries.put("zentityLiteralBoolFalse", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveBool"), Boolean.class), false); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralNull" | |
// ** SELECT z FROM Zentity z WHERE z.string = null | |
// ** | |
super.namedQueries.put("zentityLiteralNull", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return JsonUtil.basicValueFromJson(candidate.get("string"), String.class) == null; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLiteralNotNull" | |
// ** SELECT z FROM Zentity z WHERE z.string != null | |
// ** | |
super.namedQueries.put("zentityLiteralNotNull", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return JsonUtil.basicValueFromJson(candidate.get("string"), String.class) != null; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "albumLiteralEnum" | |
// ** SELECT a FROM Album a WHERE a.format = org.jboss.errai.jpa.test.entity.Format.SINGLE | |
// ** | |
super.namedQueries.put("albumLiteralEnum", new TypedQueryFactory(this, Album.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("format"), Format.class), Format.SINGLE); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityAnd" | |
// ** SELECT z FROM Zentity z WHERE z.string = 'hello' AND z.primitiveInt = 555 | |
// ** | |
super.namedQueries.put("zentityAnd", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello") && Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOr" | |
// ** SELECT z FROM Zentity z WHERE z.string = 'hello' OR z.primitiveInt = 555 | |
// ** | |
super.namedQueries.put("zentityOr", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello") || Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNot" | |
// ** SELECT z FROM Zentity z WHERE NOT z.string = 'hello' | |
// ** | |
super.namedQueries.put("zentityNot", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return !Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNestedBooleanLogic" | |
// ** SELECT z FROM Zentity z WHERE z.string = 'hello' AND z.primitiveInt = 555 OR z.primitiveByte = 1 | |
// ** | |
super.namedQueries.put("zentityNestedBooleanLogic", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return (Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello") && Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d)) || Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("primitiveByte"), Double.class), 1.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityGreaterThan" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveInt > 555 | |
// ** | |
super.namedQueries.put("zentityGreaterThan", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeGreaterThan(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityGreaterThanOrEqualTo" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveInt >= 555 | |
// ** | |
super.namedQueries.put("zentityGreaterThanOrEqualTo", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeGreaterThanOrEqualTo(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLessThan" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveInt < 555 | |
// ** | |
super.namedQueries.put("zentityLessThan", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThan(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLessThanOrEqualTo" | |
// ** SELECT z FROM Zentity z WHERE z.primitiveInt <= 555 | |
// ** | |
super.namedQueries.put("zentityLessThanOrEqualTo", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThanOrEqualTo(JsonUtil.basicValueFromJson(candidate.get("primitiveInt"), Double.class), 555.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityStringGreaterThan" | |
// ** SELECT z FROM Zentity z WHERE z.string > 'hello' | |
// ** | |
super.namedQueries.put("zentityStringGreaterThan", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeGreaterThan(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityStringGreaterThanOrEqualTo" | |
// ** SELECT z FROM Zentity z WHERE z.string >= 'hello' | |
// ** | |
super.namedQueries.put("zentityStringGreaterThanOrEqualTo", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeGreaterThanOrEqualTo(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityStringLessThan" | |
// ** SELECT z FROM Zentity z WHERE z.string < 'hello' | |
// ** | |
super.namedQueries.put("zentityStringLessThan", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThan(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityStringLessThanOrEqualTo" | |
// ** SELECT z FROM Zentity z WHERE z.string <= 'hello' | |
// ** | |
super.namedQueries.put("zentityStringLessThanOrEqualTo", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThanOrEqualTo(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), "hello"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityBetween" | |
// ** SELECT z FROM Zentity z WHERE z.boxedDouble BETWEEN 2.0 AND 4.0 | |
// ** | |
super.namedQueries.put("zentityBetween", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThanOrEqualTo(2.0d, JsonUtil.basicValueFromJson(candidate.get("boxedDouble"), Double.class)) && Comparisons.nullSafeLessThanOrEqualTo(JsonUtil.basicValueFromJson(candidate.get("boxedDouble"), Double.class), 4.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNotBetween" | |
// ** SELECT z FROM Zentity z WHERE z.boxedDouble NOT BETWEEN 2.0 AND 4.0 | |
// ** | |
super.namedQueries.put("zentityNotBetween", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeLessThan(JsonUtil.basicValueFromJson(candidate.get("boxedDouble"), Double.class), 2.0d) || Comparisons.nullSafeGreaterThan(JsonUtil.basicValueFromJson(candidate.get("boxedDouble"), Double.class), 4.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityInLiteral" | |
// ** SELECT z FROM Zentity z WHERE z.string IN ('foo', 'bar', 'baz') | |
// ** | |
super.namedQueries.put("zentityInLiteral", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.in(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), new Object[] { "foo", "bar", "baz" }); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityInSingleValuedParams" | |
// ** SELECT z FROM Zentity z WHERE z.string IN (:in1, :in2, :in3) | |
// ** | |
super.namedQueries.put("zentityInSingleValuedParams", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("in1", 0, String.class), new ErraiParameter("in2", 1, String.class), new ErraiParameter("in3", 2, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.in(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), new Object[] { getParameterValue("in1"), getParameterValue("in2"), getParameterValue("in3") }); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityInCollectionParam" | |
// ** SELECT z FROM Zentity z WHERE z.string IN :inList | |
// ** | |
super.namedQueries.put("zentityInCollectionParam", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("inList", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.in(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), new Object[] { getParameterValue("inList") }); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNotInLiteral" | |
// ** SELECT z FROM Zentity z WHERE z.string NOT IN ('foo', 'bar', 'baz') | |
// ** | |
super.namedQueries.put("zentityNotInLiteral", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return !Comparisons.in(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), new Object[] { "foo", "bar", "baz" }); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLike" | |
// ** SELECT z FROM Zentity z WHERE z.string LIKE :str | |
// ** | |
super.namedQueries.put("zentityLike", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("str", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.like((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class), (String) getParameterValue("str"), (String) null); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNotLike" | |
// ** SELECT z FROM Zentity z WHERE z.string NOT LIKE :str | |
// ** | |
super.namedQueries.put("zentityNotLike", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("str", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return !Comparisons.like((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class), (String) getParameterValue("str"), (String) null); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLikeWithEscapeChar" | |
// ** SELECT z FROM Zentity z WHERE z.string LIKE :str ESCAPE 'a' AND 1 = 1 | |
// ** | |
super.namedQueries.put("zentityLikeWithEscapeChar", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("str", 0, String.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.like((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class), (String) getParameterValue("str"), "a") && Comparisons.nullSafeEquals(1.0d, 1.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByPrimitiveInt" | |
// ** SELECT z FROM Zentity z ORDER BY z.primitiveInt | |
// ** | |
super.namedQueries.put("zentityOrderByPrimitiveInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_primitiveInt_attr = getMetamodel().entity(Zentity.class).getAttribute("primitiveInt"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_primitiveInt_attr.get(lhs), (Comparable) z_primitiveInt_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByPrimitiveIntDesc" | |
// ** SELECT z FROM Zentity z ORDER BY z.primitiveInt DESC | |
// ** | |
super.namedQueries.put("zentityOrderByPrimitiveIntDesc", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_primitiveInt_attr = getMetamodel().entity(Zentity.class).getAttribute("primitiveInt"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_primitiveInt_attr.get(lhs), (Comparable) z_primitiveInt_attr.get(rhs)); | |
if (result != 0) { | |
return - result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByBoxedFloat" | |
// ** SELECT z FROM Zentity z ORDER BY z.boxedFloat | |
// ** | |
super.namedQueries.put("zentityOrderByBoxedFloat", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_boxedFloat_attr = getMetamodel().entity(Zentity.class).getAttribute("boxedFloat"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_boxedFloat_attr.get(lhs), (Comparable) z_boxedFloat_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByStringDescThenInt" | |
// ** SELECT z FROM Zentity z ORDER BY z.string DESC, z.primitiveInt | |
// ** | |
super.namedQueries.put("zentityOrderByStringDescThenInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_string_attr = getMetamodel().entity(Zentity.class).getAttribute("string"); | |
private final ErraiAttribute z_primitiveInt_attr = getMetamodel().entity(Zentity.class).getAttribute("primitiveInt"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_string_attr.get(lhs), (Comparable) z_string_attr.get(rhs)); | |
if (result != 0) { | |
return - result; | |
} | |
result = Comparisons.nullSafeCompare((Comparable) z_primitiveInt_attr.get(lhs), (Comparable) z_primitiveInt_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByStringAscThenInt" | |
// ** SELECT z FROM Zentity z ORDER BY z.string ASC, z.primitiveInt | |
// ** | |
super.namedQueries.put("zentityOrderByStringAscThenInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_string_attr = getMetamodel().entity(Zentity.class).getAttribute("string"); | |
private final ErraiAttribute z_primitiveInt_attr = getMetamodel().entity(Zentity.class).getAttribute("primitiveInt"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_string_attr.get(lhs), (Comparable) z_string_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
result = Comparisons.nullSafeCompare((Comparable) z_primitiveInt_attr.get(lhs), (Comparable) z_primitiveInt_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityOrderByStringThenInt" | |
// ** SELECT z FROM Zentity z ORDER BY z.string, z.primitiveInt | |
// ** | |
super.namedQueries.put("zentityOrderByStringThenInt", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return new Comparator() { | |
private final ErraiAttribute z_string_attr = getMetamodel().entity(Zentity.class).getAttribute("string"); | |
private final ErraiAttribute z_primitiveInt_attr = getMetamodel().entity(Zentity.class).getAttribute("primitiveInt"); | |
public int compare(Object o1, Object o2) { | |
final Zentity lhs = (Zentity) o1; | |
final Zentity rhs = (Zentity) o2; | |
int result; | |
result = Comparisons.nullSafeCompare((Comparable) z_string_attr.get(lhs), (Comparable) z_string_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
result = Comparisons.nullSafeCompare((Comparable) z_primitiveInt_attr.get(lhs), (Comparable) z_primitiveInt_attr.get(rhs)); | |
if (result != 0) { | |
return + result; | |
} | |
return 0; | |
} | |
}; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLowercaseFunction" | |
// ** SELECT z FROM Zentity z WHERE 'foo' = lower(z.string) | |
// ** | |
super.namedQueries.put("zentityLowercaseFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals("foo", ((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).toLowerCase()); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityUppercaseFunction" | |
// ** SELECT z FROM Zentity z WHERE upper(z.string) = 'FOO' | |
// ** | |
super.namedQueries.put("zentityUppercaseFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).toUpperCase(), "FOO"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityParamNestedInFunction" | |
// ** SELECT z FROM Zentity z WHERE lower(:str) = z.string | |
// ** | |
super.namedQueries.put("zentityParamNestedInFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("str", 0, Object.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals(((String) getParameterValue("str")).toLowerCase(), JsonUtil.basicValueFromJson(candidate.get("string"), String.class)); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityConcatFunction" | |
// ** SELECT z FROM Zentity z WHERE 'foo' = concat(z.string, 'o', 'o') | |
// ** | |
super.namedQueries.put("zentityConcatFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals("foo", new StringBuilder(64).append(JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).append("o").append("o").toString()); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentitySubstringFunctionOneArg" | |
// ** SELECT z FROM Zentity z WHERE z.string = substring(:bigStr, :startPos) | |
// ** | |
super.namedQueries.put("zentitySubstringFunctionOneArg", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("bigStr", 0, Object.class), new ErraiParameter("startPos", 1, Object.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final String substrOrig1 = (String) getParameterValue("bigStr"); | |
final int substrStart1 = (Integer) getParameterValue("startPos") - 1; | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), substrOrig1.substring(substrStart1)); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentitySubstringFunctionTwoArgs" | |
// ** SELECT z FROM Zentity z WHERE z.string = substring(:bigStr, :startPos, :length) | |
// ** | |
super.namedQueries.put("zentitySubstringFunctionTwoArgs", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("bigStr", 0, Object.class), new ErraiParameter("startPos", 1, Object.class), new ErraiParameter("length", 2, Object.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final String substrOrig1 = (String) getParameterValue("bigStr"); | |
final int substrStart1 = (Integer) getParameterValue("startPos") - 1; | |
final int substrEnd1 = (Integer) getParameterValue("length") + substrStart1; | |
return Comparisons.nullSafeEquals(JsonUtil.basicValueFromJson(candidate.get("string"), String.class), substrOrig1.substring(substrStart1, substrEnd1)); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityTrimFunction" | |
// ** SELECT z FROM Zentity z WHERE trim(z.string) = 'foo' | |
// ** | |
super.namedQueries.put("zentityTrimFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final RegExp trimmer1 = RegExp.compile(new StringBuilder(64).append("^").append(Comparisons.escapeRegexChar(' ')).append("*").append("(.*?)").append(Comparisons.escapeRegexChar(' ')).append("*").append("$").toString()); | |
return Comparisons.nullSafeEquals(trimmer1.exec((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).getGroup(1), "foo"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityTrimLeadingFunction" | |
// ** SELECT z FROM Zentity z WHERE trim(LEADING FROM z.string) = 'foo' | |
// ** | |
super.namedQueries.put("zentityTrimLeadingFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final RegExp trimmer1 = RegExp.compile(new StringBuilder(64).append("^").append(Comparisons.escapeRegexChar(' ')).append("*").append("(.*?)").append("$").toString()); | |
return Comparisons.nullSafeEquals(trimmer1.exec((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).getGroup(1), "foo"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityTrimTrailingFunction" | |
// ** SELECT z FROM Zentity z WHERE trim(TRAILING FROM z.string) = 'foo' | |
// ** | |
super.namedQueries.put("zentityTrimTrailingFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final RegExp trimmer1 = RegExp.compile(new StringBuilder(64).append("^").append("(.*?)").append(Comparisons.escapeRegexChar(' ')).append("*").append("$").toString()); | |
return Comparisons.nullSafeEquals(trimmer1.exec((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).getGroup(1), "foo"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityTrimTrailingWithCustomPadFunction" | |
// ** SELECT z FROM Zentity z WHERE trim(TRAILING 'o' FROM z.string) = 'f' | |
// ** | |
super.namedQueries.put("zentityTrimTrailingWithCustomPadFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
final RegExp trimmer1 = RegExp.compile(new StringBuilder(64).append("^").append("(.*?)").append(Comparisons.escapeRegexChar(("o").charAt(0))).append("*").append("$").toString()); | |
return Comparisons.nullSafeEquals(trimmer1.exec((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).getGroup(1), "f"); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLengthFunction" | |
// ** SELECT z FROM Zentity z WHERE length(z.string) = 3 | |
// ** | |
super.namedQueries.put("zentityLengthFunction", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals((double) ((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).length(), 3.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLocateFunction2Args" | |
// ** SELECT z FROM Zentity z WHERE locate(:lookFor, z.string) = 2 | |
// ** | |
super.namedQueries.put("zentityLocateFunction2Args", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("lookFor", 0, Object.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeEquals((double) ((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).indexOf((String) getParameterValue("lookFor"), 0) + 1, 2.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityLocateFunction3Args" | |
// ** SELECT z FROM Zentity z WHERE locate(:lookFor, z.string, 3) > 0 | |
// ** | |
super.namedQueries.put("zentityLocateFunction3Args", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { new ErraiParameter("lookFor", 0, Object.class) }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return Comparisons.nullSafeGreaterThan((double) ((String) JsonUtil.basicValueFromJson(candidate.get("string"), String.class)).indexOf((String) getParameterValue("lookFor"), (int) 3.0d + 1) + 1, 0.0d); | |
} | |
}; | |
} | |
}); | |
// ** | |
// ** NamedQuery "zentityNoWhereClause" | |
// ** SELECT z FROM Zentity z | |
// ** | |
super.namedQueries.put("zentityNoWhereClause", new TypedQueryFactory(this, Zentity.class, new ErraiParameter[] { }) { | |
protected TypedQuery createQuery() { | |
return new ErraiTypedQuery(entityManager, actualResultType, parameters) { | |
protected Comparator getComparator() { | |
return null; | |
} | |
public boolean matches(JSONObject candidate) { | |
return true; | |
} | |
}; | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment