No effective change - remove unused

This commit is contained in:
Robin Bygrave
2015-08-02 08:41:10 +12:00
parent 68481844ee
commit 11a3e49daa
3 changed files with 2 additions and 44 deletions
@@ -74,12 +74,12 @@ public interface PersistenceContext {
* The bean was previously deleted from this persistence context (can't hit
* L2 cache).
*/
public static final WithOption DELETED = new WithOption(true);
public static final WithOption DELETED = new WithOption();
private final boolean deleted;
private final Object bean;
private WithOption(boolean deleted) {
private WithOption() {
this.deleted = true;
this.bean = null;
}
@@ -30,16 +30,6 @@ public final class BasicTypeConverter implements Serializable {
*/
public static final int UTIL_DATE = -999998988;
/**
* Type code for java.math.BigInteger.
*/
public static final int MATH_BIGINTEGER = -999998987;
/**
* Type code for an Enum type.
*/
public static final int ENUM = -999998989;
private BasicTypeConverter() {
}
@@ -20,31 +20,6 @@ public class BeanCascadeInfo {
*/
boolean save;
/**
* Set the raw deployment attribute.
*/
public void setAttribute(String attr) {
if (attr == null){
return;
}
attr = attr.toLowerCase();
delete = (attr.contains("delete"));
if (!delete){
// same as EJB3 remove
delete = (attr.contains("remove"));
}
save = (attr.contains("save"));
if (!save){
// same as EJB3 persist
save = (attr.contains("persist"));
}
if (attr.contains("all")){
delete = true;
save = true;
}
}
public void setTypes(CascadeType[] types) {
for (int i = 0; i < types.length; i++) {
setType(types[i]);
@@ -86,11 +61,4 @@ public class BeanCascadeInfo {
return save;
}
/**
* Set to true if save should cascade.
*/
public void setSave(boolean isUpdate) {
this.save = isUpdate;
}
}