Tabnine Logo
DatasourcePlatform.getConversionManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getConversionManager
method
in
org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform

Best Java code snippets using org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.getConversionManager (Showing top 18 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
 * 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);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  /**
   * 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();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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());
}
org.eclipse.persistence.internal.databaseaccessDatasourcePlatformgetConversionManager

Javadoc

The platform hold its own instance of conversion manager to allow customization.

Popular methods of DatasourcePlatform

  • <init>
  • addOperator
  • appendParameter
    Add the parameter. Convert the parameter to a string and write it.
  • copyInto
    Copy the state into the new platform.
  • createConnectionCustomizer
    INTERNAL:
  • createPlatformDefaultSequence
    INTERNAL: Create platform-default Sequence
  • getCustomModifyValueForCall
    Allow for the platform to handle the representation of parameters specially.
  • getDefaultSequence
    Get default sequence
  • getEndDelimiter
    Delimiter to use for fields and tables using spaces or other special values. Some databases use diff
  • getPlatformOperators
    Return any platform-specific operators
  • getSequencePreallocationSize
  • getSequences
    INTERNAL: Returns a map of sequence names to Sequences (may be null).
  • getSequencePreallocationSize,
  • getSequences,
  • getStartDelimiter,
  • getTableQualifier,
  • getTimestampQuery,
  • hasDefaultSequence,
  • initializePlatformOperators,
  • sequencesAfterCloneCleanup,
  • setConversionManager

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JFrame (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now