public static <T> T mustNotBeNull( String parameterName, T argument) { if (argument == null) { throw new NullArgumentException( mustNotBeNullMessage(parameterName)); } return argument; }
public static <T> T mustNotBeNullWhen( String whenCondition, String parameterName, T argument) { if (argument == null) { throw new NullArgumentException( mustNotBeNullWhenMessage(whenCondition, parameterName)); } return argument; }
protected final void readState(ObjectInputStream in) throws ClassNotFoundException, IOException { this.validateStream(in, true); this.onReadState(new Input(in)); }
@I18N private static native String modelReplacerConstructorIsNotFound( URL configurationFile, String className, Class<?>[] parameterTypes);
@SuppressWarnings({ "unchecked", "rawtypes" }) protected KeySetImpl(AbstractMAMap<K, V> parentMap) { super((BaseEntries)parentMap.baseEntries); this.parentMap = Arguments.mustNotBeNull("parentMap", parentMap); }
@Override public int setIndex(int index) { Arguments.mustBeGreaterThanOrEqualToValue("index", index, INVALID_INDEX); int oldIndex = this.index; this.index = index; return oldIndex; }
protected final void writeState(ObjectOutputStream out) throws IOException { this.validateStream(out, false); this.onWriteState(new Output(out)); }
@SafeVarargs @I18N private static native String fieldTypeRequireAnnotation( JPAMetadataPropertyImpl property, Class<?> fieldType, Class<? extends Annotation> ... expectedAnnotationTypes);
@I18N private static native String requireJoinColumnName( JPAMetadataPropertyImpl property, String joinColumnsKindName, int index);
@I18N private static native String propertyNameIsNotAllowed( String entityClass, String propertyName, Class<TypedQueryPathProcessor> thisType); }
@SuppressWarnings("rawtypes") @I18N private static native String selfGetterCanNotReturnNull( Class<? extends SelfGetter> actualSelfGetterType, String methodSignature); }
@I18N public static native String createFailedBecauseOfunidirectionalAssociation( Class<?> associatedEndpointType, Class<?> requireBidirectionalAssociationType, ModelProperty modelProperty);
@I18N public static native String canNotAttachElementToSpecialAssociation( ModelProperty property, Class<?> type, ModelProperty oppositeProperty, Class<?> oppositeType);
@I18N private static native String unexpectedJpaModelAccess( String className, Class<Access> accessTypeConstant, Class<JPAModel> jpaModelTypeConstant);
@I18N private static native String annotatedFieldMustBePrivate( String className, String fieldName, String annotationClassName);
@I18N private static native String duplicatedSpecialProperty( JPAMetadataPropertyImpl property, JPAMetadataPropertyImpl idProperty, Class<? extends Annotation> annotationType);
@I18N private static native String defaultConstructorOfResultClassMustBePublic( Class<? extends ClassWrapper> runtimeType, Class<?> resultClass); }
@I18N private static native String conflictPrimaryAnnotation( MetadataPropertyImpl thisProperty, String annoationTypeName1, String annoationTypeName2);
@I18N private static native String referencePropertyCanNotBeCollection( MetadataPropertyImpl thisProperty, Class<? extends Annotation> keyAnnotation, MetadataPropertyImpl referenceProperty);
@I18N private static native String oppositePropertyMustBeAssociation( MetadataPropertyImpl thisProperty, Class<Association> associationTypeConstant, MetadataPropertyImpl oppositeProperty);