Package org.h2.engine
Class MetaRecord
- java.lang.Object
-
- org.h2.engine.MetaRecord
-
- All Implemented Interfaces:
java.lang.Comparable<MetaRecord>
public class MetaRecord extends java.lang.Object implements java.lang.Comparable<MetaRecord>
A record in the system table of the database. It contains the SQL statement to create the database object.
-
-
Constructor Summary
Constructors Constructor Description MetaRecord(org.h2.result.SearchRow r)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MetaRecord other)Sort the list of meta records by 'create order'.intgetId()intgetObjectType()java.lang.StringgetSQL()static voidpopulateRowFromDBObject(DbObject obj, org.h2.result.SearchRow r)Copy metadata from the specified object into specified search row.java.lang.StringtoString()
-
-
-
Method Detail
-
populateRowFromDBObject
public static void populateRowFromDBObject(DbObject obj, org.h2.result.SearchRow r)
Copy metadata from the specified object into specified search row.- Parameters:
obj- database objectr- search row
-
getId
public int getId()
-
getObjectType
public int getObjectType()
-
getSQL
public java.lang.String getSQL()
-
compareTo
public int compareTo(MetaRecord other)
Sort the list of meta records by 'create order'.- Specified by:
compareToin interfacejava.lang.Comparable<MetaRecord>- Parameters:
other- the other record- Returns:
- -1, 0, or 1
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-