/** * Convenience method to perform cast from * {@link ClassMetaData#getPrimaryKeyFields}. */ public FieldMapping[] getPrimaryKeyFieldMappings() { return (FieldMapping[]) getPrimaryKeyFields(); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getPrimaryKeyFields}. */ public FieldMapping[] getPrimaryKeyFieldMappings() { return (FieldMapping[]) getPrimaryKeyFields(); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getPrimaryKeyFields}. */ public FieldMapping[] getPrimaryKeyFieldMappings() { return (FieldMapping[]) getPrimaryKeyFields(); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getPrimaryKeyFields}. */ public FieldMapping[] getPrimaryKeyFieldMappings() { return (FieldMapping[]) getPrimaryKeyFields(); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getPrimaryKeyFields}. */ public FieldMapping[] getPrimaryKeyFieldMappings() { return (FieldMapping[]) getPrimaryKeyFields(); }
/** * Return true if we should use the generic untyped PC handler for the * given unmapped relation. */ private boolean useUntypedPCHandler(ValueMapping val) { ClassMapping rel = val.getTypeMapping(); return rel.getIdentityType() == ClassMapping.ID_UNKNOWN || (rel.getIdentityType() == ClassMapping.ID_APPLICATION && (rel.getPrimaryKeyFields().length == 0 || (!rel.isOpenJPAIdentity() && Modifier.isAbstract (rel.getObjectIdType().getModifiers())))); }
/** * Return true if we should use the generic untyped PC handler for the * given unmapped relation. */ private boolean useUntypedPCHandler(ValueMapping val) { ClassMapping rel = val.getTypeMapping(); return rel.getIdentityType() == ClassMapping.ID_UNKNOWN || (rel.getIdentityType() == ClassMapping.ID_APPLICATION && (rel.getPrimaryKeyFields().length == 0 || (!rel.isOpenJPAIdentity() && Modifier.isAbstract (rel.getObjectIdType().getModifiers())))); }
/** * Return true if we should use the generic untyped PC handler for the * given unmapped relation. */ private boolean useUntypedPCHandler(ValueMapping val) { ClassMapping rel = val.getTypeMapping(); return rel.getIdentityType() == ClassMapping.ID_UNKNOWN || (rel.getIdentityType() == ClassMapping.ID_APPLICATION && (rel.getPrimaryKeyFields().length == 0 || (!rel.isOpenJPAIdentity() && Modifier.isAbstract (rel.getObjectIdType().getModifiers())))); }
/** * Return true if we should use the generic untyped PC handler for the * given unmapped relation. */ private boolean useUntypedPCHandler(ValueMapping val) { ClassMapping rel = val.getTypeMapping(); return rel.getIdentityType() == ClassMapping.ID_UNKNOWN || (rel.getIdentityType() == ClassMapping.ID_APPLICATION && (rel.getPrimaryKeyFields().length == 0 || (!rel.isOpenJPAIdentity() && Modifier.isAbstract (rel.getObjectIdType().getModifiers())))); }
/** * Return true if we should use the generic untyped PC handler for the * given unmapped relation. */ private boolean useUntypedPCHandler(ValueMapping val) { ClassMapping rel = val.getTypeMapping(); return rel.getIdentityType() == ClassMapping.ID_UNKNOWN || (rel.getIdentityType() == ClassMapping.ID_APPLICATION && (rel.getPrimaryKeyFields().length == 0 || (!rel.isOpenJPAIdentity() && Modifier.isAbstract (rel.getObjectIdType().getModifiers())))); }
/** * Validate the batch process. In some cases, we can't batch the statements * due to some restrictions. For example, if the GeneratedType=IDENTITY, * we have to disable the batch process because we need to get the ID value * right away for the in-memory entity to use. */ public boolean validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd ) { boolean disableBatch = false; if (getBatchLimit()== 0) return false; if (autoAssign != null && sm != null) { FieldMetaData[] fmd = cmd.getPrimaryKeyFields(); int i = 0; while (!disableBatch && i < fmd.length) { if (fmd[i].getValueStrategy() == ValueStrategies.AUTOASSIGN) disableBatch = true; i++; } } // go to each Dictionary to validate the batch capability if (!disableBatch) disableBatch = validateDBSpecificBatchProcess(disableBatch, row, autoAssign, sm, cmd); return disableBatch; }
/** * Validate the batch process. In some cases, we can't batch the statements * due to some restrictions. For example, if the GeneratedType=IDENTITY, * we have to disable the batch process because we need to get the ID value * right away for the in-memory entity to use. */ public boolean validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd ) { boolean disableBatch = false; if (getBatchLimit()== 0) return false; if (autoAssign != null && sm != null) { FieldMetaData[] fmd = cmd.getPrimaryKeyFields(); int i = 0; while (!disableBatch && i < fmd.length) { if (fmd[i].getValueStrategy() == ValueStrategies.AUTOASSIGN) disableBatch = true; i++; } } // go to each Dictionary to validate the batch capability if (!disableBatch) disableBatch = validateDBSpecificBatchProcess(disableBatch, row, autoAssign, sm, cmd); return disableBatch; }
/** * Validate the batch process. In some cases, we can't batch the statements * due to some restrictions. For example, if the GeneratedType=IDENTITY, * we have to disable the batch process because we need to get the ID value * right away for the in-memory entity to use. */ public boolean validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd ) { boolean disableBatch = false; if (getBatchLimit()== 0) return false; if (autoAssign != null && sm != null) { FieldMetaData[] fmd = cmd.getPrimaryKeyFields(); int i = 0; while (!disableBatch && i < fmd.length) { if (fmd[i].getValueStrategy() == ValueStrategies.AUTOASSIGN) disableBatch = true; i++; } } // go to each Dictionary to validate the batch capability if (!disableBatch) disableBatch = validateDBSpecificBatchProcess(disableBatch, row, autoAssign, sm, cmd); return disableBatch; }
/** * Validate the batch process. In some cases, we can't batch the statements * due to some restrictions. For example, if the GeneratedType=IDENTITY, * we have to disable the batch process because we need to get the ID value * right away for the in-memory entity to use. */ public boolean validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd ) { boolean disableBatch = false; if (getBatchLimit()== 0) return false; if (autoAssign != null && sm != null) { FieldMetaData[] fmd = cmd.getPrimaryKeyFields(); int i = 0; while (!disableBatch && i < fmd.length) { if (fmd[i].getValueStrategy() == ValueStrategies.AUTOASSIGN) disableBatch = true; i++; } } // go to each Dictionary to validate the batch capability if (!disableBatch) disableBatch = validateDBSpecificBatchProcess(disableBatch, row, autoAssign, sm, cmd); return disableBatch; }
/** * Validate the batch process. In some cases, we can't batch the statements * due to some restrictions. For example, if the GeneratedType=IDENTITY, * we have to disable the batch process because we need to get the ID value * right away for the in-memory entity to use. */ public boolean validateBatchProcess(RowImpl row, Column[] autoAssign, OpenJPAStateManager sm, ClassMapping cmd ) { boolean disableBatch = false; if (getBatchLimit()== 0) return false; if (autoAssign != null && sm != null) { FieldMetaData[] fmd = cmd.getPrimaryKeyFields(); int i = 0; while (!disableBatch && i < fmd.length) { if (fmd[i].getValueStrategy() == ValueStrategies.AUTOASSIGN) disableBatch = true; i++; } } // go to each Dictionary to validate the batch capability if (!disableBatch) disableBatch = validateDBSpecificBatchProcess(disableBatch, row, autoAssign, sm, cmd); return disableBatch; }
Object[] vals = new Object[getPrimaryKeyFields().length]; FieldMapping fm; Joinable join;
Object[] vals = new Object[getPrimaryKeyFields().length]; FieldMapping fm; Joinable join;
Object[] vals = new Object[getPrimaryKeyFields().length]; FieldMapping fm; Joinable join;
Object[] vals = new Object[getPrimaryKeyFields().length]; FieldMapping fm; Joinable join;
Object[] vals = new Object[getPrimaryKeyFields().length]; FieldMapping fm; Joinable join;