Examples of LanguageConnectionFactory


Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

        getBuiltinSystemSchemas();

    // REMIND: actually, we're supposed to get the DataValueFactory
    // out of the connection context...this is a bit of a shortcut.
    // We get the DataValueFactory early in order to help bootstrap the system catalogs.
    LanguageConnectionFactory langConnFactory = (LanguageConnectionFactory) Monitor.bootServiceModule(
      create, this, LanguageConnectionFactory.MODULE, startParams);

    dvf = langConnFactory.getDataValueFactory();
    exFactory = (ExecutionFactory) Monitor.bootServiceModule(
                            create, this,
                            ExecutionFactory.MODULE,
                            startParams);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

  {
    ContextManager cm = lcc.getContextManager();
    DependencyManager dm;
    ProviderInfo[] providerInfo;

    LanguageConnectionFactory  lcf = lcc.getLanguageConnectionFactory();

    DataDictionary dd = getDataDictionary();


    /*
    ** If we are a trigger, then we have to go ahead
    ** and locate the trigger's table descriptor and
    ** push it on the lcc.  This is expensive, but
    ** pretty atypical since trigger actions aren't
    ** likely to be invalidated too often.  Also, when
    ** possible, we already have the triggerTable.
    */
    if (type == SPS_TYPE_TRIGGER && triggerTable == null)
    {
      String uuidStr = name.substring(49);
      triggerTable = dd.getTableDescriptor(recreateUUID(uuidStr));
      if (SanityManager.DEBUG)
      {
        if (triggerTable == null)
        {
          SanityManager.THROWASSERT("couldn't find trigger table for trigger sps "+name);
        }
      }
    }

    if (triggerTable != null)
    {
      lcc.pushTriggerTable(triggerTable);
    }

    // stored statements always stored as unicode.
    Statement       stmt = lcf.getStatement(dd.getSchemaDescriptor(compSchemaId, null), text, true);

    try
    {
      preparedStatement = (ExecPreparedStatement) stmt.prepareStorable(
                lcc,
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

    TransactionController       tc
  )
    throws StandardException
  {
    ContextManager cm = lcc.getContextManager();
    LanguageConnectionFactory  lcf = lcc.getLanguageConnectionFactory();

    DataDictionary dd = getDataDictionary();


    /*
    ** If we are a trigger, then we have to go ahead
    ** and locate the trigger's table descriptor and
    ** push it on the lcc.  This is expensive, but
    ** pretty atypical since trigger actions aren't
    ** likely to be invalidated too often.  Also, when
    ** possible, we already have the triggerTable.
    */
    if (type == SPS_TYPE_TRIGGER && triggerTable == null)
    {
            // 49 because name consists of (see CreateTriggerConstantAction):
            // TRIGGER<ACTN|WHEN>_<UUID:36>_<UUID:36>
      String uuidStr = name.substring(49);
      triggerTable = dd.getTableDescriptor(recreateUUID(uuidStr));
      if (SanityManager.DEBUG)
      {
        if (triggerTable == null)
        {
          SanityManager.THROWASSERT("couldn't find trigger table for trigger sps "+name);
        }
      }
    }

    if (triggerTable != null)
    {
      lcc.pushTriggerTable(triggerTable);
    }

    // stored statements always stored as unicode.
    Statement       stmt = lcf.getStatement(dd.getSchemaDescriptor(compSchemaId, null), text, true);

    try
    {
      preparedStatement = (ExecPreparedStatement) stmt.prepareStorable(
                lcc,
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

        getBuiltinSystemSchemas();

    // REMIND: actually, we're supposed to get the DataValueFactory
    // out of the connection context...this is a bit of a shortcut.
    // We get the DataValueFactory early in order to help bootstrap the system catalogs.
    LanguageConnectionFactory langConnFactory = (LanguageConnectionFactory) Monitor.bootServiceModule(
      create, this, LanguageConnectionFactory.MODULE, startParams);

    dvf = langConnFactory.getDataValueFactory();
    exFactory = (ExecutionFactory) Monitor.bootServiceModule(
                            create, this,
                            ExecutionFactory.MODULE,
                            startParams);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

        getBuiltinSystemSchemas();

    // REMIND: actually, we're supposed to get the DataValueFactory
    // out of the connection context...this is a bit of a shortcut.
    // We get the DataValueFactory early in order to help bootstrap the system catalogs.
    LanguageConnectionFactory langConnFactory = (LanguageConnectionFactory) Monitor.bootServiceModule(
      create, this, LanguageConnectionFactory.MODULE, startParams);

    dvf = langConnFactory.getDataValueFactory();
    exFactory = (ExecutionFactory) Monitor.bootServiceModule(
                            create, this,
                            ExecutionFactory.MODULE,
                            startParams);
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

      if (!initialized)
      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LanguageConnectionFactory lcf = lcc.getLanguageConnectionFactory();
        LockFactory lf = lcf.getAccessFactory().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

  {
    ContextManager cm = lcc.getContextManager();
    DependencyManager dm;
    ProviderInfo[] providerInfo;

    LanguageConnectionFactory  lcf = lcc.getLanguageConnectionFactory();

    DataDictionary dd = getDataDictionary();


    /*
    ** If we are a trigger, then we have to go ahead
    ** and locate the trigger's table descriptor and
    ** push it on the lcc.  This is expensive, but
    ** pretty atypical since trigger actions aren't
    ** likely to be invalidated too often.  Also, when
    ** possible, we already have the triggerTable.
    */
    if (type == SPS_TYPE_TRIGGER && triggerTable == null)
    {
      String uuidStr = name.substring(49);
      triggerTable = dd.getTableDescriptor(recreateUUID(uuidStr));
      if (SanityManager.DEBUG)
      {
        if (triggerTable == null)
        {
          SanityManager.THROWASSERT("couldn't find trigger table for trigger sps "+name);
        }
      }
    }

    if (triggerTable != null)
    {
      lcc.pushTriggerTable(triggerTable);
    }

    // stored statements always stored as unicode.
    Statement       stmt = lcf.getStatement(dd.getSchemaDescriptor(compSchemaId, null), text, true);

    try
    {
      preparedStatement = (ExecPreparedStatement) stmt.prepareStorable(
                lcc,
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

              DataDictionary dd = getDataDictionary();
              SchemaDescriptor compSchema;
              compSchema = dd.getSchemaDescriptor(vd.getCompSchemaId(), null);
              CompilerContext newCC = lcc.pushCompilerContext(compSchema);
              Parser  pa = newCC.getParser();
              LanguageConnectionFactory  lcf = lcc.getLanguageConnectionFactory();

              // Since this is always nested inside another SQL
              // statement, so topLevel flag should be false
              CreateViewNode cvn = (CreateViewNode)pa.parseStatement(
                        vd.getViewText());
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

       @exception StandardException Thrown if module cannot be booted.
   *
   */
  public void boot(boolean create, Properties startParams) throws StandardException
  {   
    LanguageConnectionFactory lcf = (LanguageConnectionFactoryMonitor.findServiceModule(this, LanguageConnectionFactory.MODULE);
    PropertyFactory pf = lcf.getPropertyFactory();
    if (pf != null)
      pf.addPropertySetNotification(new LanguageDbPropertySetter());

    emptySet = new GenericParameterValueSet(null, 0, false);
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionFactory

{

  public static AccessFactory getAccessFactory() throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();
    LanguageConnectionFactory lcf = lcc.getLanguageConnectionFactory();
    return (AccessFactory)lcf.getAccessFactory();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.