/** * Shortens the given name to the given maximum length, then checks that * it is not a reserved word. If it is reserved, appends a "0". If * the name conflicts with an existing schema component and uniqueness * checking is enabled, the last character is replace with '0', then * '1', etc. * Note that the given max len may be 0 if the database metadata is * incomplete. * * Note: If the name is delimited, make sure the ending delimiter is * not stripped off. */ protected DBIdentifier makeNameValid(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) { return namingUtil.makeIdentifierValid(name, set, maxLen, checkForUniqueness); }
/** * Shortens the given name to the given maximum length, then checks that * it is not a reserved word. If it is reserved, appends a "0". If * the name conflicts with an existing schema component and uniqueness * checking is enabled, the last character is replace with '0', then * '1', etc. * Note that the given max len may be 0 if the database metadata is * incomplete. * * Note: If the name is delimited, make sure the ending delimiter is * not stripped off. */ protected DBIdentifier makeNameValid(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) { return namingUtil.makeIdentifierValid(name, set, maxLen, checkForUniqueness); }
/** * Shortens the given name to the given maximum length, then checks that * it is not a reserved word. If it is reserved, appends a "0". If * the name conflicts with an existing schema component and uniqueness * checking is enabled, the last character is replace with '0', then * '1', etc. * Note that the given max len may be 0 if the database metadata is * incomplete. * * Note: If the name is delimited, make sure the ending delimiter is * not stripped off. */ protected DBIdentifier makeNameValid(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) { return namingUtil.makeIdentifierValid(name, set, maxLen, checkForUniqueness); }
/** * Shortens the given name to the given maximum length, then checks that * it is not a reserved word. If it is reserved, appends a "0". If * the name conflicts with an existing schema component and uniqueness * checking is enabled, the last character is replace with '0', then * '1', etc. * Note that the given max len may be 0 if the database metadata is * incomplete. * * Note: If the name is delimited, make sure the ending delimiter is * not stripped off. */ protected DBIdentifier makeNameValid(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) { return namingUtil.makeIdentifierValid(name, set, maxLen, checkForUniqueness); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign sequence. */ protected String getOpenJPA3GeneratedKeySequenceName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "SEQ"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }
/** * Returns a OpenJPA 3-compatible name for an auto-assign trigger. */ protected String getOpenJPA3GeneratedKeyTriggerName(Column col) { Table table = col.getTable(); DBIdentifier sName = DBIdentifier.preCombine(table.getIdentifier(), "TRIG"); return toDBName(getNamingUtil().makeIdentifierValid(sName, table.getSchema(). getSchemaGroup(), maxTableNameLength, true)); }