public boolean isUpdateable() { // if the property mapping consists of all formulas, // make it non-updateable return updateable && !ArrayHelper.isAllFalse( value.getColumnUpdateability() ); }
public boolean isInsertable() { // if the property mapping consists of all formulas, // make it non-insertable final boolean[] columnInsertability = value.getColumnInsertability(); return insertable && ( columnInsertability.length==0 || !ArrayHelper.isAllFalse( columnInsertability ) ); }
private String determinePkByNaturalIdQuery(boolean[] valueNullness) { if ( !hasNaturalIdentifier() ) { throw new HibernateException( "Attempt to build natural-id -> PK resolution query for entity that does not define natural id" ); } // performance shortcut for cases where the natural-id is defined as completely non-nullable if ( isNaturalIdNonNullable() ) { if ( valueNullness != null && !ArrayHelper.isAllFalse( valueNullness ) ) { throw new HibernateException( "Null value(s) passed to lookup by non-nullable natural-id" ); } if ( cachedPkByNonNullableNaturalIdQuery == null ) { cachedPkByNonNullableNaturalIdQuery = generateEntityIdByNaturalIdSql( null ); } return cachedPkByNonNullableNaturalIdQuery; } // Otherwise, regenerate it each time return generateEntityIdByNaturalIdSql( valueNullness ); }
@Override protected int doUpdateRows(Serializable id, PersistentCollection collection, SharedSessionContractImplementor session) throws HibernateException { if ( ArrayHelper.isAllFalse( elementColumnIsSettable ) ) { return 0;
public boolean isUpdateable() { // if the property mapping consists of all formulas, // make it non-updateable return updateable && !ArrayHelper.isAllFalse( value.getColumnUpdateability() ); }
@Override public boolean isUpdateable() { // if the property mapping consists of all formulas, // make it non-updateable return updateable && !ArrayHelper.isAllFalse( value.getColumnUpdateability() ); }
public boolean isInsertable() { // if the property mapping consists of all formulas, // make it non-insertable final boolean[] columnInsertability = value.getColumnInsertability(); return insertable && ( columnInsertability.length==0 || !ArrayHelper.isAllFalse( columnInsertability ) ); }
public boolean isUpdateable() { // if the property mapping consists of all formulas, // make it non-updateable return updateable && !ArrayHelper.isAllFalse( value.getColumnUpdateability() ); }
public boolean isInsertable() { // if the property mapping consists of all formulas, // make it non-insertable final boolean[] columnInsertability = value.getColumnInsertability(); return insertable && ( columnInsertability.length==0 || !ArrayHelper.isAllFalse( columnInsertability ) ); }
@Override public boolean isInsertable() { // if the property mapping consists of all formulas, // make it non-insertable final boolean[] columnInsertability = value.getColumnInsertability(); return insertable && ( columnInsertability.length==0 || !ArrayHelper.isAllFalse( columnInsertability ) ); }
@Override protected int doUpdateRows(Serializable key, PersistentCollection collection, SharedSessionContractImplementor session) throws HibernateException { if ( ArrayHelper.isAllFalse( elementColumnIsSettable ) ) { return 0;
throws HibernateException { if ( ArrayHelper.isAllFalse(elementColumnIsSettable) ) return 0;
throws HibernateException { if ( ArrayHelper.isAllFalse(elementColumnIsSettable) ) return 0;