public class ForeignKeyInfo extends Object implements org.datanucleus.store.schema.StoreSchemaData
Constructor and Description |
---|
ForeignKeyInfo(ResultSet rs)
Constructs a foreign key information object from the current row of the given result set.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
Object value)
Method to add a property for the type.
|
boolean |
equals(Object obj)
Indicates whether some object is "equal to" this one.
|
Object |
getProperty(String name)
Accessor for a property.
|
int |
hashCode()
Returns a hash code value for this object.
|
String |
toString()
Returns the string representation of this object.
|
public ForeignKeyInfo(ResultSet rs)
ResultSet
object passed must have been obtained from a call
to java.sql.DatabaseMetaData.getImportedKeys() or java.sql.DatabaseMetaData.getImportedKeys().rs
- The result set returned from java.sql.DatabaseMetaData.getImportedKeys() or
java.sql.DatabaseMetaData.getExportedKeys().org.datanucleus.exceptions.NucleusDataStoreException
- if an exception is thrown upon retrievalpublic void addProperty(String name, Object value)
addProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of propertyvalue
- Its valuepublic Object getProperty(String name)
getProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of the propertypublic final boolean equals(Object obj)
public final int hashCode()
Copyright © 2015. All rights reserved.