/** * Return the serialized bytes for the given object. */ public byte[] serialize(Object val, JDBCStore store) throws SQLException { if (val == null) return null; if (val instanceof SerializedData) return ((SerializedData) val).bytes; return Serialization.serialize(val, store.getContext()); }
/** * Return the serialized bytes for the given object. */ public byte[] serialize(Object val, JDBCStore store) throws SQLException { if (val == null) return null; if (val instanceof SerializedData) return ((SerializedData) val).bytes; return Serialization.serialize(val, store.getContext()); }
/** * Return the serialized bytes for the given object. */ public byte[] serialize(Object val, JDBCStore store) throws SQLException { if (val == null) return null; if (val instanceof SerializedData) return ((SerializedData) val).bytes; return Serialization.serialize(val, store.getContext()); }
/** * Return the serialized bytes for the given object. */ public byte[] serialize(Object val, JDBCStore store) throws SQLException { if (val == null) return null; if (val instanceof SerializedData) return ((SerializedData) val).bytes; return Serialization.serialize(val, store.getContext()); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch, int lockLevel) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store.getContext(), store, fetch, lockLevel); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store.getContext(), store, fetch, fetch.getReadLockLevel()); }
public Object deriveKey(JDBCStore store, Object value) { OpenJPAStateManager sm = RelationStrategies.getStateManager(value, store.getContext()); return (sm == null) ? null : sm.fetchField(field.getKey(). getValueMappedByMetaData().getIndex(), false); }
public Object deriveKey(JDBCStore store, Object value) { OpenJPAStateManager sm = RelationStrategies.getStateManager(value, store.getContext()); return (sm == null) ? null : sm.fetchField(field.getKey(). getValueMappedByMetaData().getIndex(), false); }
public void insert(OpenJPAStateManager sm, JDBCStore store, RowManager rm) throws SQLException { Row row = field.getRow(sm, store, rm, Row.ACTION_INSERT); if (row == null) return; OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); insert(sm, em, store, rm, row); }
public Object deriveKey(JDBCStore store, Object value) { OpenJPAStateManager sm = RelationStrategies.getStateManager(value, store.getContext()); return (sm == null) ? null : sm.fetchField(field.getKey(). getValueMappedByMetaData().getIndex(), false); }
public Object deriveKey(JDBCStore store, Object value) { OpenJPAStateManager sm = RelationStrategies.getStateManager(value, store.getContext()); return (sm == null) ? null : sm.fetchField(field.getKey(). getValueMappedByMetaData().getIndex(), false); }
public Object deriveKey(JDBCStore store, Object value) { OpenJPAStateManager sm = RelationStrategies.getStateManager(value, store.getContext()); return (sm == null) ? null : sm.fetchField(field.getKey(). getValueMappedByMetaData().getIndex(), false); }
public void customDelete(OpenJPAStateManager sm, JDBCStore store) throws SQLException { OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); if (em == null) em = new NullEmbeddedStateManager(sm, field); FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings(); for (int i = 0; i < fields.length; i++) if (!Boolean.FALSE.equals(fields[i].isCustomDelete(em, store))) fields[i].customDelete(em, store); }
public void customInsert(OpenJPAStateManager sm, JDBCStore store) throws SQLException { OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); if (em == null) em = new NullEmbeddedStateManager(sm, field); FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings(); for (int i = 0; i < fields.length; i++) if (!Boolean.FALSE.equals(fields[i].isCustomInsert(em, store))) fields[i].customInsert(em, store); }
public void customDelete(OpenJPAStateManager sm, JDBCStore store) throws SQLException { OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); if (em == null) em = new NullEmbeddedStateManager(sm, field); FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings(); for (int i = 0; i < fields.length; i++) if (!Boolean.FALSE.equals(fields[i].isCustomDelete(em, store))) fields[i].customDelete(em, store); }
public void customInsert(OpenJPAStateManager sm, JDBCStore store) throws SQLException { OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); if (em == null) em = new NullEmbeddedStateManager(sm, field); FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings(); for (int i = 0; i < fields.length; i++) if (!Boolean.FALSE.equals(fields[i].isCustomInsert(em, store))) fields[i].customInsert(em, store); }
public void customDelete(OpenJPAStateManager sm, JDBCStore store) throws SQLException { OpenJPAStateManager em = store.getContext().getStateManager (sm.fetchObject(field.getIndex())); if (em == null) em = new NullEmbeddedStateManager(sm, field); FieldMapping[] fields = field.getEmbeddedMapping().getFieldMappings(); for (int i = 0; i < fields.length; i++) if (!Boolean.FALSE.equals(fields[i].isCustomDelete(em, store))) fields[i].customDelete(em, store); }
/** * Return the class loader to use for loading class names. */ private ClassLoader getClassLoader(JDBCStore store) { return store.getConfiguration().getClassResolverInstance(). getClassLoader(disc.getClassMapping().getDescribedType(), store.getContext().getClassLoader()); } }
/** * Return the class loader to use for loading class names. */ private ClassLoader getClassLoader(JDBCStore store) { return store.getConfiguration().getClassResolverInstance(). getClassLoader(disc.getClassMapping().getDescribedType(), store.getContext().getClassLoader()); } }
/** * Return the class loader to use for loading class names. */ private ClassLoader getClassLoader(JDBCStore store) { return store.getConfiguration().getClassResolverInstance(). getClassLoader(disc.getClassMapping().getDescribedType(), store.getContext().getClassLoader()); } }