/** * PUBLIC: * Return the list of Classes that can be converted to from the passed in javaClass. * @param javaClass - the class that is converted from * @return - a vector of classes */ public Vector getDataTypesConvertedFrom(Class javaClass) { return getConversionManager().getDataTypesConvertedFrom(javaClass); }
/** * PUBLIC: * Return the list of Classes that can be converted to from the passed in javaClass. * @param javaClass - the class that is converted from * @return - a vector of classes */ public Vector getDataTypesConvertedFrom(Class javaClass) { return getConversionManager().getDataTypesConvertedFrom(javaClass); }
/** * Convert the object to the appropriate type by invoking the appropriate * ConversionManager method * @param object - the object that must be converted * @param javaClass - the class that the object must be converted to * @exception - ConversionException, all exceptions will be thrown as this type. * @return - the newly converted object */ @Override public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException { return getConversionManager().convertObject(sourceObject, javaClass); }
/** * PUBLIC: * Return the list of Classes that can be converted from to the passed in javaClass. * @param javaClass - the class that is converted to * @return - a vector of classes */ public Vector getDataTypesConvertedTo(Class javaClass) { return getConversionManager().getDataTypesConvertedTo(javaClass); }
/** * Convert the object to the appropriate type by invoking the appropriate * ConversionManager method * @param object - the object that must be converted * @param javaClass - the class that the object must be converted to * @exception - ConversionException, all exceptions will be thrown as this type. * @return - the newly converted object */ public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException { return getConversionManager().convertObject(sourceObject, javaClass); }
/** * PUBLIC: * Return the list of Classes that can be converted from to the passed in javaClass. * @param javaClass - the class that is converted to * @return - a vector of classes */ public Vector getDataTypesConvertedTo(Class javaClass) { return getConversionManager().getDataTypesConvertedTo(javaClass); }
/** * Convert the object to the appropriate type by invoking the appropriate * ConversionManager method * @param object - the object that must be converted * @param javaClass - the class that the object must be converted to * @exception - ConversionException, all exceptions will be thrown as this type. * @return - the newly converted object */ public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException { return getConversionManager().convertObject(sourceObject, javaClass); }
/** * PUBLIC: * Return the list of Classes that can be converted to from the passed in javaClass. * @param javaClass - the class that is converted from * @return - a vector of classes */ public Vector getDataTypesConvertedFrom(Class javaClass) { return getConversionManager().getDataTypesConvertedFrom(javaClass); }
/** * PUBLIC: * Return the list of Classes that can be converted from to the passed in javaClass. * @param javaClass - the class that is converted to * @return - a vector of classes */ public Vector getDataTypesConvertedTo(Class javaClass) { return getConversionManager().getDataTypesConvertedTo(javaClass); }
/** * Add the parameter. * Convert the parameter to a string and write it. */ public void appendParameter(Call call, Writer writer, Object parameter) { String parameterValue = (String)getConversionManager().convertObject(parameter, ClassConstants.STRING); if (parameterValue == null) { parameterValue = ""; } try { writer.write(parameterValue); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
/** * Add the parameter. * Convert the parameter to a string and write it. */ @Override public void appendParameter(Call call, Writer writer, Object parameter) { String parameterValue = (String)getConversionManager().convertObject(parameter, ClassConstants.STRING); if (parameterValue == null) { parameterValue = ""; } try { writer.write(parameterValue); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
/** * Add the parameter. * Convert the parameter to a string and write it. */ public void appendParameter(Call call, Writer writer, Object parameter) { String parameterValue = (String)getConversionManager().convertObject(parameter, ClassConstants.STRING); if (parameterValue == null) { parameterValue = ""; } try { writer.write(parameterValue); } catch (IOException exception) { throw ValidationException.fileError(exception); } }
/** * The platform holds its own instance of conversion manager to allow customization. */ public ConversionManager getConversionManager() { // For XML we need an XMLConversionManager instance if (isDOMRecordSupported()) { // Lazy init for serialization. if (xmlConversionManager == null) { // Clone the default to allow customers to easily override the conversion manager xmlConversionManager = (XMLConversionManager) XMLConversionManager.getDefaultXMLManager().clone(); xmlConversionManager.setLoader(super.getConversionManager().getLoader()); } return xmlConversionManager; } // For non-XML, return the ConversionManager instance from DatasourcePlatform return super.getConversionManager(); }
/** * The platform holds its own instance of conversion manager to allow customization. */ public ConversionManager getConversionManager() { // For XML we need an XMLConversionManager instance if (isDOMRecordSupported()) { // Lazy init for serialization. if (xmlConversionManager == null) { // Clone the default to allow customers to easily override the conversion manager xmlConversionManager = (XMLConversionManager) XMLConversionManager.getDefaultXMLManager().clone(); xmlConversionManager.setLoader(super.getConversionManager().getLoader()); } return xmlConversionManager; } // For non-XML, return the ConversionManager instance from DatasourcePlatform return super.getConversionManager(); }
/** * The platform holds its own instance of conversion manager to allow customization. */ public ConversionManager getConversionManager() { // For XML we need an XMLConversionManager instance if (isDOMRecordSupported()) { // Lazy init for serialization. if (xmlConversionManager == null) { // Clone the default to allow customers to easily override the conversion manager xmlConversionManager = (XMLConversionManager) XMLConversionManager.getDefaultXMLManager().clone(); } return xmlConversionManager; } // For non-XML, return the ConversionManager instance from DatasourcePlatform return super.getConversionManager(); } }
/** * Copy the state into the new platform. */ public void copyInto(Platform platform) { if (!(platform instanceof DatasourcePlatform)) { return; } DatasourcePlatform datasourcePlatform = (DatasourcePlatform)platform; datasourcePlatform.setTableQualifier(getTableQualifier()); datasourcePlatform.setTimestampQuery(this.timestampQuery); datasourcePlatform.setConversionManager(getConversionManager()); if (hasDefaultSequence()) { datasourcePlatform.setDefaultSequence(getDefaultSequence()); } datasourcePlatform.setSequences(getSequences()); datasourcePlatform.sequencesAfterCloneCleanup(); datasourcePlatform.defaultNativeSequenceToTable = this.defaultNativeSequenceToTable; }
/** * Copy the state into the new platform. */ public void copyInto(Platform platform) { if (!(platform instanceof DatasourcePlatform)) { return; } DatasourcePlatform datasourcePlatform = (DatasourcePlatform)platform; datasourcePlatform.setTableQualifier(getTableQualifier()); datasourcePlatform.setTimestampQuery(this.timestampQuery); datasourcePlatform.setConversionManager(getConversionManager()); if (hasDefaultSequence()) { datasourcePlatform.setDefaultSequence(getDefaultSequence()); } datasourcePlatform.setSequences(getSequences()); datasourcePlatform.sequencesAfterCloneCleanup(); }
/** * Copy the state into the new platform. */ @Override public void copyInto(Platform platform) { if (!(platform instanceof DatasourcePlatform)) { return; } DatasourcePlatform datasourcePlatform = (DatasourcePlatform)platform; datasourcePlatform.setTableQualifier(getTableQualifier()); datasourcePlatform.setTimestampQuery(this.timestampQuery); datasourcePlatform.setConversionManager(getConversionManager()); if (hasDefaultSequence()) { datasourcePlatform.setDefaultSequence(getDefaultSequence()); } datasourcePlatform.setSequences(getSequences()); datasourcePlatform.sequencesAfterCloneCleanup(); datasourcePlatform.setDefaultNativeSequenceToTable(getDefaultNativeSequenceToTable()); datasourcePlatform.setDefaultSeqenceAtNextValue(getDefaultSeqenceAtNextValue()); }