Codota Logo
AbstractJdbc2Array.getArrayImpl
Code IndexAdd Codota to your IDE (free)

How to use
getArrayImpl
method
in
org.postgresql.jdbc2.AbstractJdbc2Array

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2Array.getArrayImpl (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public Object getArray() throws SQLException
{
  return getArrayImpl(1, 0, null);
}
origin: postgresql/postgresql

public Object getArray(long index, int count) throws SQLException
{
  return getArrayImpl(index, count, null);
}
origin: postgresql/postgresql

public Object getArrayImpl(long index, int count, Map map) throws SQLException
{
  // for now maps aren't supported.
  if (map != null && !map.isEmpty())
  {
    throw org.postgresql.Driver.notImplemented(this.getClass(), "getArrayImpl(long,int,Map)");
  }
  // array index is out of range
  if (index < 1)
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}", new Long(index)), PSQLState.DATA_ERROR);
  }
  buildArrayList();
  if (count == 0)
    count = arrayList.size();
  // array index out of range
  if ((--index) + count > arrayList.size())
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}, number of elements: {1}.", new Object[] { new Long(index + count), new Long(arrayList.size()) }), PSQLState.DATA_ERROR);
  }
  return buildArray(arrayList, (int) index, count);
}
origin: org.ancoron.postgresql/org.postgresql

public Object getArray(long index, int count) throws SQLException
{
  return getArrayImpl(index, count, null);
}
origin: org.ancoron.postgresql/org.postgresql

public Object getArray() throws SQLException
{
  return getArrayImpl(1, 0, null);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Object getArray() throws SQLException
{
  return getArrayImpl(1, 0, null);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Object getArray(long index, int count) throws SQLException
{
  return getArrayImpl(index, count, null);
}
origin: org.ancoron.postgresql/org.postgresql

public Object getArrayImpl(long index, int count, Map map) throws SQLException
{
  // for now maps aren't supported.
  if (map != null && !map.isEmpty())
  {
    throw org.postgresql.Driver.notImplemented(this.getClass(), "getArrayImpl(long,int,Map)");
  }
  // array index is out of range
  if (index < 1)
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}", new Long(index)), PSQLState.DATA_ERROR);
  }
  buildArrayList();
  if (count == 0)
    count = arrayList.size();
  // array index out of range
  if ((--index) + count > arrayList.size())
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}, number of elements: {1}.", new Object[] { new Long(index + count), new Long(arrayList.size()) }), PSQLState.DATA_ERROR);
  }
  return buildArray(arrayList, (int) index, count);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Object getArrayImpl(long index, int count, Map map) throws SQLException
{
  // for now maps aren't supported.
  if (map != null && !map.isEmpty())
  {
    throw org.postgresql.Driver.notImplemented(this.getClass(), "getArrayImpl(long,int,Map)");
  }
  // array index is out of range
  if (index < 1)
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}", new Long(index)), PSQLState.DATA_ERROR);
  }
  buildArrayList();
  if (count == 0)
    count = arrayList.size();
  // array index out of range
  if ((--index) + count > arrayList.size())
  {
    throw new PSQLException(GT.tr("The array index is out of range: {0}, number of elements: {1}.", new Object[] { new Long(index + count), new Long(arrayList.size()) }), PSQLState.DATA_ERROR);
  }
  return buildArray(arrayList, (int) index, count);
}
org.postgresql.jdbc2AbstractJdbc2ArraygetArrayImpl

Popular methods of AbstractJdbc2Array

  • buildArray
    Convert ArrayList to array.
  • buildArrayList
    Build ArrayList from field's string input. As a result of this method #arrayList is build. Method ca
  • escapeArrayElement
  • getBaseTypeName
  • getResultSetImpl
  • toString
    Convert array list to PG String representation (e.g. {0,1,2}).

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now