1 23 24 29 30 package com.sun.jdo.api.persistence.mapping.ejb; 31 32 import java.util.List ; 33 34 45 public interface ConversionHelper { 46 47 public static final String ONE = "One"; public static final String MANY = "Many"; 50 55 public String getMappedClassName(String beanName); 56 57 62 public boolean hasField(String beanName, String fieldName); 63 64 66 public Object [] getFields(String beanName); 67 68 79 public boolean isKey(String beanName, String fieldName, boolean candidate); 80 81 88 public String getRelationshipFieldContent(String ejbName, String fieldName); 89 90 95 public String getMultiplicity(String ejbName, String fieldName); 96 97 101 public String getRelationshipFieldType(String ejbName, String fieldName); 102 103 107 public String getInverseFieldName(String ejbName, String fieldName); 108 109 117 public boolean applyDefaultUnknownPKClassStrategy(String ejbName); 118 119 123 public String getGeneratedPKFieldName(); 124 125 129 public String getGeneratedVersionFieldNamePrefix(); 130 131 137 public boolean relatedObjectsAreDeleted(String ejbName, String fieldName); 138 139 147 public boolean generateFields(); 148 149 155 public void setGenerateFields(boolean generateFields); 156 157 162 public boolean ensureValidation(); 163 164 169 public void setEnsureValidation(boolean isValidating); 170 171 180 public boolean isGeneratedField(String ejbName, String fieldName); 181 182 188 public boolean isGeneratedRelationship(String ejbName, String fieldName); 189 190 195 public List getGeneratedRelationships(String ejbName); 196 } 197 198 | Popular Tags |