| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.core.jpa.metadata; |
| 17 | |
|
| 18 | |
import java.util.ArrayList; |
| 19 | |
import java.util.List; |
| 20 | |
|
| 21 | |
import javax.persistence.CascadeType; |
| 22 | |
import javax.persistence.FetchType; |
| 23 | |
|
| 24 | 0 | public class CollectionDescriptor { |
| 25 | |
|
| 26 | |
protected String attributeName; |
| 27 | |
protected Class targetEntity; |
| 28 | 0 | protected CascadeType [] cascade = new CascadeType[0]; |
| 29 | 0 | protected FetchType fetch = FetchType.LAZY; |
| 30 | 0 | protected String mappedBy = ""; |
| 31 | 0 | protected List<String> fkFields = new ArrayList<String>(); |
| 32 | |
protected boolean insertable; |
| 33 | |
protected boolean updateable; |
| 34 | |
|
| 35 | |
public boolean isInsertable() { |
| 36 | 0 | return this.insertable; |
| 37 | |
} |
| 38 | |
|
| 39 | |
public void setInsertable(boolean insertable) { |
| 40 | 0 | this.insertable = insertable; |
| 41 | 0 | } |
| 42 | |
|
| 43 | |
public boolean isUpdateable() { |
| 44 | 0 | return this.updateable; |
| 45 | |
} |
| 46 | |
|
| 47 | |
public void setUpdateable(boolean updateable) { |
| 48 | 0 | this.updateable = updateable; |
| 49 | 0 | } |
| 50 | |
|
| 51 | |
public void addFkField(String fk) { |
| 52 | 0 | fkFields.add(fk); |
| 53 | 0 | } |
| 54 | |
|
| 55 | |
public List<String> getForeignKeyFields() { |
| 56 | 0 | return fkFields; |
| 57 | |
} |
| 58 | |
|
| 59 | |
public FetchType getFetch() { |
| 60 | 0 | return this.fetch; |
| 61 | |
} |
| 62 | |
|
| 63 | |
public void setFetch(FetchType fetch) { |
| 64 | 0 | this.fetch = fetch; |
| 65 | 0 | } |
| 66 | |
|
| 67 | |
public String getMappedBy() { |
| 68 | 0 | return this.mappedBy; |
| 69 | |
} |
| 70 | |
|
| 71 | |
public void setMappedBy(String mappedBy) { |
| 72 | 0 | this.mappedBy = mappedBy; |
| 73 | 0 | } |
| 74 | |
|
| 75 | |
public Class getTargetEntity() { |
| 76 | 0 | return this.targetEntity; |
| 77 | |
} |
| 78 | |
|
| 79 | |
public void setTargetEntity(Class targetEntity) { |
| 80 | 0 | this.targetEntity = targetEntity; |
| 81 | 0 | } |
| 82 | |
|
| 83 | |
public CascadeType[] getCascade() { |
| 84 | 0 | return this.cascade; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setCascade(CascadeType[] cascade) { |
| 88 | 0 | this.cascade = cascade; |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
public String getAttributeName() { |
| 92 | 0 | return this.attributeName; |
| 93 | |
} |
| 94 | |
|
| 95 | |
public void setAttributeName(String attributeName) { |
| 96 | 0 | this.attributeName = attributeName; |
| 97 | 0 | } |
| 98 | |
|
| 99 | |
} |