|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IObjectReader
Method Summary | ||
---|---|---|
java.lang.Object |
buildOneInstance(NonNativeObjectInfo objectInfo)
|
|
void |
close()
|
|
java.util.List<FullIDInfo> |
getAllIdInfos(java.lang.String objectTypeToDisplay,
byte idType,
boolean displayObject)
|
|
java.util.List<java.lang.Long> |
getAllIds(byte idType)
Returns information about all OIDs of the database |
|
java.lang.String |
getBaseIdentification()
|
|
OID |
getIdOfObjectAt(long position,
boolean includeDeleted)
Returns the id of an object by reading the object header |
|
IInstanceBuilder |
getInstanceBuilder()
|
|
OID |
getNextObjectOID(OID oid)
Gets the next object oid of the object with the specific oid |
|
java.lang.Object |
getObjectFromOid(OID oid,
boolean returnInstance,
boolean useCache)
|
|
|
getObjectInfos(IQuery query,
boolean inMemory,
int startIndex,
int endIndex,
boolean returnObjects,
IMatchingObjectAction queryResultAction)
Return Objects. |
|
long |
getObjectPositionFromItsOid(OID oid,
boolean useCache,
boolean throwException)
Gets the real object position from its OID |
|
|
getObjects(IQuery query,
boolean inMemory,
int startIndex,
int endIndex)
Get a list of object matching the query |
|
Values |
getValues(IValuesQuery query,
int startIndex,
int endIndex)
Get a list of values matching the query |
|
AtomicNativeObjectInfo |
readAtomicNativeObjectInfo(long position,
int odbTypeId)
|
|
java.lang.Object |
readAtomicNativeObjectInfoAsObject(long position,
int odbTypeId)
|
|
IOdbList<ClassInfoIndex> |
readClassInfoIndexesAt(long position,
ClassInfo classInfo)
|
|
void |
readDatabaseHeader(java.lang.String user,
java.lang.String password)
Reads the database header |
|
MetaModel |
readMetaModel(MetaModel metaModel,
boolean full)
Reads the database meta model |
|
NonNativeObjectInfo |
readNonNativeObjectInfoFromOid(ClassInfo classInfo,
OID oid,
boolean useCache,
boolean returnObjects)
|
|
NonNativeObjectInfo |
readNonNativeObjectInfoFromPosition(ClassInfo classInfo,
OID oid,
long position,
boolean useCache,
boolean returnInstance)
Reads a non non native Object Info (Layer2) from its position |
|
ObjectInfoHeader |
readObjectInfoHeaderFromOid(OID oid,
boolean useCache)
Reads the pointers(ids or positions) of an object that has the specific oid |
|
AttributeValuesMap |
readObjectInfoValuesFromOID(ClassInfo classInfo,
OID oid,
boolean useCache,
IOdbList<java.lang.String> attributeNames,
IOdbList<java.lang.String> relationAttributeNames,
int recursionLevel,
java.lang.String[] orderByFields,
boolean useOidForObject)
reads some attributes of an object. |
|
long |
readOidPosition(OID oid)
|
Method Detail |
---|
void readDatabaseHeader(java.lang.String user, java.lang.String password)
user
- password
- MetaModel readMetaModel(MetaModel metaModel, boolean full)
metaModel
- An empty meta modelfull
- To indicate if a full read must be done
IOdbList<ClassInfoIndex> readClassInfoIndexesAt(long position, ClassInfo classInfo)
NonNativeObjectInfo readNonNativeObjectInfoFromOid(ClassInfo classInfo, OID oid, boolean useCache, boolean returnObjects)
AttributeValuesMap readObjectInfoValuesFromOID(ClassInfo classInfo, OID oid, boolean useCache, IOdbList<java.lang.String> attributeNames, IOdbList<java.lang.String> relationAttributeNames, int recursionLevel, java.lang.String[] orderByFields, boolean useOidForObject)
example of method call readObjectInfoValues(classinfo,18000,true,["profile.name","profile.email"],["profile.name","profile.email"],0) readObjectInfoValues(classinfo,21789,true,["name"],["profile.name"],1)
classInfo
- If null, we are probably reading a native instance : String
for exampleoid
- The oid of the object to read. if -1,the read will be done by
positionuseCache
- To indicate if cache must be used. If not, the old version of
the object will readattributeNames
- The names of attributes to read the values, an attributename
can contain relation like profile.namerelationAttributeNames
- The original names of attributes to read the values, an
attributename can contain relation like profile.namerecursionLevel
- The recursion level of this method callorderByFields
- useOidForObject
- To indicate that if the object being read has an attribute that is not native, we will put the oid of the attribute (object) instead of reading the whole object
java.lang.Object readAtomicNativeObjectInfoAsObject(long position, int odbTypeId)
AtomicNativeObjectInfo readAtomicNativeObjectInfo(long position, int odbTypeId)
long readOidPosition(OID oid)
java.lang.Object getObjectFromOid(OID oid, boolean returnInstance, boolean useCache)
java.util.List<FullIDInfo> getAllIdInfos(java.lang.String objectTypeToDisplay, byte idType, boolean displayObject)
OID getIdOfObjectAt(long position, boolean includeDeleted)
position
- includeDeleted
-
void close()
java.lang.Object buildOneInstance(NonNativeObjectInfo objectInfo)
<T> Objects<T> getObjects(IQuery query, boolean inMemory, int startIndex, int endIndex)
query
- inMemory
- startIndex
- endIndex
-
Values getValues(IValuesQuery query, int startIndex, int endIndex)
query
- startIndex
- endIndex
-
<T> Objects<T> getObjectInfos(IQuery query, boolean inMemory, int startIndex, int endIndex, boolean returnObjects, IMatchingObjectAction queryResultAction)
query
- The query to select objectsinMemory
- To indicate if object must be all loaded in memorystartIndex
- First object indexendIndex
- Last object indexreturnObjects
- To indicate if object instances must be created
java.lang.String getBaseIdentification()
IInstanceBuilder getInstanceBuilder()
ObjectInfoHeader readObjectInfoHeaderFromOid(OID oid, boolean useCache)
oid
- The oid of the object we want to read the pointers
java.util.List<java.lang.Long> getAllIds(byte idType)
idType
-
OID getNextObjectOID(OID oid)
oid
-
long getObjectPositionFromItsOid(OID oid, boolean useCache, boolean throwException)
oid
- The oid of the object to get the position
To indicate if an exception must be thrown if object is not
found
NonNativeObjectInfo readNonNativeObjectInfoFromPosition(ClassInfo classInfo, OID oid, long position, boolean useCache, boolean returnInstance)
classInfo
- oid
- can be nullposition
- useCache
- returnInstance
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |