Examples of PropertyReadOnlyException


Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     */
    public void setRequired(boolean required)
    {
        if (isAutoGenerated())
        {  // cannot change auto-generated columns
            throw new PropertyReadOnlyException("required");
        }
        else
        // Set DataMode
          dataMode=(required ? DataMode.NotNull : DataMode.Nullable);
        }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param schema the schema to set
     */
    public void setSchema(String schema)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException("schema");
        // Set Schema
        this.schema = schema;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param linkName the database link name
     */
    public void setLinkName(String linkName)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException(linkName);
        // Set Link
        this.linkName = linkName;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

                        ((DBRecord)record).setValidateFieldValues(true);
                }
            }
            else if (record instanceof RecordData)
            { // a record
                throw new PropertyReadOnlyException("record");
            }
            else
            { // a normal bean
                String prop = getColumn().getBeanPropertyName();
                setBeanPropertyValue(record, prop, value);
            }
        }
        else
        { // Get from tag
          // tag.setValue(value);
            ValueExpression ve = tag.getValueExpression("value");
            if (ve == null)
                throw new PropertyReadOnlyException("value");

            FacesContext ctx = FacesContext.getCurrentInstance();
            ve.setValue(ctx.getELContext(), value);
        }
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param schema the schema to set
     */
    public void setSchema(String schema)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException("schema");
        // Set Schema
        this.schema = schema;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param linkName the database link name
     */
    public void setLinkName(String linkName)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException(linkName);
        // Set Link
        this.linkName = linkName;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     */
    public void setRequired(boolean required)
    {
        if (isAutoGenerated())
        {  // cannot change auto-generated columns
            throw new PropertyReadOnlyException("required");
        }
        else
        // Set DataMode
          dataMode=(required ? DataMode.NotNull : DataMode.Nullable);
        }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param schema the schema to set
     */
    public void setSchema(String schema)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException("schema");
        // Set Schema
        this.schema = schema;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param linkName the database link name
     */
    public void setLinkName(String linkName)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException(linkName);
        // Set Link
        this.linkName = linkName;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.PropertyReadOnlyException

     * @param schema the schema to set
     */
    public void setSchema(String schema)
    {   // Database must not be open so far
        if (driver != null)
            throw new PropertyReadOnlyException("schema");
        // Set Schema
        this.schema = schema;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.