1 23 24 30 31 package com.sun.jdo.spi.persistence.support.sqlstore.sql.constraint; 32 33 import com.sun.jdo.spi.persistence.support.sqlstore.ActionDesc; 34 35 37 public class ConstraintFieldName extends ConstraintField { 38 39 public ActionDesc desc; 40 41 public String name; 42 43 private boolean projection; 44 45 private final boolean prefetched; 46 47 public ConstraintFieldName(String name, 48 ActionDesc desc) { 49 super(); 50 this.name = name; 51 this.desc = desc; 52 this.prefetched = false; 53 } 54 55 public ConstraintFieldName(String name, ActionDesc desc, boolean prefetched) { 56 super(); 57 this.name = name; 58 this.desc = desc; 59 assert prefetched == true; 70 this.prefetched = prefetched; 71 } 72 73 public boolean isProjection() { 74 return projection; 75 } 76 77 public void setProjection() { 78 this.projection = true; 79 } 80 81 public boolean isPrefetched() { 82 return prefetched; 83 } 84 } 85 | Popular Tags |