Methods Summary |
---|
public void | addProperty(Property prop)
properties.add(prop);
prop.setPersistentClass( getPersistentClass() );
|
public boolean | containsProperty(Property prop)
return properties.contains(prop);
|
public void | createForeignKey()
getKey().createForeignKeyOfEntity( persistentClass.getEntityName() );
|
public void | createPrimaryKey()
//Primary key constraint
PrimaryKey pk = new PrimaryKey();
pk.setTable(table);
pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
table.setPrimaryKey(pk);
pk.addColumns( getKey().getColumnIterator() );
|
public java.lang.String | getCustomSQLDelete()
return customSQLDelete;
|
public org.hibernate.engine.ExecuteUpdateResultCheckStyle | getCustomSQLDeleteCheckStyle()
return deleteCheckStyle;
|
public java.lang.String | getCustomSQLInsert()
return customSQLInsert;
|
public org.hibernate.engine.ExecuteUpdateResultCheckStyle | getCustomSQLInsertCheckStyle()
return insertCheckStyle;
|
public java.lang.String | getCustomSQLUpdate()
return customSQLUpdate;
|
public org.hibernate.engine.ExecuteUpdateResultCheckStyle | getCustomSQLUpdateCheckStyle()
return updateCheckStyle;
|
public KeyValue | getKey()
return key;
|
public PersistentClass | getPersistentClass()
return persistentClass;
|
public java.util.Iterator | getPropertyIterator()
return properties.iterator();
|
public int | getPropertySpan()
return properties.size();
|
public Table | getTable()
return table;
|
public boolean | isCustomDeleteCallable()
return customDeleteCallable;
|
public boolean | isCustomInsertCallable()
return customInsertCallable;
|
public boolean | isCustomUpdateCallable()
return customUpdateCallable;
|
public boolean | isInverse()
return inverse;
|
public boolean | isLazy()
Iterator iter = getPropertyIterator();
while ( iter.hasNext() ) {
Property prop = (Property) iter.next();
if ( !prop.isLazy() ) return false;
}
return true;
|
public boolean | isOptional()
return optional;
|
public boolean | isSequentialSelect()
return sequentialSelect;
|
public void | setCustomSQLDelete(java.lang.String customSQLDelete, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)
this.customSQLDelete = customSQLDelete;
this.customDeleteCallable = callable;
this.deleteCheckStyle = checkStyle;
|
public void | setCustomSQLInsert(java.lang.String customSQLInsert, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)
this.customSQLInsert = customSQLInsert;
this.customInsertCallable = callable;
this.insertCheckStyle = checkStyle;
|
public void | setCustomSQLUpdate(java.lang.String customSQLUpdate, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)
this.customSQLUpdate = customSQLUpdate;
this.customUpdateCallable = callable;
this.updateCheckStyle = checkStyle;
|
public void | setInverse(boolean leftJoin)
this.inverse = leftJoin;
|
public void | setKey(KeyValue key)
this.key = key;
|
public void | setOptional(boolean nullable)
this.optional = nullable;
|
public void | setPersistentClass(PersistentClass persistentClass)
this.persistentClass = persistentClass;
|
public void | setSequentialSelect(boolean deferred)
this.sequentialSelect = deferred;
|
public void | setTable(Table table)
this.table = table;
|
public java.lang.String | toString()
return getClass().getName() + '(" + table.toString() + ')";
|