Package org.castor.ddlgen

Examples of org.castor.ddlgen.GeneratorException


    /**
     * {@inheritDoc}
     */
    public String toDDL(final Field field) throws GeneratorException {
        String msg = "Database engine does not support type: " + getJdbcType();
        throw new GeneratorException(msg);
    }
View Full Code Here


     * {@inheritDoc}
     */
    public final void merge(final TypeInfo type) throws GeneratorException {
        if (type == null) {
            LOG.error("Merge table: type is null");
            throw new GeneratorException("Merge table: type is null");
        }
       
        if (_jdbcType == null || _jdbcType.equalsIgnoreCase(type.getJdbcType())) {
            LOG.warn("Merge table: types have different jdbc name");
        }
View Full Code Here

     */
    public String toDDL(final Field field) throws GeneratorException {
        Integer length = field.getLength();
        if (length == null) { length = _defaultLength; }
        if (length == null) {
            throw new GeneratorException(
                    "Reguired length attribute missing for field '" + field.getName()
                    + "' of type '" + getJdbcType() + "'");
        }
       
        StringBuffer sb = new StringBuffer();
View Full Code Here

TOP

Related Classes of org.castor.ddlgen.GeneratorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.