Android Open Source - ormada Query Cursor






From Project

Back to project page ormada.

License

The source code is released under:

Copyright (c) 2012 Jesse Rosalia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...

If you think the Android project ormada listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.ormada.dialect;
//  w w  w .  j  a v a  2  s  . co m
import java.sql.SQLException;

/**
 * This interface defines an API for a query cursor.  A cursor
 * is returned from the Dialect's query methods, and used to iterate
 * over the results and populate the fetched entities.
 * 
 * @author Jesse Rosalia
 *
 */
public interface QueryCursor {

    /**
     * Close the cursor
     * 
     */
  void close();

  /**
   * Test if the cursor is empty
   * 
   * @return
   */
  boolean isEmpty();
  
  /**
   * Move to the head of the cursor
   * 
   * @return True if there are more elements in the cursor, false if not.
   */
  boolean moveToFirst();

  /**
   * Test if the cursor is pointing past the last element in the cursor.
   * 
   */
  boolean isAfterLast();

  /**
   * Move to the next element in the cursor
   * 
   * @return True if the cursor is pointing to the next valid element, false if the cursor
   * is pointing past the last element.
   */
  boolean moveToNext();

  int getColumnCount() throws SQLException;

  String getColumnName(int col) throws SQLException;

  long getLong(int col) throws SQLException;

  int getInt(int col) throws SQLException;

  short getShort(int col) throws SQLException;

  float getFloat(int col) throws SQLException;

  double getDouble(int col) throws SQLException;

  byte[] getBlob(int col) throws SQLException;

  String getString(int col) throws SQLException;


}




Java Source Code List

org.andrormeda.dialect.SQLiteCursor.java
org.andrormeda.dialect.SQLiteDialect.java
org.andrormeda.dialect.SQLiteValueSet.java
org.andrormeda.example.AppDataSource.java
org.andrormeda.example.ExampleActivity.java
org.andrormeda.example.model.Cat.java
org.andrormeda.example.model.Kitten.java
org.ormada.ORMDataSource.java
org.ormada.annotations.OneToMany.java
org.ormada.annotations.Owner.java
org.ormada.annotations.Reference.java
org.ormada.annotations.Text.java
org.ormada.annotations.Transient.java
org.ormada.dialect.AStandardSQLDialect.java
org.ormada.dialect.DefaultValueSet.java
org.ormada.dialect.Dialect.java
org.ormada.dialect.ForwardOnlyResultSetCursor.java
org.ormada.dialect.FullResultSetCursor.java
org.ormada.dialect.QueryCursor.java
org.ormada.dialect.ValueSet.java
org.ormada.entity.EntityBuilder.java
org.ormada.entity.EntityCache.java
org.ormada.entity.EntityMetaData.java
org.ormada.entity.Entity.java
org.ormada.exception.MixedCollectionException.java
org.ormada.exception.UnableToOpenException.java
org.ormada.exception.UnsavedReferenceException.java
org.ormada.hsql.dialect.HSQLDialect.java
org.ormada.hsql.example.AppDataSource.java
org.ormada.hsql.example.ExampleMain.java
org.ormada.hsql.example.model.Cat.java
org.ormada.hsql.example.model.Kitten.java
org.ormada.model.ORMeta.java
org.ormada.reflect.DefaultReflector.java
org.ormada.reflect.Reflector.java
org.ormada.util.Profiler.java