/** * Method readResolve * * will be called during deserialization to replace the * deserialized object with the correct constant instance. * <br/> * * @return Object */ private java.lang.Object readResolve() { return valueOf(this.stringValue); } //-- java.lang.Object readResolve()
public ClassMapping() { super(); this._identity = new java.util.ArrayList<java.lang.String>(); setAccess(org.exolab.castor.mapping.xml.types.ClassMappingAccessType.fromValue("shared")); this._namedQueryList = new java.util.ArrayList<org.exolab.castor.mapping.xml.NamedQuery>(); this._namedNativeQueryList = new java.util.ArrayList<org.exolab.castor.mapping.xml.NamedNativeQuery>(); }
/** * 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())); } }
public ClassMapping() { super(); this._identity = new java.util.ArrayList(); setAccess(org.exolab.castor.mapping.xml.types.ClassMappingAccessType.valueOf("shared")); this._namedQueryList = new java.util.ArrayList(); }