/** * Compares id against id of the specified object. So this * method is inconsistent with {@link #equals(Object)}. * * @param other Object to be compared with this instance. * @return A negative integer, zero, or a positive integer as this object * is less than, equal to, or greater than the specified object. */ public int compareTo(final Object other) { return compareTo((AccessMode) other); }
/** * Extract access mode from class mapping and set it at JDO class descriptor. * * @param jdoNature JDO class descriptor to set the access mode on. * @param clsMap Class mapping to extract the access mode from. */ private void extractAndSetAccessMode(final ClassDescriptorJDONature jdoNature, final ClassMapping clsMap) { if (clsMap.getAccess() != null) { jdoNature.setAccessMode(AccessMode.valueOf(clsMap.getAccess().toString())); } }
String accessMode = cNature.getAccessMode().getName(); jsc.add("jdoNature.setAccessMode(AccessMode.valueOf(\"" + accessMode + "\"));");
Table table = (Table) tmpObject; cNature.setTableName(table.getName()); cNature.setAccessMode(AccessMode.valueOf("shared")); cNature.setDetachable(table.isDetachable());