Methods Summary |
---|
public void | disconnect()
if ( _foo!=null) _foo.disconnect();
_foo=null;
|
public boolean | equalsFoo(org.hibernate.test.legacy.Foo other)
if ( _bytes!=other._bytes ) {
if ( _bytes==null || other._bytes==null ) return false;
if ( _bytes.length!=other._bytes.length ) return false;
for ( int i=0; i< _bytes.length; i++) {
if ( _bytes[i] != other._bytes[i] ) return false;
}
}
return ( this._bool == other._bool )
&& ( ( this._boolean == other._boolean ) || ( this._boolean.equals(other._boolean) ) )
&& ( ( this._byte == other._byte ) || ( this._byte.equals(other._byte) ) )
//&& ( ( this._date == other._date ) || ( this._date.getDate() == other._date.getDate() && this._date.getMonth() == other._date.getMonth() && this._date.getYear() == other._date.getYear() ) )
&& ( ( this._double == other._double ) || ( this._double.equals(other._double) ) )
&& ( ( this._float == other._float ) || ( this._float.equals(other._float) ) )
&& ( this._int == other._int )
&& ( ( this._integer == other._integer ) || ( this._integer.equals(other._integer) ) )
&& ( ( this._long == other._long ) || ( this._long.equals(other._long) ) )
&& ( this._null == other._null )
&& ( ( this._short == other._short ) || ( this._short.equals(other._short) ) )
&& ( ( this._string == other._string) || ( this._string.equals(other._string) ) )
//&& ( ( this._timestamp==other._timestamp) || ( this._timestamp.getDate() == other._timestamp.getDate() && this._timestamp.getYear() == other._timestamp.getYear() && this._timestamp.getMonth() == other._timestamp.getMonth() ) )
&& ( this._zero == other._zero )
&& ( ( this._foo == other._foo ) || ( this._foo.getKey().equals( other._foo.getKey() ) ) )
&& ( ( this.blob == other.blob ) || ( this.blob.equals(other.blob) ) )
&& ( this.yesno == other.yesno )
&& ( ( this.binary == other.binary ) || java.util.Arrays.equals(this.binary, other.binary) )
&& ( this.key.equals(other.key) )
&& ( this.theLocale.equals(other.theLocale) )
&& ( ( this.custom == other.custom ) || ( this.custom[0].equals(other.custom[0]) && this.custom[1].equals(other.custom[1]) ) );
|
public void | finalize()
|
public byte[] | getBinary()
return binary;
|
public java.io.Serializable | getBlob()
return blob;
|
public boolean | getBool()
return _bool;
|
public java.lang.Boolean | getBoolean()
return _boolean;
|
public java.lang.Byte | getByte()
return _byte;
|
public byte[] | getBytes()
return _bytes;
|
public java.lang.Character | getChar()
return new Character(_char);
|
public FooComponent | getComponent()
return component;
|
public java.lang.String[] | getCustom()
return custom;
|
public java.util.Date | getDate()
return _date;
|
public Fee | getDependent()
return dependent;
|
public java.lang.Double | getDouble()
return _double;
|
public java.lang.Float | getFloat()
return _float;
|
public FooProxy | getFoo()
return _foo;
|
public float | getFormula()
return formula;
|
public int | getInt()
return _int;
|
public java.lang.Integer | getInteger()
return _integer;
|
public java.lang.String | getJoinedProp()
return joinedProp;
|
public java.lang.String | getKey()
return key;
|
public java.util.Locale | getLocale()Returns the locale.
return theLocale;
|
public java.lang.Long | getLong()
return _long;
|
public java.lang.Integer | getNull()
return _null;
|
public java.io.Serializable | getNullBlob()
return nullBlob;
|
public FooComponent | getNullComponent()
return null;
|
public java.lang.Short | getShort()
return _short;
|
public java.lang.String | getString()
return _string;
|
public java.util.Date | getTimestamp()
return _timestamp;
|
public int | getVersion()Returns the version.
return version;
|
public java.util.Calendar | getVersionCalendar()
return versionCalendar;
|
public java.sql.Timestamp | getVersionTimestamp()Returns the versionTimestamp.
return versionTimestamp;
|
public int | getX()
return x;
|
public boolean | getYesno()
return yesno;
|
public float | getZero()
return _zero;
|
public boolean | onDelete(org.hibernate.Session db)
return NO_VETO;
|
public void | onLoad(org.hibernate.Session db, java.io.Serializable id)
|
public boolean | onSave(org.hibernate.Session db)
_string = "a string";
_date = new Date(123);
_timestamp = new Date( System.currentTimeMillis() );
_integer = new Integer( -666 );
_long = new Long( 696969696969696969l - count++ );
_short = new Short("42");
_float = new Float( 6666.66f );
//_double = new Double( 1.33e-69 ); // this double is too big for the sap db jdbc driver
_double = new Double( 1.12e-36 );
_boolean = new Boolean(true);
_byte = new Byte( (byte) 127 );
_int = 2;
_char = '@";
_bytes = _string.getBytes();
Struct s = new Struct();
s.name="name";
s.count = 69;
blob = s;
binary = ( _string + "yada yada yada" ).getBytes();
custom = new String[] { "foo", "bar" };
component = new FooComponent("foo", 12, new Date[] { _date, _timestamp, null, new Date() }, new FooComponent("bar", 666, new Date[] { new Date(123456l), null }, null ) );
component.setGlarch( new Glarch() );
dependent = new Fee();
dependent.setFi( "belongs to foo # " + getKey() );
theLocale = Locale.getDefault();
return NO_VETO;
|
public boolean | onUpdate(org.hibernate.Session db)
return NO_VETO;
|
public void | setBinary(byte[] binary)
this.binary = binary;
|
public void | setBlob(java.io.Serializable blob)
this.blob = blob;
|
public void | setBool(boolean bool)
_bool = bool;
|
public void | setBoolean(java.lang.Boolean bboolean)
_boolean = bboolean;
|
public void | setByte(java.lang.Byte bbyte)
_byte = bbyte;
|
public void | setBytes(byte[] bytes)
_bytes = bytes;
|
public void | setChar(java.lang.Character _char)
this._char = _char.charValue();
|
public void | setComponent(FooComponent component)
this.component = component;
|
public void | setCustom(java.lang.String[] custom)
this.custom = custom;
|
public void | setDate(java.util.Date date)
_date = date;
|
public void | setDependent(Fee dependent)
this.dependent = dependent;
|
public void | setDouble(java.lang.Double ddouble)
_double = ddouble;
|
public void | setFloat(java.lang.Float ffloat)
_float = ffloat;
|
public void | setFoo(FooProxy foo)
_foo = foo;
|
public void | setFormula(float f)
formula = f;
|
public void | setInt(int iint)
_int = iint;
|
public void | setInteger(java.lang.Integer iinteger)
_integer = iinteger;
|
public void | setJoinedProp(java.lang.String joinedProp)
this.joinedProp = joinedProp;
|
public void | setKey(java.lang.String key)
this.key = key;
|
public void | setLocale(java.util.Locale locale)Sets the locale.
this.theLocale = locale;
|
public void | setLong(java.lang.Long llong)
_long = llong;
|
public void | setNull(java.lang.Integer nnull)
_null = nnull;
|
public void | setNullBlob(java.io.Serializable nullBlob)
this.nullBlob = nullBlob;
|
public void | setNullComponent(FooComponent fc)
if (fc!=null) throw new Exception("Null component");
|
public void | setShort(java.lang.Short sshort)
_short = sshort;
|
public void | setString(java.lang.String string)
_string = string;
//if (_foo!=null) _foo.setString(string);
|
public void | setTimestamp(java.util.Date timestamp)
_timestamp = timestamp;
|
public void | setVersion(int version)Sets the version.
this.version = version;
|
public void | setVersionCalendar(java.util.Calendar calendar)
versionCalendar = calendar;
|
public void | setVersionTimestamp(java.sql.Timestamp versionTimestamp)Sets the versionTimestamp.
this.versionTimestamp = versionTimestamp;
|
public void | setX(int x)
this.x = x;
|
public void | setYesno(boolean yesno)
this.yesno = yesno;
|
public void | setZero(float zero)
_zero = zero;
|
public java.lang.String | toString()
return this.getClass().getName() + ": " + key;
|