/** * INTERNAL: * Conform an expression which uses the operator "regexp" for an in-memory query * @return Boolean (TRUE, FALSE, null == unknown) */ public static Boolean conformRegexp(Object left, Object right) { return getPlatform().conformRegexp(left, right); }
/** * INTERNAL: * Return a new controller. */ public AbstractTransactionController() { this.unitsOfWork = JavaPlatform.getConcurrentMap(); this.activeUnitOfWorkThreadLocal = new ThreadLocal(); }
Boolean doesLikeConform = JavaPlatform.conformLike(left, ((Vector)right).get(0)); if (doesLikeConform != null) { if (doesLikeConform.booleanValue()) { Boolean doesConform = JavaPlatform.conformRegexp(left, ((Vector)right).get(0)); if (doesConform != null) { return doesConform.booleanValue();
Boolean doesLikeConform = JavaPlatform.conformLike(left, right); if (doesLikeConform != null) { if (doesLikeConform.booleanValue()) {
Object result = resultSet.getObject(columnNumber); if(!(result instanceof OPAQUE)) { if(JavaPlatform.isSQLXML(result)) { return JavaPlatform.getStringAndFreeSQLXML(result); } else {
/** * INTERNAL: * Get the object from the JDBC Result set. Added to allow other platforms to * override. * @see org.eclipse.persistence.oraclespecific.Oracle9Platform */ public Object getObjectFromResultSet(ResultSet resultSet, int columnNumber, int type, AbstractSession session) throws java.sql.SQLException { Object objectFromResultSet = resultSet.getObject(columnNumber); if (objectFromResultSet != null){ if(structConverters != null && type == Types.STRUCT){ String structType = ((Struct)objectFromResultSet).getSQLTypeName(); if (getStructConverters().containsKey(structType)) { return getStructConverters().get(structType).convertToObject((Struct)objectFromResultSet); } } else if(type == Types_SQLXML) { return JavaPlatform.getStringAndFreeSQLXML(objectFromResultSet); } } return objectFromResultSet; }
Boolean doesLikeConform = JavaPlatform.conformLike(left, ((Vector)right).get(0)); if (doesLikeConform != null) { if (doesLikeConform.booleanValue()) { Boolean doesConform = JavaPlatform.conformRegexp(left, ((Vector)right).get(0)); if (doesConform != null) { return doesConform.booleanValue();
/** * INTERNAL: * Get the object from the JDBC Result set. Added to allow other platforms to * override. * @see org.eclipse.persistence.oraclespecific.Oracle9Platform */ public Object getObjectFromResultSet(ResultSet resultSet, int columnNumber, int type, AbstractSession session) throws java.sql.SQLException { Object objectFromResultSet = resultSet.getObject(columnNumber); if (objectFromResultSet != null){ if(structConverters != null && type == Types.STRUCT){ String structType = ((Struct)objectFromResultSet).getSQLTypeName(); if (getStructConverters().containsKey(structType)) { return getStructConverters().get(structType).convertToObject((Struct)objectFromResultSet); } } else if(type == Types_SQLXML) { return JavaPlatform.getStringAndFreeSQLXML(objectFromResultSet); } } return objectFromResultSet; }
/** * INTERNAL: * Conform an expression which uses the operator "like" for an in-memory query * @return Boolean (TRUE, FALSE, null == unknown) */ public static Boolean conformLike(Object left, Object right) { return getPlatform().conformLike(left, right); }
this.sequencingListeners = JavaPlatform.getConcurrentMap(); this.currentlyProcessedListeners = JavaPlatform.getConcurrentMap();
/** * INTERNAL: * Casts the passed object to SQLXML and calls getString and free methods */ public static String getStringAndFreeSQLXML(Object sqlXml) throws SQLException { return getPlatform().getStringAndFreeSQLXML(sqlXml); } }
/** * INTERNAL: * Indicates whether the passed object implements java.sql.SQLXML introduced in jdk 1.6 */ public static boolean isSQLXML(Object object) { return getPlatform().isSQLXML(object); }
/** * INTERNAL: * Conform an expression which uses the operator "like" for an in-memory query * @return Boolean (TRUE, FALSE, null == unknown) */ public static Boolean conformLike(Object left, Object right) { return getPlatform().conformLike(left, right); }
/** * INTERNAL: * Get the Map to store the query cache in */ public static Map getConcurrentMap() { return getPlatform().getConcurrentMap(); }