/** * Create an instance of {@link MatchersTableType } * */ public MatchersTableType createMatchersTableType() { return new MatchersTableType(); }
@Override public String getJavaClassExtends(Definition definition, Mode mode) { for (MatchersTableType tables : tables(definition)) { String result = null; switch (mode) { case POJO: result = match(definition, tables.getExpression(), tables.getPojoExtends()); break; } if (result != null) return result; } // Default to standard behaviour return super.getJavaClassExtends(definition, mode); }
case DEFAULT: result = match(definition, tables.getExpression(), tables.getTableClass()); break; case DAO: result = match(definition, tables.getExpression(), tables.getDaoClass()); break; case INTERFACE: result = match(definition, tables.getExpression(), tables.getInterfaceClass()); break; case POJO: result = match(definition, tables.getExpression(), tables.getPojoClass()); break; case RECORD: result = match(definition, tables.getExpression(), tables.getRecordClass()); break;
case DEFAULT: result = match(definition, tables.getExpression(), tables.getTableImplements()); break; case DAO: result = match(definition, tables.getExpression(), tables.getDaoImplements()); break; case INTERFACE: result = match(definition, tables.getExpression(), tables.getInterfaceImplements()); break; case POJO: result = match(definition, tables.getExpression(), tables.getPojoImplements()); break; case RECORD: result = match(definition, tables.getExpression(), tables.getRecordImplements()); break;
@Override public String getJavaIdentifier(Definition definition) { for (MatchersSchemaType schemas : schemas(definition)) { String result = match(definition, schemas.getExpression(), schemas.getSchemaIdentifier()); if (result != null) return result; } for (MatchersTableType tables : tables(definition)) { String result = match(definition, tables.getExpression(), tables.getTableIdentifier()); if (result != null) return result; } for (MatchersFieldType fields : fields(definition)) { String result = match(definition, fields.getExpression(), fields.getFieldIdentifier()); if (result != null) return result; } for (MatchersSequenceType sequences : sequences(definition)) { String result = match(definition, sequences.getExpression(), sequences.getSequenceIdentifier()); if (result != null) return result; } // Default to standard behaviour return super.getJavaIdentifier(definition); }