本文整理了Java中org.hibernate.mapping.Column.equals()
方法的一些代码示例,展示了Column.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Column.equals()
方法的具体详情如下:
包路径:org.hibernate.mapping.Column
类名称:Column
方法名:equals
暂无
代码示例来源:origin: hibernate/hibernate-orm
@Override
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* Return the column which is identified by column provided as argument.
*
* @param column column with atleast a name.
* @return the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
*/
public Column getColumn(Column column) {
if ( column == null ) {
return null;
}
Column myColumn = (Column) columns.get( column.getCanonicalName() );
return column.equals( myColumn ) ?
myColumn :
null;
}
代码示例来源:origin: hibernate/hibernate-orm
private boolean propertyIteratorContainsColumn(Iterator propertyIterator, Column column) {
for ( Iterator it = propertyIterator; it.hasNext(); ) {
final Property property = (Property) it.next();
for ( Iterator<Selectable> selectableIterator = property.getColumnIterator(); selectableIterator.hasNext(); ) {
final Selectable selectable = selectableIterator.next();
if ( column.equals( selectable ) ) {
final Column iteratedColumn = (Column) selectable;
if ( column.getValue().getTable().equals( iteratedColumn.getValue().getTable() ) ) {
return true;
}
}
}
}
return false;
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
@Override
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: hibernate/hibernate
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
public boolean equals(Object object) {
return object instanceof Column && equals( (Column) object );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
/**
* Return the column which is identified by column provided as argument.
*
* @param column column with atleast a name.
* @return the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
*/
public Column getColumn(Column column) {
if ( column == null ) {
return null;
}
Column myColumn = (Column) columns.get( column.getCanonicalName() );
return column.equals( myColumn ) ?
myColumn :
null;
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
/**
* Return the column which is identified by column provided as argument.
*
* @param column column with atleast a name.
* @return the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
*/
public Column getColumn(Column column) {
if ( column == null ) {
return null;
}
Column myColumn = (Column) columns.get( column.getCanonicalName() );
return column.equals( myColumn ) ?
myColumn :
null;
}
代码示例来源:origin: hibernate/hibernate
/**
* Return the column which is identified by column provided as argument.
*
* @param column column with atleast a name.
* @return the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
*/
public Column getColumn(Column column) {
Column myColumn = ( Column ) columns.get( column.getName() );
if ( column.equals( myColumn ) ) {
return myColumn;
}
else {
return null;
}
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
/**
* Return the column which is identified by column provided as argument.
*
* @param column column with atleast a name.
*
* @return the underlying column or null if not inside this table. Note: the instance *can* be different than the input parameter, but the name will be the same.
*/
@Override
public Column getColumn(Column column) {
if ( column == null ) {
return null;
}
Column myColumn = columns.get( column.getCanonicalName() );
return column.equals( myColumn ) ?
myColumn :
null;
}
代码示例来源:origin: org.hibernate/hibernate-tools
private List<Column> columnMatches(Column[] myPkColumns, int offset, ForeignKey key) {
if(key.getColumnSpan()>(myPkColumns.length-offset)) {
return null; // not enough columns in the key
}
List<Column> columns = new ArrayList<Column>();
for (int j = 0; j < key.getColumnSpan(); j++) {
Column column = myPkColumns[j+offset];
if(!column.equals(key.getColumn(j))) {
return null;
} else {
columns.add(column);
}
}
return columns.isEmpty()?null:columns;
}
代码示例来源:origin: hibernate/hibernate-tools
private List<Column> columnMatches(Column[] myPkColumns, int offset, ForeignKey key) {
if(key.getColumnSpan()>(myPkColumns.length-offset)) {
return null; // not enough columns in the key
}
List<Column> columns = new ArrayList<Column>();
for (int j = 0; j < key.getColumnSpan(); j++) {
Column column = myPkColumns[j+offset];
if(!column.equals(key.getColumn(j))) {
return null;
} else {
columns.add(column);
}
}
return columns.isEmpty()?null:columns;
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
private boolean propertyIteratorContainsColumn(Iterator propertyIterator, Column column) {
while ( propertyIterator.hasNext() ) {
final Property property = (Property) propertyIterator.next();
for ( MappedColumn mappedColumn : property.getMappedColumns() ) {
if ( column.equals( mappedColumn ) ) {
final Column iteratedColumn = (Column) mappedColumn;
if ( column.getTableName().equals( iteratedColumn.getTableName() ) ) {
return true;
}
}
}
}
return false;
}
代码示例来源:origin: hibernate/hibernate-tools
public boolean isForeignKeyCollectionInverse(String name, TableIdentifier foreignKeyTable, List<?> columns, TableIdentifier foreignKeyReferencedTable, List<?> referencedColumns) {
Table fkTable = getRuntimeInfo().getTable(foreignKeyTable);
if(fkTable==null) {
return true; // we don't know better
}
if(isManyToManyTable(fkTable)) {
// if the reference column is the first one then we are inverse.
Column column = fkTable.getColumn(0);
Column fkColumn = (Column) referencedColumns.get(0);
if(fkColumn.equals(column)) {
return true;
} else {
return false;
}
}
return true;
}
代码示例来源:origin: org.hibernate/hibernate-tools
public boolean isForeignKeyCollectionInverse(String name, TableIdentifier foreignKeyTable, List<?> columns, TableIdentifier foreignKeyReferencedTable, List<?> referencedColumns) {
Table fkTable = getRuntimeInfo().getTable(foreignKeyTable);
if(fkTable==null) {
return true; // we don't know better
}
if(isManyToManyTable(fkTable)) {
// if the reference column is the first one then we are inverse.
Column column = fkTable.getColumn(0);
Column fkColumn = (Column) referencedColumns.get(0);
if(fkColumn.equals(column)) {
return true;
} else {
return false;
}
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!