FileDocCategorySizeDatePackage
ConstraintFieldName.javaAPI DocGlassfish v2 API3607Fri May 04 22:35:14 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.sql.constraint

ConstraintFieldName

public class ConstraintFieldName extends ConstraintField

Fields Summary
public com.sun.jdo.spi.persistence.support.sqlstore.ActionDesc
desc
public String
name
private boolean
projection
private final boolean
prefetched
Constructors Summary
public ConstraintFieldName(String name, com.sun.jdo.spi.persistence.support.sqlstore.ActionDesc desc)

        super();
        this.name = name;
        this.desc = desc;
        this.prefetched = false;
    
public ConstraintFieldName(String name, com.sun.jdo.spi.persistence.support.sqlstore.ActionDesc desc, boolean prefetched)

        super();
        this.name = name;
        this.desc = desc;
        // Resolve: This constructor should always be called with parameter prefetched
        // set to true. Ideally, we should have an inheritance hierachy as follows
        //              ConstraintFieldName
        //                    |
        //   ----------------------------------
        //   |                                 |
        // ProjectionFieldName         PrefetchedFieldName
        // then isPrefetched and isProjection can be turned into abstract methods
        // Till we do the cleanup, parameter prefetched will just serve as a
        // marker and its value will always be ignored.
        assert prefetched == true;
        this.prefetched = prefetched;
    
Methods Summary
public booleanisPrefetched()

        return prefetched;
    
public booleanisProjection()

        return projection;
    
public voidsetProjection()

        this.projection = true;