Module org.eclipse.persistence.core
Interface CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>
- All Known Subinterfaces:
Platform
- All Known Implementing Classes:
AccessPlatform,AQPlatform,AttunityPlatform,CloudscapePlatform,DatabasePlatform,DatabasePlatform,DatasourcePlatform,DB2MainframePlatform,DB2Platform,DB2ZPlatform,DBasePlatform,DerbyPlatform,DOMPlatform,EISPlatform,FirebirdPlatform,H2Platform,HANAPlatform,HSQLPlatform,Informix11Platform,InformixPlatform,JavaDBPlatform,JMSPlatform,MariaDBPlatform,MaxDBPlatform,MongoPlatform,MySQLPlatform,Oracle10Platform,Oracle10Platform,Oracle11Platform,Oracle11Platform,Oracle12Platform,Oracle12Platform,Oracle18Platform,Oracle18Platform,Oracle19Platform,Oracle19Platform,Oracle21Platform,Oracle21Platform,Oracle23Platform,Oracle23Platform,Oracle8Platform,Oracle8Platform,Oracle9Platform,Oracle9Platform,OracleNoSQLPlatform,OracleNoSQLPlatform,OraclePlatform,PervasivePlatform,PointBasePlatform,PostgreSQL10Platform,PostgreSQLPlatform,SAXPlatform,SQLAnywherePlatform,SQLServerPlatform,SybasePlatform,SymfowarePlatform,TimesTen7Platform,TimesTenPlatform,XMLFilePlatform,XMLPlatform
public interface CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>
-
Method Summary
Modifier and TypeMethodDescription<T> TconvertObject(Object sourceObject, Class<T> javaClass) Convert the object to the appropriate type by invoking the appropriate ConversionManager method<T> TconvertObject(Object sourceObject, Class<T> javaClass, AbstractSession session) Convert the object to the appropriate type by invoking the appropriate ConversionManager method.The platform hold its own instance of conversion manager to allow customization.
-
Method Details
-
convertObject
Convert the object to the appropriate type by invoking the appropriate ConversionManager method- Parameters:
sourceObject- the object that must be convertedjavaClass- the class that the object must be converted to- Returns:
- the newly converted object
- Throws:
ConversionException- all exceptions will be thrown as this type.
-
convertObject
<T> T convertObject(Object sourceObject, Class<T> javaClass, AbstractSession session) throws ConversionException Convert the object to the appropriate type by invoking the appropriate ConversionManager method.- Parameters:
sourceObject- the object that must be convertedjavaClass- the class that the object must be converted tosession- current database session- Returns:
- the newly converted object
- Throws:
ConversionException- all exceptions will be thrown as this type.
-
getConversionManager
CONVERSION_MANAGER getConversionManager()The platform hold its own instance of conversion manager to allow customization.
-