public class Registry extends Object
Modifier and Type | Method and Description |
---|---|
int |
getLatestKnownTypeId() |
Type.Codec |
loadCodec(int encoderId,
int decoderId,
ResultField.Format format)
Loads a matching Codec given the proc-id of its encoder and decoder
|
Modifiers.Parser |
loadModifierParser(int modInId,
int modOutId) |
CompositeType |
loadRelationType(int relationId)
Loads a relation (aka table) type by its relation-id
|
Type |
loadType(int typeId)
Loads a type by its type-id (aka OID)
|
Type |
loadType(String name)
Loads a type by its name
|
int |
lookupProcId(String procName)
Looks up a procedure id (aka OID) given it's name.
|
String |
lookupProcName(int procId)
Looks up a procedures name given it's proc-id (aka OID)
|
void |
unloadType(int oid) |
void |
unloadType(String name) |
void |
update(Collection<PgType.Row> pgTypeRows,
Collection<PgAttribute.Row> pgAttrRows,
Collection<PgProc.Row> pgProcRows)
Updates the type information from the given catalog data.
|
public Registry(Context context)
public Type loadType(int typeId)
typeId
- The type's idpublic Type loadType(String name)
name
- The type's namepublic CompositeType loadRelationType(int relationId)
relationId
- Relation ID of the type to loadpublic void unloadType(int oid)
public void unloadType(String name)
public String lookupProcName(int procId)
procId
- The procedure's idpublic int lookupProcId(String procName)
procName
- The procedure's namepublic int getLatestKnownTypeId()
public void update(Collection<PgType.Row> pgTypeRows, Collection<PgAttribute.Row> pgAttrRows, Collection<PgProc.Row> pgProcRows)
pgTypeRows
- "pg_type" table rowspgAttrRows
- "pg_attribute" table rowspgProcRows
- "pg_proc" table rowspublic Type.Codec loadCodec(int encoderId, int decoderId, ResultField.Format format)
encoderId
- proc-id of the encoderdecoderId
- proc-id of the decoderpublic Modifiers.Parser loadModifierParser(int modInId, int modOutId)
Copyright © 2013-2015 impossibl.com. All Rights Reserved.