Package com.asakusafw.dmdl.model

Examples of com.asakusafw.dmdl.model.AstAttribute


    private AstScript convert(ModelDescription model) {
        assert model != null;
        AstModelDefinition<?> def;
        if (model instanceof TableModelDescription) {
            TableModelDescription tableModel = (TableModelDescription) model;
            AstAttribute cacheSupport = generateCacheSupport(tableModel);
            if (cacheSupport == null) {
                def = RecordModelGenerator.generate(tableModel);
            } else {
                def = RecordModelGenerator.generate(tableModel, cacheSupport);
            }
View Full Code Here


    /**
     * Returns the 'auto projection' attribute.
     * @return the attribute
     */
    public static AstAttribute getAutoProjection() {
        return new AstAttribute(
                null,
                toName(AutoProjectionDriver.TARGET_NAME));
    }
View Full Code Here

     */
    public static AstAttribute getNamespace(AstName name) {
        if (name == null) {
            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(NamespaceDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(NamespaceDriver.ELEMENT_NAME),
View Full Code Here

     * @param name the original name string
     * @return the attribute
     * @throws IllegalArgumentException if some parameters were {@code null}
     */
    public static AstAttribute getOriginalName(String name) {
        return new AstAttribute(
                null,
                toName(OriginalNameDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(OriginalNameDriver.ELEMENT_NAME),
View Full Code Here

        for (ModelProperty property : model.getProperties()) {
            if (property.getSource().getAttributes().contains(Attribute.PRIMARY_KEY)) {
                primaryKeys.add(toName(property));
            }
        }
        return new AstAttribute(
                null,
                toName(PrimaryKeyDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(PrimaryKeyDriver.ELEMENT_NAME),
View Full Code Here

            throw new IllegalArgumentException("sid must not be null"); //$NON-NLS-1$
        }
        if (timestamp == null) {
            throw new IllegalArgumentException("timestamp must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(CacheSupportDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.SID_ELEMENT_NAME),
View Full Code Here

            throw new IllegalArgumentException("deleteFlag must not be null"); //$NON-NLS-1$
        }
        if (deleteFlagValue == null) {
            throw new IllegalArgumentException("deleteFlagValue must not be null"); //$NON-NLS-1$
        }
        return new AstAttribute(
                null,
                toName(CacheSupportDriver.TARGET_NAME),
                new AstAttributeElement(
                        null,
                        toSimpleName(CacheSupportDriver.SID_ELEMENT_NAME),
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.model.AstAttribute

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.