Package org.apache.empire.exceptions

Examples of org.apache.empire.exceptions.NotSupportedException


        /** Returns the error message: ERR_NOTSUPPORTED */
        @Override
        public void readRecord(DBRecord rec, Object[] keys, Connection conn)
        {
            throw new NotSupportedException(this, "getRecord");
        }
View Full Code Here


        /** Returns the error message: ERR_NOTSUPPORTED */
        @Override
        public void updateRecord(DBRecord rec, Connection conn)
        {
            throw new NotSupportedException(this, "updateRecord");
        }
View Full Code Here

        /** Returns the error message: ERR_NOTSUPPORTED */
        @Override
        public void deleteRecord(Object[] keys, Connection conn)
        {
            throw new NotSupportedException(this, "deleteRecord");
        }
View Full Code Here

     * sets whether this column is a single byte character or text column
     */
    public void setSingleByteChars(boolean singleByteChars)
    {
        if (!getDataType().isText())
            throw new NotSupportedException(this, "setSingleByteChars");
        // set single byte
        setAttribute(DBCOLATTR_SINGLEBYTECHARS, singleByteChars);
    }
View Full Code Here

            alterTable((DBTableColumn) dbo, type, script);
            return;
        }
        else
        { // dll generation not supported for this type
            throw new NotSupportedException(this, "getDDLScript() for "+dbo.getClass().getName());
        }
    }
View Full Code Here

        // Create the Command
        DBCommandExpr cmd = v.createCommand();
        if (cmd==null)
        {   // Check whether Error information is available
            log.error("No command has been supplied for view " + v.getName());
            throw new NotSupportedException(this, v.getName() + ".createCommand");
        }
        // Make sure there is no OrderBy
        cmd.clearOrderBy();

        // Build String
View Full Code Here

    @Override
    public void updateRecord(DBRecord rec, Connection conn)
    {
        if (updateable==false)
            throw new NotSupportedException(this, "updateRecord");
        // Update the record
        super.updateRecord(rec, conn);
    }
View Full Code Here

     * @see org.apache.empire.db.DBRowSet#addRecord(org.apache.empire.db.DBRecord, java.sql.Connection)
     */
    @Override
    public void createRecord(DBRecord rec, Connection conn)
    {
        throw new NotSupportedException(this, "createRecord");
    }
View Full Code Here

     * @see org.apache.empire.db.DBRowSet#deleteRecord(java.lang.Object[], java.sql.Connection, boolean)
     */
    @Override
    public void deleteRecord(Object[] keys, Connection conn)
    {
        throw new NotSupportedException(this, "deleteRecord");
    }
View Full Code Here

    }

    public void setSelectedItems(Set<Object[]> items)
    {
        if (selectedItems == null)
            throw new NotSupportedException(this, "setSelectedItems");
        // Get the set
        selectedItems = new SelectionSet(items.size());
        for (Object[] key : items)
        {
            if (key == null || key.length == 0)
View Full Code Here

TOP

Related Classes of org.apache.empire.exceptions.NotSupportedException

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.