ch.agent.crnickl.jdbc
Class JDBCObjectId

java.lang.Object
  extended by ch.agent.crnickl.jdbc.JDBCObjectId
All Implemented Interfaces:
ch.agent.crnickl.api.DBObjectId

public class JDBCObjectId
extends Object
implements ch.agent.crnickl.api.DBObjectId

JDBCObjectId is the JDBC variant of DBObjectId. JDBC databases provide an int32 as the id of inserted rows.

Author:
Jean-Paul Vetterli

Constructor Summary
JDBCObjectId(int id)
          Construct an object id from a positive integer.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 int value()
          Return the JDBC object id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCObjectId

public JDBCObjectId(int id)
Construct an object id from a positive integer.

Parameters:
id - a positive integer
Method Detail

value

public int value()
Return the JDBC object id.

Returns:
a positive integer

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.