Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-castor/src/main/java/org/xdoclet/plugin/castor/qtags
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4440/plugin-castor/src/main/java/org/xdoclet/plugin/castor/qtags

Added Files:
        CastorFieldSqlTag.java 
Log Message:
XDP-70: Castor Plugin doesn't support @castor.field-sql fields
Fixed: Added support, testcases updates.

--- NEW FILE: CastorFieldSqlTag.java ---
/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.castor.qtags;

/**
 * Defines methods/fields that should have a mapping definition. Applies to: 
Java Bean
 *
 * @author Diogo Quintela
 *
 * @qtags.location field
 * @qtags.location method
 * @qtags.once
 */
public interface CastorFieldSqlTag extends 
com.thoughtworks.qdox.model.DocletTag {
    /**
     * The name of the column in the database table
     */
    String getName_();

    /**
     * The JDBC type of the column. It is inferred from the object when the 
type of this
     * field is a persistent Java class that is defined elsewhere in the 
mapping. The
     * complete list of automatic type conversions, and which values require 
manual
     * mapping (e.g, java.util.Date) is listed in the SQL Type Conversion 
section of
     * the Type Support document.
     */
    String getType();

    /**
     * Specifies the name of the column that holds the foreign key to this 
object. That column is in the
     * database table that stores objects of the Java type of this field.
     */
    String getManyKey();

    /**
     * Specifies the name of the bridge table that contains the primary keys of 
the object on each side of
     * the relationship. This is only used for many-to-many relationships
     */
    String getManyTable();

    /**
     * If true, the column in the relational database table will only be read, 
not updated or deleted.
     */
    boolean isReadOnly();

    /**
     * If the value is 'ignore', the field will not be checked against the 
database for modification.
     *
     * @qtags.allowed-value check
     * @qtags.allowed-value ignore
     * @qtags.default check
     */
    String getDirty();

    /**
     * ?? No doc found. Present in DTD
     */
    boolean isTransient();
}


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to