Package org.apache.isis.objectstore.sql

Examples of org.apache.isis.objectstore.sql.SqlObjectStoreException


    @Override
    public Short getShort(final String columnName) {
        try {
            return set.getShort(columnName);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        }
    }
View Full Code Here


    @Override
    public Boolean getBoolean(final String columnName) {
        try {
            return set.getBoolean(columnName);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        }
    }
View Full Code Here

    @Override
    public InputStream getStream(String column) {
        try {
            return set.getBinaryStream(column);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        }
    }
View Full Code Here

    public ObjectAdapter initializeField(final Results rs) {
        final Oid oid = recreateOid(rs, specification);
        if (oid != null) {
            if (specification.isAbstract()) {
                throw new SqlObjectStoreException("NOT DEALING WITH POLYMORPHIC ASSOCIATIONS");
            } else {
                return getAdapter(specification, oid);
            }
        } else {
            return null;
View Full Code Here

    private static ObjectSpecification specificationFor(final String className) {
        ObjectSpecification specification = IsisContext.getSpecificationLoader().loadSpecification(className);
        List<OneToOneAssociation> properties = specification.getProperties(Contributed.EXCLUDED);
        if (isNullOrEmpty(properties) && !specification.isAbstract()) {
            throw new SqlObjectStoreException(specification.getFullIdentifier() + " has no fields: " + specification);
        }
        return specification;
    }
View Full Code Here

                } else if (type.equals("fk-table")) {
                    final String property = parameterBase + field.getId() + ".element-type";
                    final String elementType = configParameters.getString(property);
                    if (elementType == null) {
                        throw new SqlObjectStoreException("Expected property " + property);
                    }
                    /*
                     * collectionMappers[collectionFieldNo] = new ForeignKeyCollectionMapper(elementType,
                     * oneToManyProperties[collectionFieldNo], parameterBase, lookup, objectMapperLookup);
                     */
 
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.sql.SqlObjectStoreException

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.