ch.agent.crnickl.jdbc
Class JDBCObjectId
java.lang.Object
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. |
JDBCObjectId
public JDBCObjectId(int id)
- Construct an object id from a positive integer.
- Parameters:
id - a positive integer
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.