public boolean isNameTaken(DBIdentifier name) { if (DBIdentifier.isEmpty(name)) { return true; } if (_names == null) { return false; } DBIdentifier sName = DBIdentifier.toUpper(name); return _names.contains(sName); }
public boolean isNameTaken(DBIdentifier name) { if (DBIdentifier.isEmpty(name)) { return true; } if (_names == null) { return false; } DBIdentifier sName = DBIdentifier.toUpper(name); return _names.contains(sName); }
public boolean isNameTaken(DBIdentifier name) { if (DBIdentifier.isEmpty(name)) { return true; } if (_names == null) { return false; } DBIdentifier sName = DBIdentifier.toUpper(name); return _names.contains(sName); }
public boolean isNameTaken(DBIdentifier name) { if (DBIdentifier.isEmpty(name)) { return true; } if (_names == null) { return false; } DBIdentifier sName = DBIdentifier.toUpper(name); return _names.contains(sName); }
/** * Returns the fully qualified name as a string */ public String getName() { // If no schema or object or table qualifier, return the base name if (DBIdentifier.isEmpty(_schemaName) && DBIdentifier.isEmpty(_objectTableName)) { return getBaseName(); } DBIdentifier[] names = QualifiedDBIdentifier.splitPath(this); return DBIdentifier.join(names); }
/** * Returns the fully qualified name as a string */ public String getName() { // If no schema or object or table qualifier, return the base name if (DBIdentifier.isEmpty(_schemaName) && DBIdentifier.isEmpty(_objectTableName)) { return getBaseName(); } DBIdentifier[] names = QualifiedDBIdentifier.splitPath(this); return DBIdentifier.join(names); }
/** * Returns the fully qualified name as a string */ public String getName() { // If no schema or object or table qualifier, return the base name if (DBIdentifier.isEmpty(_schemaName) && DBIdentifier.isEmpty(_objectTableName)) { return getBaseName(); } DBIdentifier[] names = QualifiedDBIdentifier.splitPath(this); return DBIdentifier.join(names); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Returns true if the identifier is delimited. */ public boolean isDelimited() { if (DBIdentifier.isEmpty(this)) { return false; } return Normalizer.isDelimited(getNameInternal()); }
/** * Form a qualified table name from a schema and table name. */ private DBIdentifier toTableIdentifier(String schema, String table) { DBIdentifier sName = DBIdentifier.newSchema(schema, delimit()); DBIdentifier tName = DBIdentifier.newTable(table, delimit()); if (DBIdentifier.isEmpty(tName) || DBIdentifier.isEmpty(sName)) { return tName; } return QualifiedDBIdentifier.newPath(sName, tName); }
/** * Form a qualified table name from a schema and table name. */ private DBIdentifier toTableIdentifier(String schema, String table) { DBIdentifier sName = DBIdentifier.newSchema(schema, delimit()); DBIdentifier tName = DBIdentifier.newTable(table, delimit()); if (DBIdentifier.isEmpty(tName) || DBIdentifier.isEmpty(sName)) { return tName; } return QualifiedDBIdentifier.newPath(sName, tName); }
/** * Form a qualified table name from a schema and table name. */ private DBIdentifier toTableIdentifier(String schema, String table) { DBIdentifier sName = DBIdentifier.newSchema(schema, delimit()); DBIdentifier tName = DBIdentifier.newTable(table, delimit()); if (DBIdentifier.isEmpty(tName) || DBIdentifier.isEmpty(sName)) { return tName; } return QualifiedDBIdentifier.newPath(sName, tName); }
/** * Gets the table where this version columns are mapped. */ private Table getSingleTable(Version version, Column[] cols) { if (cols == null || cols.length == 0 || DBIdentifier.isEmpty(cols[0].getTableIdentifier())) return version.getClassMapping().getTable(); return version.getClassMapping().getTable().getSchema() .getTable(cols[0].getTableIdentifier()); }
/** * Gets the table where this version columns are mapped. */ private Table getSingleTable(Version version, Column[] cols) { if (cols == null || cols.length == 0 || DBIdentifier.isEmpty(cols[0].getTableIdentifier())) return version.getClassMapping().getTable(); return version.getClassMapping().getTable().getSchema() .getTable(cols[0].getTableIdentifier()); }
/** * Gets the table where this version columns are mapped. */ private Table getSingleTable(Version version, Column[] cols) { if (cols == null || cols.length == 0 || DBIdentifier.isEmpty(cols[0].getTableIdentifier())) return version.getClassMapping().getTable(); return version.getClassMapping().getTable().getSchema() .getTable(cols[0].getTableIdentifier()); }
/** * Return the preferred database type name for the given column's type * from {@link Types}. */ public String getTypeName(Column col) { if (!DBIdentifier.isEmpty(col.getTypeIdentifier())) return appendSize(col, toDBName(col.getTypeIdentifier())); if (col.isAutoAssigned() && autoAssignTypeName != null) return appendSize(col, autoAssignTypeName); return appendSize(col, getTypeName(col.getType())); }
/** * Return the preferred database type name for the given column's type * from {@link Types}. */ public String getTypeName(Column col) { if (!DBIdentifier.isEmpty(col.getTypeIdentifier())) return appendSize(col, toDBName(col.getTypeIdentifier())); if (col.isAutoAssigned() && autoAssignTypeName != null) return appendSize(col, autoAssignTypeName); return appendSize(col, getTypeName(col.getType())); }
/** * Return the preferred database type name for the given column's type * from {@link Types}. */ public String getTypeName(Column col) { if (!DBIdentifier.isEmpty(col.getTypeIdentifier())) return appendSize(col, toDBName(col.getTypeIdentifier())); if (col.isAutoAssigned() && autoAssignTypeName != null) return appendSize(col, autoAssignTypeName); return appendSize(col, getTypeName(col.getType())); }
/** * Return the preferred database type name for the given column's type * from {@link Types}. */ public String getTypeName(Column col) { if (!DBIdentifier.isEmpty(col.getTypeIdentifier())) return appendSize(col, toDBName(col.getTypeIdentifier())); if (col.isAutoAssigned() && autoAssignTypeName != null) return appendSize(col, autoAssignTypeName); return appendSize(col, getTypeName(col.getType())); }