/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public DatabaseSessionImpl(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * PUBLIC: * Creates a DistributedSession. * @param remoteConnection remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA. */ public DistributedSession(RemoteConnection remoteConnection) { this.remoteConnection = remoteConnection; this.project = new org.eclipse.persistence.sessions.Project(); }
/** * INTERNAL: * Create and return a new default server session. * @see Project#createServerSession(ConnectionPolicy) */ public ServerSession(Login login, ConnectionPolicy defaultConnectionPolicy) { this(new Project(login), defaultConnectionPolicy); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession() */ public ServerSession(Login login) { this(new Project(login)); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession() */ public ServerSession(Login login) { this(new Project(login)); }
/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public AbstractSession(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public DatabaseSessionImpl(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession(int, int) */ public ServerSession(Login login, int minNumberOfPooledConnection, int maxNumberOfPooledConnection) { this(new Project(login), minNumberOfPooledConnection, maxNumberOfPooledConnection); }
/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public AbstractSession(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession() */ public ServerSession(Login login) { this(new Project(login)); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession(int, int) */ public ServerSession(Login login, int minNumberOfPooledConnection, int maxNumberOfPooledConnection) { this(new Project(login), minNumberOfPooledConnection, maxNumberOfPooledConnection); }
/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public AbstractSession(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * INTERNAL: * Create and return a new server session. * @see Project#createServerSession(int, int) */ public ServerSession(Login login, int minNumberOfPooledConnection, int maxNumberOfPooledConnection) { this(new Project(login), minNumberOfPooledConnection, maxNumberOfPooledConnection); }
/** * INTERNAL: * Create and return a new default server session. * @see Project#createServerSession(ConnectionPolicy) */ public ServerSession(Login login, ConnectionPolicy defaultConnectionPolicy) { this(new Project(login), defaultConnectionPolicy); }
/** * PUBLIC: * Create and return a new session. * By giving the login information on creation this allows the session to initialize itself * to the platform given in the login. This constructor does not return a connected session. * To connect the session to the database login() must be sent to it. The login(userName, password) * method may also be used to connect the session, this allows for the user name and password * to be given at login but for the other database information to be provided when the session is created. */ public DatabaseSessionImpl(Login login) { this(new org.eclipse.persistence.sessions.Project(login)); }
/** * INTERNAL: * Create and return a new default server session. * @see Project#createServerSession(ConnectionPolicy) */ public ServerSession(Login login, ConnectionPolicy defaultConnectionPolicy) { this(new Project(login), defaultConnectionPolicy); }
/** * PUBLIC: * Creates a DistributedSession. * @param remoteConnection remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA. */ public DistributedSession(RemoteConnection remoteConnection) { this.remoteConnection = remoteConnection; this.remoteConnection.initialize(this); this.project = new org.eclipse.persistence.sessions.Project(); }
/** * PUBLIC: * Creates a DistributedSession. * @param remoteConnection remote session requires a remote connection. This must be accessed remotely from the client through RMI or CORBA. */ public DistributedSession(RemoteConnection remoteConnection) { this.remoteConnection = remoteConnection; this.remoteConnection.initialize(this); this.project = new org.eclipse.persistence.sessions.Project(); }
/** * INTERNAL: * We preserve state from each processor run by holding static references * to projects. */ public MetadataProject getMetadataProject(SEPersistenceUnitInfo puInfo) { if (! metadataProjects.containsKey(puInfo.getPersistenceUnitName())) { MetadataProject project = new MetadataProject(puInfo, new ServerSession(new Project(new DatabaseLogin())), false, false, false, false, false); metadataProjects.put(puInfo.getPersistenceUnitName(), project); return project; } else { return metadataProjects.get(puInfo.getPersistenceUnitName()); } }
/** * INTERNAL: */ protected static XMLContext createXMLContext(String namespaceURI) { Project project = new Project(); NamespaceResolver resolver = new NamespaceResolver(); resolver.setDefaultNamespaceURI(namespaceURI); project.addDescriptor(buildPersistenceXMLDescriptor(resolver)); project.addDescriptor(buildPUInfoDescriptor(resolver)); project.addDescriptor(buildPUPropertyDescriptor(resolver)); return new XMLContext(project); } }