DataSourceDefinitionDescriptor
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.enterprise.deployment.DataSourceDefinitionDescriptor(Showing top 15 results out of 315)

  • Common ways to obtain DataSourceDefinitionDescriptor
private void myMethod () {
DataSourceDefinitionDescriptor d =
  • new DataSourceDefinitionDescriptor()
  • AI code suggestions by Codota
}
origin: javaee/glassfish

public String getIdleTimeoutInSeconds() {
  long maxIdleTime = desc.getMaxIdleTime();
  if (maxIdleTime == -1) {
    maxIdleTime = 300;
  }
  return String.valueOf(maxIdleTime);
}
origin: javaee/glassfish

public int hashCode() {
  int result = 17;
  result = 37*result + getName().hashCode();
  return result;
}
origin: javaee/glassfish

  public DataSourceDefinitionDescriptor getDescriptor() {
    if(descriptor == null){
      descriptor = new DataSourceDefinitionDescriptor();
    }
    return descriptor;
  }
}
origin: javaee/glassfish

public String getDatasourceClassname() {
  if(!getResType().equals(ConnectorConstants.JAVA_SQL_DRIVER)){
    return desc.getClassName();
  }
  return null;
}
origin: javaee/glassfish

public String getSteadyPoolSize() {
  int minPoolSize = desc.getMinPoolSize();
  if (minPoolSize == -1) {
    minPoolSize = 8;
  }
  return String.valueOf(minPoolSize);
}
origin: javaee/glassfish

public String getTransactionIsolationLevel() {
  if (desc.getIsolationLevel() == -1) {
    return null;
  } else {
    return ConnectorsUtil.getTransactionIsolationInt(desc.getIsolationLevel());
  }
}
origin: fish.payara.extras/payara-embedded-all

@Override
public String getPropertyValue(String name, String defaultValue) {
  String value = null;
  value = (String) desc.getProperties().get(name);
  if (value != null) {
    return value;
  } else {
    return defaultValue;
  }
}
origin: org.glassfish.main.deployment/dol

public boolean equals(Object object) {
  if (object instanceof DataSourceDefinitionDescriptor) {
    DataSourceDefinitionDescriptor reference = (DataSourceDefinitionDescriptor) object;
    return getJavaName(this.getName()).equals(getJavaName(reference.getName()));
  }
  return false;
}
origin: javaee/glassfish

public String getMaxPoolSize() {
  int maxPoolSize = desc.getMaxPoolSize();
  if (maxPoolSize == -1) {
    maxPoolSize = 32;
  }
  return String.valueOf(maxPoolSize);
}
origin: javaee/glassfish

public String getDriverClassname() {
  if(getResType().equals(ConnectorConstants.JAVA_SQL_DRIVER)){
    return desc.getClassName();
  }
  return null;
}
origin: fish.payara.extras/payara-embedded-all

  public DataSourceDefinitionDescriptor getDescriptor() {
    if(descriptor == null){
      descriptor = new DataSourceDefinitionDescriptor();
    }
    return descriptor;
  }
}
origin: org.glassfish.main.deployment/dol

  public DataSourceDefinitionDescriptor getDescriptor() {
    if(descriptor == null){
      descriptor = new DataSourceDefinitionDescriptor();
    }
    return descriptor;
  }
}
origin: fish.payara.extras/payara-embedded-all

@Override
public String getMaxPoolSize() {
  int maxPoolSize = desc.getMaxPoolSize();
  if (maxPoolSize == -1) {
    maxPoolSize = 32;
  }
  return String.valueOf(maxPoolSize);
}
origin: fish.payara.extras/payara-embedded-all

@Override
public String getIdleTimeoutInSeconds() {
  long maxIdleTime = desc.getMaxIdleTime();
  if (maxIdleTime == -1) {
    maxIdleTime = 300;
  }
  return String.valueOf(maxIdleTime);
}
origin: fish.payara.extras/payara-embedded-all

@Override
public String getTransactionIsolationLevel() {
  if (desc.getIsolationLevel() == -1) {
    return null;
  } else {
    return ConnectorsUtil.getTransactionIsolationInt(desc.getIsolationLevel());
  }
}
com.sun.enterprise.deploymentDataSourceDefinitionDescriptor

Most used methods

  • <init>
  • getClassName
  • getDatabaseName
  • getDescription
  • getInitialPoolSize
  • getIsolationLevel
  • getJavaName
  • getLoginTimeout
  • getMaxIdleTime
  • getMaxPoolSize
  • getMaxStatements
  • getMinPoolSize
  • getMaxStatements,
  • getMinPoolSize,
  • getName,
  • getPassword,
  • getPortNumber,
  • getProperties,
  • getServerName,
  • getUrl,
  • getUser,
  • isTransactional

Popular classes and methods

  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • Graphics2D (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • PrintStream (java.io)
    Wraps an existing OutputStream and provides convenience methods for writing common data types in a h
  • String (java.lang)
    An immutable sequence of characters/code units ( chars). A String is represented by array of UTF-16
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Pattern (java.util.regex)
    Emulation of the Pattern class, uses RegExp as internal implementation.

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)