/** * Returns true if the application identity class should be an inner class. */ public boolean isInnerClass() { Class oidClass = _meta.getObjectIdType(); return oidClass.getName().indexOf('$') != -1; }
/** * Returns true if the application identity class should be an inner class. */ public boolean isInnerClass() { Class oidClass = _meta.getObjectIdType(); return oidClass.getName().indexOf('$') != -1; }
/** * Returns true if the application identity class should be an inner class. */ public boolean isInnerClass() { Class oidClass = _meta.getObjectIdType(); return oidClass.getName().indexOf('$') != -1; }
/** * Whether this type uses OpenJPA identity. */ public boolean isOpenJPAIdentity() { if (_openjpaId == null) { Class<?> cls = getObjectIdType(); if (cls == null) return false; _openjpaId = (OpenJPAId.class.isAssignableFrom(cls)) ? Boolean.TRUE : Boolean.FALSE; } return _openjpaId.booleanValue(); }
/** * Returns true if the application identity class should be an inner class. */ public boolean isInnerClass() { Class oidClass = _meta.getObjectIdType(); return oidClass.getName().indexOf('$') != -1; }
/** * Returns true if the application identity class should be an inner class. */ public boolean isInnerClass() { Class oidClass = _meta.getObjectIdType(); return oidClass.getName().indexOf('$') != -1; }
/** * Whether this type uses OpenJPA identity. */ public boolean isOpenJPAIdentity() { if (_openjpaId == null) { Class cls = getObjectIdType(); if (cls == null) return false; _openjpaId = (OpenJPAId.class.isAssignableFrom(cls)) ? Boolean.TRUE : Boolean.FALSE; } return _openjpaId.booleanValue(); }
/** * Returns the short class name for the object id class. */ private String getClassName() { if (_meta.isOpenJPAIdentity()) return null; // convert from SomeClass$ID to ID String className = ClassUtil.getClassName(_meta.getObjectIdType()); if (isInnerClass()) className = className.substring(className.lastIndexOf('$') + 1); return className; }
/** * Returns the short class name for the object id class. */ private String getClassName() { if (_meta.isOpenJPAIdentity()) return null; // convert from SomeClass$ID to ID String className = Strings.getClassName(_meta.getObjectIdType()); if (isInnerClass()) className = className.substring(className.lastIndexOf('$') + 1); return className; }
/** * Returns the short class name for the object id class. */ private String getClassName() { if (_meta.isOpenJPAIdentity()) return null; // convert from SomeClass$ID to ID String className = Strings.getClassName(_meta.getObjectIdType()); if (isInnerClass()) className = className.substring(className.lastIndexOf('$') + 1); return className; }
/** * Returns the short class name for the object id class. */ private String getClassName() { if (_meta.isOpenJPAIdentity()) return null; // convert from SomeClass$ID to ID String className = Strings.getClassName(_meta.getObjectIdType()); if (isInnerClass()) className = className.substring(className.lastIndexOf('$') + 1); return className; }
/** * Returns the short class name for the object id class. */ private String getClassName() { if (_meta.isOpenJPAIdentity()) return null; // convert from SomeClass$ID to ID String className = ClassUtil.getClassName(_meta.getObjectIdType()); if (isInnerClass()) className = className.substring(className.lastIndexOf('$') + 1); return className; }
/** * Returns the attributes corresponding to the id class of the identifiable type. * * @throws IllegalArgumentException if the this type is not using an id class */ public final java.util.Set<SingularAttribute<? super X, ?>> getIdClassAttributes() { if (meta.isOpenJPAIdentity()) throw new IllegalArgumentException(meta + " does not use IdClass. Object Id type = " + meta.getObjectIdType() + " Identity Type = " + meta.getIdentityType()); return filter(attrs, new HashSet<SingularAttribute<? super X, ?>>(), new IdAttributeFilter<X>()); }
/** * Returns the attributes corresponding to the id class of the identifiable type. * * @throws IllegalArgumentException if the this type is not using an id class */ public final java.util.Set<SingularAttribute<? super X, ?>> getIdClassAttributes() { if (meta.isOpenJPAIdentity()) throw new IllegalArgumentException(meta + " does not use IdClass. Object Id type = " + meta.getObjectIdType() + " Identity Type = " + meta.getIdentityType()); return filter(attrs, new HashSet<SingularAttribute<? super X, ?>>(), new IdAttributeFilter<X>()); }
/** * Returns the attributes corresponding to the id class of the identifiable type. * * @throws IllegalArgumentException if the this type is not using an id class */ public final java.util.Set<SingularAttribute<? super X, ?>> getIdClassAttributes() { if (meta.isOpenJPAIdentity()) throw new IllegalArgumentException(meta + " does not use IdClass. Object Id type = " + meta.getObjectIdType() + " Identity Type = " + meta.getIdentityType()); return filter(attrs, new HashSet<SingularAttribute<? super X, ?>>(), new IdAttributeFilter<X>()); }
/** * Returns the attributes corresponding to the id class of the identifiable type. * * @throws IllegalArgumentException if the this type is not using an id class */ public final java.util.Set<SingularAttribute<? super X, ?>> getIdClassAttributes() { if (meta.isOpenJPAIdentity()) throw new IllegalArgumentException(meta + " does not use IdClass. Object Id type = " + meta.getObjectIdType() + " Identity Type = " + meta.getIdentityType()); return filter(attrs, new HashSet<SingularAttribute<? super X, ?>>(), new IdAttributeFilter<X>()); }
/** * Return the type that represents the type of the id. * @return type of identifier */ public Type<?> getIdType() { Class<?> idType = hasSingleIdAttribute() ? meta.getPrimaryKeyFields()[0].getDeclaredType() : meta.getObjectIdType(); return model.getType(idType); } }
/** * Return the type that represents the type of the id. * @return type of identifier */ public Type<?> getIdType() { Class<?> idType = hasSingleIdAttribute() ? meta.getPrimaryKeyFields()[0].getDeclaredType() : meta.getObjectIdType(); return model.getType(idType); } }
/** * Return the type that represents the type of the id. * @return type of identifier */ public Type<?> getIdType() { Class<?> idType = hasSingleIdAttribute() ? meta.getPrimaryKeyFields()[0].getDeclaredType() : meta.getObjectIdType(); return model.getType(idType); } }
/** * Return the type that represents the type of the id. * @return type of identifier */ public Type<?> getIdType() { Class<?> idType = hasSingleIdAttribute() ? meta.getPrimaryKeyFields()[0].getDeclaredType() : meta.getObjectIdType(); return model.getType(idType); } }