private String getIncompatiblePluginMessage(Object obj, Class<?> type) { return _loc.get("incompatible-plugin", new Object[]{ _name, obj == null ? null : obj.getClass().getName(), type == null ? null : type.getName() }).toString(); }
private String getIncompatiblePluginMessage(Object obj, Class<?> type) { return _loc.get("incompatible-plugin", new Object[]{ _name, obj == null ? null : obj.getClass().getName(), type == null ? null : type.getName() }).toString(); }
public Constructor addConstructor(){ Constructor c = new Constructor(type.simpleName); if (!constructors.add(c)) throw new IllegalArgumentException(_loc.get( "src-duplicate-constructor", c, this).toString()); return c; } public void write(PrintWriter out, int tab) {
public void process() throws ProcessingException, IOException { JPAServletContext ctx = getExecutionContext(); ObjectFormatter<?> formatter = getObjectFormatter(); ctx.getResponse().setContentType(formatter.getMimeType()); formatter.writeOut(ctx.getPersistenceContext().getMetamodel(), _loc.get("domain-title").toString(), _loc.get("domain-desc").toString(), ctx.getRequestURI(), ctx.getResponse().getOutputStream()); } }
public Class makeAbstract() { if (isFinal) throw new IllegalArgumentException(_loc.get("src-invalid-modifier").toString()); isAbstract = true; return this; }
private void log(Level level, Localizer.Message message, Diagnostic.Kind kind) { if (logLevel <= level.ordinal()) { messager.printMessage(kind, message.toString()); } } }
/** * Return the code from {@link JavaTypes} for the version value this given * column index uses. Only used if the version strategy employs more than * one column. */ protected int getJavaType(int i) { throw new AbstractMethodError(_loc.get( "multi-column-version-unsupported",getAlias()).toString()); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
/** * Return the code from {@link JavaTypes} for the version value this given * column index uses. Only used if the version strategy employs more than * one column. */ protected int getJavaType(int i) { throw new AbstractMethodError(_loc.get( "multi-column-version-unsupported",getAlias()).toString()); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
public Field addField(String f, ClassName type) { if (!isValidToken(f)) { throw new IllegalArgumentException( _loc.get("src-invalid-field",f).toString()); } Field field = new Field(this, f, type); if (!fields.add(field)) throw new IllegalArgumentException(_loc.get( "src-duplicate-field", field, this).toString()); return field; }
protected Method addMethod(String m, ClassName retType) { if (isEmpty(m) || !isValidToken(m)) { throw new IllegalArgumentException(_loc.get( "src-invalid-method",m).toString()); } Method method = new Method(m, retType); if (!methods.add(method)) throw new IllegalArgumentException(_loc.get( "src-duplicate-method", method, this).toString()); return method; }
public Field addField(String f, ClassName type) { if (!isValidToken(f)) { throw new IllegalArgumentException( _loc.get("src-invalid-field",f).toString()); } Field field = new Field(this, f, type); if (!fields.add(field)) throw new IllegalArgumentException(_loc.get( "src-duplicate-field", field, this).toString()); return field; }
public Class makeFinal() { if (isAbstract) throw new IllegalArgumentException(_loc.get("src-invalid-modifier").toString()); isFinal = true; return this; }
public Class makeAbstract() { if (isFinal) throw new IllegalArgumentException(_loc.get("src-invalid-modifier").toString()); isAbstract = true; return this; }
void warn(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.warn(message.toString()); }
public Class makeAbstract() { if (isFinal) throw new IllegalArgumentException(_loc.get("src-invalid-modifier").toString()); isAbstract = true; return this; }