/** * 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()
/** * Method readResolve. will be called during deserialization to * replace the deserialized object with the correct constant * instance. * * @return this deserialized object */ private java.lang.Object readResolve( ) { return valueOf(this.stringValue); }
/** * 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()
fieldMap.setCollection(FieldMappingCollectionType.valueOf(colName)); fieldType = Object.class; } else if (_mappingLoader.returnsArray(cls, fieldName, fieldType)) { fieldMap.getBindXml().setName(((XMLFieldDescriptor) fdesc).getXMLName()); fieldMap.getBindXml().setNode( BindXmlNodeType.valueOf(((XMLFieldDescriptor) fields[i]).getNodeType() .toString())); if (classMap.getClassChoice() == null) {
if (fieldMap.getCollection() != null) { Class colType = CollectionHandlers.getCollectionType( fieldMap.getCollection().toString()); colHandler = CollectionHandlers.getHandler(colType); fieldJdoNature.setManyKey(sql.getManyKey()); fieldJdoNature.setDirtyCheck(!SqlDirtyType.IGNORE.equals(sql.getDirty())); fieldJdoNature.setReadOnly(sql.getReadOnly());
/** * 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()
/** * Create the right parameter values for * {@link FieldDescriptor#setCollection(FieldMappingCollectionType)} according * to given JPA specific information. * * @param jpaNature * The nature holding JPA information. * @return the right parameter values for * {@link FieldDescriptor#setCollection(FieldMappingCollectionType)}. */ private static FieldMappingCollectionType createColletionType( final JPAFieldNature jpaNature) { if (jpaNature.getRelationCollectionType() != null) { // OneToMany or ManyToMany String collectionTypeName = jpaNature.getRelationCollectionType() .getSimpleName().toLowerCase(); return FieldMappingCollectionType.fromValue(collectionTypeName); } return null; }
/** * 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 Sql() { super(); this._name = new java.util.ArrayList<java.lang.String>(); this._manyKey = new java.util.ArrayList<java.lang.String>(); setDirty(org.exolab.castor.mapping.xml.types.SqlDirtyType.fromValue("check")); }
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())); } }
String colTypeName = fldMap.getCollection().toString(); collectionType = CollectionHandlers.getCollectionType(colTypeName); collectionHandler = CollectionHandlers.getHandler(collectionType);
fieldMap.setCollection(FieldMappingCollectionType.valueOf(colName)); fieldType = Object.class; } else if (_mappingLoader.returnsArray(cls, fieldName, fieldType)) { fieldMap.getBindXml().setName(((XMLFieldDescriptor) fdesc).getXMLName()); fieldMap.getBindXml().setNode( BindXmlNodeType.valueOf(((XMLFieldDescriptor) fields[i]).getNodeType().toString())); if (classMap.getClassChoice() == null) { classMap.setClassChoice(new ClassChoice());
public Sql() { super(); this._name = new java.util.ArrayList(); this._manyKey = new java.util.ArrayList(); setDirty(org.exolab.castor.mapping.xml.types.SqlDirtyType.valueOf("check")); }
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(); }
String colTypeName = fieldMap.getCollection().toString(); Class colType = CollectionHandlers.getCollectionType(colTypeName); colHandler = CollectionHandlers.getHandler(colType);
String colTypeName = fieldMap.getCollection().toString(); Class<?> collectionType = CollectionHandlers.getCollectionType(colTypeName); collectionHandler = CollectionHandlers.getHandler(collectionType);